C_DspMatlActlCostgRsltCostgRun
F6073 Inventory Prices with Costing Run Status
C_DspMatlActlCostgRsltCostgRun is a Consumption CDS View that provides data about "F6073 Inventory Prices with Costing Run Status" in SAP S/4HANA. It reads from 2 data sources (P_DspMatlActlCostgRsltRunList, R_InventoryPriceByKeyDateWide) and exposes 35 fields with key fields CostEstimate, CurrencyRole. It has 5 associations to related views. Part of development package ODATA_ML_ACR_DISP.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_DspMatlActlCostgRsltRunList | _mlrunlist | inner |
| R_InventoryPriceByKeyDateWide | R_InventoryPriceByKeyDateWide | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_CalendarDate | calendardate | |
| P_CurrencyRole | fins_curtype | |
| P_Ledger | fins_ledger |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Plant | _Plant | $projection.ValuationArea = _Plant.ValuationArea and ($projection.ValuationArea is not initial or $projection.ValuationArea <> '') |
| [1..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_WBSElementBasicData | _WBSElementBasicData | $projection.WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID |
| [0..1] | P_DACRCostingRunStatus | _CostingRun | _CostingRun.CostingRunStatus = _mlrunlist.CostingRunStatus |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| Metadata.allowExtensions | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | F6073 Inventory Prices with Costing Run Status | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.representativeKey | CostEstimate | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostEstimate | P_DspMatlActlCostgRsltRunList | KALNR | ProdCostEst.No. |
| KEY | CurrencyRole | _keydate | CurrencyRole | Curr./Val. Type |
| Ledger | _keydate | Ledger | Ledger | |
| ValuationArea | _keydate | ValuationArea | Valuation Area | |
| CompanyCode | _keydate | CompanyCode | Receiver Company Code | |
| CompanyCodeName | _CompanyCode | CompanyCodeName | Company Name | |
| ControllingArea | _CompanyCode | ControllingArea | Controlling Area | |
| ControllingAreaName | ||||
| Plant | _Plant | Plant | Valuation Area | |
| PlantName | _Plant | PlantName | Plant Name | |
| FiscalYear | ||||
| FiscalPeriod | ||||
| FiscalYearPeriod | ||||
| Material | _keydate | Material | Vehicle Model | |
| MaterialName | ||||
| InventoryValuationType | ||||
| Currency | _keydate | Currency | Valuation Crcy | |
| InventoryPrice | ||||
| StandardPrice | _keydate | StandardPrice | Standard price | |
| BaseUnit | _keydate | BaseUnit | Unit of Measure | |
| MaterialPriceUnitQty | ||||
| SalesOrder | _keydate | SalesOrder | SD Document | |
| SalesOrderItem | _keydate | SalesOrderItem | Sales Order Item | |
| WBSElementInternalID | ||||
| Supplier | _keydate | Supplier | Supplier | |
| _CurrencyRole | _keydate | _CurrencyRole | ||
| MaterialPriceControl | _keydate | MaterialPriceControl | Price Control | |
| CostingRunStatus | ||||
| CostingRunStatusName | ||||
| CostingRunType | ||||
| CostingRunTypeName | ||||
| _Plant | _Plant | |||
| _Material | _Material | |||
| _WBSElementBasicData | _WBSElementBasicData | |||
| _Ledger | _keydate | _Ledger |
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 C_DspMatlActlCostgRsltCostgRun.
-- 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_CalendarDate : calendardate, P_CurrencyRole : fins_curtype, P_Ledger : fins_ledger
CREATE VIEW C_DspMatlActlCostgRsltCostgRun AS
SELECT
_mlrunlist.KALNR AS CostEstimate,
_keydate.CurrencyRole AS CurrencyRole,
_keydate.Ledger AS Ledger,
_keydate.ValuationArea AS ValuationArea,
_keydate.CompanyCode AS CompanyCode,
_CompanyCode.CompanyCodeName AS CompanyCodeName,
_CompanyCode.ControllingArea AS ControllingArea,
_CompanyCode._ControllingAreaText.ControllingAreaName AS ControllingAreaName,
_Plant.Plant AS Plant,
_Plant.PlantName AS PlantName,
cast( _keydate.FiscalYear as fml_dacr_fiscal_year preserving type ) AS FiscalYear,
cast( _keydate.FiscalPeriod as fml_dacr_fiscal_period preserving type ) AS FiscalPeriod,
cast(concat(_keydate.FiscalYear, _keydate.FiscalPeriod) as fins_fyearperiod) AS FiscalYearPeriod,
_keydate.Material AS Material,
_Material._Text[1: Language = $session.system_language].MaterialName AS MaterialName,
cast(_keydate.InventoryValuationType as fml_dmvc_valuation_type) AS InventoryValuationType,
_keydate.Currency AS Currency,
cast( _keydate.ActualPrice as fml_dacr_actual_price ) AS InventoryPrice,
_keydate.StandardPrice AS StandardPrice,
_keydate.BaseUnit AS BaseUnit,
cast( _keydate.MaterialPriceUnitQty as fml_dacr_price_unit preserving type ) AS MaterialPriceUnitQty,
_keydate.SalesOrder AS SalesOrder,
_keydate.SalesOrderItem AS SalesOrderItem,
cast( _keydate.WBSElementInternalID as fml_dacr_ps_psp_pnr preserving type ) AS WBSElementInternalID,
_keydate.Supplier AS Supplier,
_keydate._CurrencyRole AS _CurrencyRole,
_keydate.MaterialPriceControl AS MaterialPriceControl,
cast(_mlrunlist.CostingRunStatus as ck_feh_sta ) AS CostingRunStatus,
_CostingRun._Text[1: Language = $session.system_language].CostingRunStatusName AS CostingRunStatusName,
_mlrunlist._RunPeriod.CostingRunType AS CostingRunType,
_mlrunlist._RunPeriod.CostingRunTypeName AS CostingRunTypeName,
_keydate._Ledger AS _Ledger
FROM R_InventoryPriceByKeyDateWide
INNER JOIN P_DspMatlActlCostgRsltRunList AS _mlrunlist ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Plant AS _Plant ON ValuationArea = _Plant.ValuationArea AND (ValuationArea is not initial OR ValuationArea <> '') -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElementBasicData ON WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN P_DACRCostingRunStatus AS _CostingRun ON _CostingRun.CostingRunStatus = _mlrunlist.CostingRunStatus -- 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