P_MatlLdgrPrByMltplValuations
Material Ledger Price by Price Type
P_MatlLdgrPrByMltplValuations is a Composite CDS View that provides data about "Material Ledger Price by Price Type" in SAP S/4HANA. It reads from 1 data source (I_MaterialLedgerPrice) and exposes 54 fields with key fields CostEstimate, Ledger, CurrencyRole, MaterialPriceType, MaterialPriceSubtype. It has 10 associations to related views. Part of development package ODATA_ML_MNTRMATLPRICES.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaterialLedgerPrice | I_MaterialLedgerPrice | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Plant | _Plant | $projection.ValuationArea = _Plant.Plant |
| [1..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_MaterialPriceControl | _MaterialPriceControl | $projection.MaterialPriceControl = _MaterialPriceControl.MaterialPriceControl |
| [1..1] | I_MaterialLedgerPriceType | _PriceType | $projection.MaterialPriceType = _PriceType.MaterialPriceType |
| [0..1] | I_WBSElementBasicData | _WBSElementBasicData | $projection.WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID |
| [0..1] | I_InvtryValnSpecialStockType | _InvtryValnSpecialStockType | $projection.InvtryValnSpecialStockType = _InvtryValnSpecialStockType.InvtryValnSpecialStockType |
| [0..1] | I_MatlPriceCostEstimateStage | _MatlPriceCostEstimateStage | $projection.MaterialPriceCostEstimateStage = _MatlPriceCostEstimateStage.MaterialPriceCostEstimateStage |
| [0..1] | I_StkMatlPriceValuationType | _StkMatlPriceValuationType | $projection.StkMaterialPriceValuationType = _StkMatlPriceValuationType.StkMaterialPriceValuationType |
| [0..1] | I_SlsOrdProjValnStrategyStdVH | _SlsOrdProjValnStrategy | $projection.CurPlanProjSlsOrdValnStrategy = _SlsOrdProjValnStrategy.SlsOrdProjValnStrategy |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (54)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostEstimate | Cost EstimateNo | ||
| KEY | Ledger | Ledger | Ledger | |
| KEY | CurrencyRole | CurrencyRole | Curr./Val. Type | |
| KEY | MaterialPriceType | MaterialPriceType | Price Type | |
| KEY | MaterialPriceSubtype | MaterialPriceSubtype | ||
| KEY | MaterialPriceValidityStartDate | MaterialPriceValidityStartDate | ||
| KEY | MaterialPriceValidityEndDate | |||
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | MaterialPriceControl | Price Control | ||
| KEY | CurPlanProjSlsOrdValnStrategy | |||
| KEY | MaterialPriceCostEstimateStage | MaterialPriceCostEstimateStage | ||
| KEY | InventoryValuationType | Valuation Type | ||
| KEY | InvtryValnSpecialStockType | InvtryValnSpecialStockType | ||
| KEY | StkMaterialPriceValuationType | StkMaterialPriceValuationType | ||
| KEY | MaterialPriceExtReference | MaterialPriceExtReference | ||
| KEY | MaterialPriceExtRefCategory | MaterialPriceExtRefCategory | ||
| KEY | SalesOrder | SD Document | ||
| KEY | SalesOrderItem | Sales Order Item | ||
| Material | Material | Vehicle Model | ||
| ValuationArea | ValuationArea | Valuation Area | ||
| WBSElementInternalID | WBS Internal ID | |||
| Supplier | Supplier | |||
| SlsOrdProjValnStrgyName | _SlsOrdProjValnStrategy | SlsOrdProjValnStrgyName | ||
| MaterialValuationListText | ||||
| MatlLdgrPrValnCrcyRoleSemKey | ||||
| ValidOnDate | ||||
| AmountInFreeDefinedCurrency1 | ||||
| AmountInFreeDefinedCurrency2 | ||||
| AmountInFreeDefinedCurrency3 | ||||
| AmountInFreeDefinedCurrency4 | ||||
| AmountInFreeDefinedCurrency5 | ||||
| AmountInFreeDefinedCurrency6 | ||||
| AmountInFreeDefinedCurrency7 | ||||
| AmountInFreeDefinedCurrency8 | ||||
| AmountInFreeDefinedCurrency9 | ||||
| FreeDefinedCurrency1 | ||||
| FreeDefinedCurrency2 | ||||
| FreeDefinedCurrency3 | ||||
| FreeDefinedCurrency4 | ||||
| FreeDefinedCurrency5 | ||||
| FreeDefinedCurrency6 | ||||
| FreeDefinedCurrency7 | ||||
| FreeDefinedCurrency8 | ||||
| FreeDefinedCurrency9 | ||||
| _Plant | _Plant | |||
| _Material | _Material | |||
| _CompanyCode | _CompanyCode | |||
| _MaterialPriceControl | _MaterialPriceControl | |||
| _PriceType | _PriceType | |||
| _WBSElementBasicData | _WBSElementBasicData | |||
| _InvtryValnSpecialStockType | _InvtryValnSpecialStockType | |||
| _MatlPriceCostEstimateStage | _MatlPriceCostEstimateStage | |||
| _StkMatlPriceValuationType | _StkMatlPriceValuationType | |||
| _SlsOrdProjValnStrategy | _SlsOrdProjValnStrategy |
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_MatlLdgrPrByMltplValuations.
-- 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.
CREATE VIEW P_MatlLdgrPrByMltplValuations AS
SELECT
cast(CostEstimate as fml_chmp_cost_estimate_number preserving type) AS CostEstimate,
Ledger,
CurrencyRole,
MaterialPriceType,
MaterialPriceSubtype,
MaterialPriceValidityStartDate,
cast(MaterialPriceValidityEndDate as fml_date_to preserving type) AS MaterialPriceValidityEndDate,
CompanyCode,
cast(MaterialPriceControl as fml_mpchd_price_control preserving type) AS MaterialPriceControl,
cast(CurPlanProjSlsOrdValnStrategy as fml_chmp_lbwst preserving type) AS CurPlanProjSlsOrdValnStrategy,
MaterialPriceCostEstimateStage,
cast(InventoryValuationType as fml_mpchd_valuation_type preserving type) AS InventoryValuationType,
InvtryValnSpecialStockType,
StkMaterialPriceValuationType,
MaterialPriceExtReference,
MaterialPriceExtRefCategory,
cast(SalesOrder as vbeln preserving type) AS SalesOrder,
cast(SalesOrderItem as posnr preserving type) AS SalesOrderItem,
Material,
ValuationArea,
cast(WBSElementInternalID as ps_s4_pspnr preserving type) AS WBSElementInternalID,
cast(Supplier as lifnr preserving type) AS Supplier,
_SlsOrdProjValnStrategy.SlsOrdProjValnStrgyName AS SlsOrdProjValnStrgyName,
concat(concat(Ledger, CurrencyRole), ',') AS MaterialValuationListText,
cast('' as fml_valncrcyrolesemkey) AS MatlLdgrPrValnCrcyRoleSemKey,
cast('00010101' as fml_date_valid_on) AS ValidOnDate,
cast(0 as fis_osl) AS AmountInFreeDefinedCurrency1,
cast(0 as fis_vsl) AS AmountInFreeDefinedCurrency2,
cast(0 as fis_bsl) AS AmountInFreeDefinedCurrency3,
cast(0 as fis_csl) AS AmountInFreeDefinedCurrency4,
cast(0 as fis_dsl) AS AmountInFreeDefinedCurrency5,
cast(0 as fis_esl) AS AmountInFreeDefinedCurrency6,
cast(0 as fis_fsl) AS AmountInFreeDefinedCurrency7,
cast(0 as fis_gsl) AS AmountInFreeDefinedCurrency8,
cast(0 as fis_freely_defined_currency_9) AS AmountInFreeDefinedCurrency9,
cast('' as fis_rocur) AS FreeDefinedCurrency1,
cast('' as fis_rvcur) AS FreeDefinedCurrency2,
cast('' as fins_curr3) AS FreeDefinedCurrency3,
cast('' as fins_curr4) AS FreeDefinedCurrency4,
cast('' as fins_curr5) AS FreeDefinedCurrency5,
cast('' as fins_curr6) AS FreeDefinedCurrency6,
cast('' as fins_curr7) AS FreeDefinedCurrency7,
cast('' as fins_curr8) AS FreeDefinedCurrency8,
cast('' as fins_curr9) AS FreeDefinedCurrency9
FROM I_MaterialLedgerPrice
LEFT OUTER JOIN I_Plant AS _Plant ON ValuationArea = _Plant.Plant -- 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_MaterialPriceControl AS _MaterialPriceControl ON MaterialPriceControl = _MaterialPriceControl.MaterialPriceControl -- association [0..1]
LEFT OUTER JOIN I_MaterialLedgerPriceType AS _PriceType ON MaterialPriceType = _PriceType.MaterialPriceType -- association [1..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElementBasicData ON WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN I_InvtryValnSpecialStockType AS _InvtryValnSpecialStockType ON InvtryValnSpecialStockType = _InvtryValnSpecialStockType.InvtryValnSpecialStockType -- association [0..1]
LEFT OUTER JOIN I_MatlPriceCostEstimateStage AS _MatlPriceCostEstimateStage ON MaterialPriceCostEstimateStage = _MatlPriceCostEstimateStage.MaterialPriceCostEstimateStage -- association [0..1]
LEFT OUTER JOIN I_StkMatlPriceValuationType AS _StkMatlPriceValuationType ON StkMaterialPriceValuationType = _StkMatlPriceValuationType.StkMaterialPriceValuationType -- association [0..1]
LEFT OUTER JOIN I_SlsOrdProjValnStrategyStdVH AS _SlsOrdProjValnStrategy ON CurPlanProjSlsOrdValnStrategy = _SlsOrdProjValnStrategy.SlsOrdProjValnStrategy -- 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