P_Ml_Prices_Ckml
P_Ml_Prices_Ckml is a Basic CDS View in SAP S/4HANA. It reads from 4 data sources (ckmlcr, ckmlhd, ckmlpr, prps) and exposes 33 fields with key fields CostEstimate, CurrencyRole, FiscalYear, FiscalPeriod.
Data Sources (4)
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMLPRICESCKML | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.status | #DEPRECATED | view |
Fields (33)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostEstimate | ckmlpr | kalnr | ProdCostEst.No. |
| KEY | CurrencyRole | ckmlpr | curtp | Valuation Area |
| KEY | FiscalYear | ckmlcr | bdatj | Year |
| KEY | FiscalPeriod | ckmlcr | poper | Posting periods |
| Material | ckmlhd | matnr | Vehicle Model | |
| ValuationArea | ckmlhd | bwkey | Valuation Area | |
| InventoryValuationType | ckmlhd | bwtar | Valuation Type | |
| SalesOrder | ckmlhd | vbeln | SD Sched. Agmt | |
| SalesOrderItem | ckmlhd | posnr | WBS Element | |
| Supplier | ckmlhd | lifnr | Vendor no. | |
| WBSElementInternalID | ckmlhd | pspnr | WBS Element | |
| WBSElement | prps | posid | WBS Element | |
| InvtryValnSpecialStockType | ckmlhd | sobkz | Special Stock | |
| InventorySpecialStockValnType | ckmlhd | kzbws | Valuation | |
| IsSupplierStockValuation | ckmlhd | xobew | Vendor stk val. | |
| FiscalYearPeriod | ||||
| PriceDeterminationControl | ckmlhd | mlast | Price Determ. | |
| MaterialPriceControl | ckmlcr | vprsv | Price control | |
| MaterialPriceUnitQty | ckmlcr | peinh | Unit of measure | |
| Currency | ckmlcr | waers | Transaction Currency | |
| MovingAveragePrice | ckmlcr | pvprs | Per. Unit Price | |
| StandardPrice | ckmlcr | stprs | Standard price | |
| stprs0endasInventoryPrice | ||||
| CurrentPlanPrice | ckmlpr | lplpr | Curr.Plnd Price | |
| FuturePrice | ckmlpr | zkprs | Future Price | |
| FuturePriceValidityStartDate | ckmlpr | zprsdat | Fut. Price From | |
| PlannedPrice | ||||
| FutrCostEstValuationVariant | ckmlpr | bwva1 | Valuation Var. | |
| FutureCostEstFiscalYear | ckmlpr | pdatz | Fut. FYyear | |
| FutureCostEstimateFiscalPeriod | ckmlpr | pprdz | Posting Period | |
| FutureCostEstCostingVersion | ckmlpr | vers1 | Late Completion | |
| FutrPlanProjSlsOrdValnStrategy | ckmlpr | zbwst | Fut. Valn Strat. | |
| FixedPortionOfPlannedPrice |
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_Ml_Prices_Ckml.
-- 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.
-- SQL view name: PMLPRICESCKML
CREATE VIEW P_Ml_Prices_Ckml AS
SELECT
pr.kalnr AS CostEstimate,
pr.curtp AS CurrencyRole,
cr.bdatj AS FiscalYear,
cr.poper AS FiscalPeriod,
hd.matnr AS Material,
hd.bwkey AS ValuationArea,
hd.bwtar AS InventoryValuationType,
hd.vbeln AS SalesOrder,
hd.posnr AS SalesOrderItem,
hd.lifnr AS Supplier,
hd.pspnr AS WBSElementInternalID,
ps.posid AS WBSElement,
hd.sobkz AS InvtryValnSpecialStockType,
hd.kzbws AS InventorySpecialStockValnType,
hd.xobew AS IsSupplierStockValuation,
concat(cr.bdatj, cr.poper) AS FiscalYearPeriod,
hd.mlast AS PriceDeterminationControl,
cr.vprsv AS MaterialPriceControl,
cr.peinh AS MaterialPriceUnitQty,
cr.waers AS Currency,
cr.pvprs AS MovingAveragePrice,
cr.stprs AS StandardPrice,
case cr.vprsv when 'S' then COALESCE(cr.stprs, 0) when 'V' then COALESCE(cr.pvprs, 0) else COALESCE(cr.stprs, 0) end as InventoryPrice AS stprs0endasInventoryPrice,
pr.lplpr AS CurrentPlanPrice,
pr.zkprs AS FuturePrice,
pr.zprsdat AS FuturePriceValidityStartDate,
cast(pr.zplpr as fml_plpr) AS PlannedPrice,
pr.bwva1 AS FutrCostEstValuationVariant,
pr.pdatz AS FutureCostEstFiscalYear,
pr.pprdz AS FutureCostEstimateFiscalPeriod,
pr.vers1 AS FutureCostEstCostingVersion,
pr.zbwst AS FutrPlanProjSlsOrdValnStrategy,
cast(pr.fplpx as fml_plpx) AS FixedPortionOfPlannedPrice
FROM ckmlpr AS pr
LEFT OUTER JOIN ckmlhd AS hd ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN ckmlcr AS cr ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN prps AS ps ON /* join condition not captured in parsed metadata */
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- 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
- 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