P_ActlCostgRunRsltEnhcdWthTxt
Actual Costing Run Results (Enhanced)
P_ActlCostgRunRsltEnhcdWthTxt is a Composite CDS View that provides data about "Actual Costing Run Results (Enhanced)" in SAP S/4HANA. It reads from 1 data source (P_ActualCostingRunResultEnhcd) and exposes 29 fields with key fields CostEstimate, CurrencyRole, Ledger, MaterialLedgerCategory, ProcessCategory. It has 5 associations to related views. Part of development package FCML4H_DISPLAY.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_ActualCostingRunResultEnhcd | P_ActualCostingRunResultEnhcd | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_CostingRunType | ckml_run_type | |
| P_FiscalPeriod | fins_fiscalperiod | |
| P_FiscalYear | fis_gjahr_no_conv |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_InventorySpecialStockTypeT | _InvtrySpclStkTypeTxt | $projection.InventorySpecialStockType = _InvtrySpclStkTypeTxt.InventorySpecialStockType and _InvtrySpclStkTypeTxt.Language = $session.system_language |
| [0..1] | I_MaterialLedgerCategoryTxt | _MatlLdgrCatTxt | $projection.MaterialLedgerCategory = _MatlLdgrCatTxt.MaterialLedgerCategory and _MatlLdgrCatTxt.Language = $session.system_language |
| [0..1] | P_MLProcessCategoryText | _MatlLdgrProcCatTxt | $projection.ProcessCategory = _MatlLdgrProcCatTxt.ProcessCategory and _MatlLdgrProcCatTxt.Language = $session.system_language |
| [0..1] | R_MatlLedgerValnCrcyRole | _LdgrValnCrcyRole | $projection.CurrencyRole = _LdgrValnCrcyRole.CurrencyRole and $projection.Ledger = _LdgrValnCrcyRole.Ledger and $projection.CompanyCode = _LdgrValnCrcyRole.CompanyCode |
| [0..1] | I_GlAccountTextInCompanycode | _GLText | $projection.CompanyCode = _GLText.CompanyCode and $projection.GLAccount = _GLText.GLAccount and _GLText.Language = $session.system_language |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostEstimate | CostEstimate | Cost EstimateNo | |
| KEY | CurrencyRole | CurrencyRole | Curr./Val. Type | |
| KEY | Ledger | Ledger | Ledger | |
| KEY | MaterialLedgerCategory | |||
| KEY | ProcessCategory | |||
| KEY | MatlLdgrDocIsCostingRelevant | MatlLdgrDocIsCostingRelevant | ||
| KEY | ProcurementAlternative | ProcurementAlternative | ||
| KEY | ProductionProcess | ProductionProcess | ||
| KEY | MovementType | MovementType | ||
| KEY | GLAccount | GLAccount | General Ledger | |
| PriceDeterminationControl | PriceDeterminationControl | Price Determ. | ||
| ValuationArea | ValuationArea | Valuation Area | ||
| Material | Material | Vehicle Model | ||
| InventoryValuationType | InventoryValuationType | Valuation Type | ||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| InventorySpecialStockType | InventorySpecialStockType | Special Stock Type | ||
| WBSElementExternalID | WBSElementExternalID | WBS Element External ID | ||
| Supplier | Supplier | Supplier | ||
| ValuationQuantityUnit | ValuationQuantityUnit | |||
| Currency | Currency | Valuation Crcy | ||
| InventorySpecialStockTypeName | _InvtrySpclStkTypeTxt | InventorySpecialStockTypeName | ||
| MaterialLedgerCategoryText | ||||
| ProcessCategoryName | ||||
| GoodsMovementTypeName | GoodsMovementTypeName | |||
| GLAccountName | _GLText | GLAccountName | Short Text | |
| CompanyCode | CompanyCode | Receiver Company Code | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| ControllingValuationType | _LdgrValnCrcyRole | AccountingValuationView |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view P_ActlCostgRunRsltEnhcdWthTxt.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- Parameters: P_CostingRunType : ckml_run_type, P_FiscalPeriod : fins_fiscalperiod, P_FiscalYear : fis_gjahr_no_conv
CREATE VIEW P_ActlCostgRunRsltEnhcdWthTxt AS
SELECT
CostEstimate,
CurrencyRole,
Ledger,
cast( MaterialLedgerCategory as fml_material_ledger_category preserving type ) AS MaterialLedgerCategory,
cast( ProcessCategory as fml_process_category preserving type ) AS ProcessCategory,
MatlLdgrDocIsCostingRelevant,
ProcurementAlternative,
ProductionProcess,
MovementType,
GLAccount,
PriceDeterminationControl,
ValuationArea,
Material,
InventoryValuationType,
SalesOrder,
SalesOrderItem,
InventorySpecialStockType,
WBSElementExternalID,
Supplier,
ValuationQuantityUnit,
Currency,
_InvtrySpclStkTypeTxt.InventorySpecialStockTypeName AS InventorySpecialStockTypeName,
cast( _MatlLdgrCatTxt .MaterialLedgerCategoryText as fml_matl_ledger_category_text preserving type ) AS MaterialLedgerCategoryText,
cast( _MatlLdgrProcCatTxt .ProcessCategoryName as fml_process_category_text preserving type ) AS ProcessCategoryName,
GoodsMovementTypeName,
_GLText.GLAccountName AS GLAccountName,
CompanyCode,
ControllingArea,
_LdgrValnCrcyRole.AccountingValuationView AS ControllingValuationType
FROM P_ActualCostingRunResultEnhcd
LEFT OUTER JOIN I_InventorySpecialStockTypeT AS _InvtrySpclStkTypeTxt ON InventorySpecialStockType = _InvtrySpclStkTypeTxt.InventorySpecialStockType AND _InvtrySpclStkTypeTxt.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_MaterialLedgerCategoryTxt AS _MatlLdgrCatTxt ON MaterialLedgerCategory = _MatlLdgrCatTxt.MaterialLedgerCategory AND _MatlLdgrCatTxt.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN P_MLProcessCategoryText AS _MatlLdgrProcCatTxt ON ProcessCategory = _MatlLdgrProcCatTxt.ProcessCategory AND _MatlLdgrProcCatTxt.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN R_MatlLedgerValnCrcyRole AS _LdgrValnCrcyRole ON CurrencyRole = _LdgrValnCrcyRole.CurrencyRole AND Ledger = _LdgrValnCrcyRole.Ledger AND CompanyCode = _LdgrValnCrcyRole.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_GlAccountTextInCompanycode AS _GLText ON CompanyCode = _GLText.CompanyCode AND GLAccount = _GLText.GLAccount AND _GLText.Language = $session.system_language -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA