P_MATVAL_MANAGE_CKML
P_MATVAL_MANAGE_CKML is a Basic CDS View in SAP S/4HANA. It reads from 18 data sources and exposes 74 fields with key fields CostEstimate, LedgerValuationCurrencyRole, FiscalYear, FiscalPeriod, ValuationArea. It has 5 associations to related views.
Data Sources (18)
| Source | Alias | Join Type |
|---|---|---|
| ckmlcr | cr | left_outer |
| fmlv_curtp_ml | curtp | inner |
| I_MaterialLedgerPrice | FUTURE | left_outer |
| I_MaterialLedgerPrice | FUTURE | left_outer |
| ckmlhd | hd | left_outer |
| ckmlhd | hd | left_outer |
| ckmlhd | hd | left_outer |
| I_MatlLedgerValnCrcyRoleName | lvcr | inner |
| I_MatlLedgerValnCrcyRoleName | lvcr | inner |
| v_mbew_md | m | left_outer |
| v_mbew_md | m | union_all |
| ckmlpr | pr | from |
| I_MaterialLedgerPrice | price | union_all |
| t001k | t | inner |
| R_MatlPriceDataMigrationStatus | tf | inner |
| R_MatlPriceDataMigrationStatus | tf | inner |
| R_MatlPriceDataMigrationStatus | tf | inner |
| t001k | tk | inner |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_WBSElementBasicData | _WBSElementBasicData | hd.pspnr = _WBSElementBasicData.WBSElementInternalID |
| [0..1] | I_MaterialLedgerPrice | _STDPR | _STDPR.CostEstimate = price.CostEstimate and _STDPR.Ledger = price.Ledger and _STDPR.CurrencyRole = price.CurrencyRole and _STDPR.CompanyCode = price.CompanyCode and _STDPR.ValuationArea = price.ValuationArea and _STDPR.MaterialPriceType = 'STDPR' and _STDPR.MaterialPriceSubtype = '' and _STDPR.MatlPrcValdtyStrtFsclYearPerd <= price.MatlPrcValdtyStrtFsclYearPerd and _STDPR.MatlPrcValdtyEndFsclYearPeriod >= price.MatlPrcValdtyEndFsclYearPeriod |
| [0..1] | I_MaterialLedgerPrice | _ACT | _ACT.CostEstimate = price.CostEstimate and _ACT.CurrencyRole = price.CurrencyRole and _ACT.Ledger = price.Ledger and _ACT.CompanyCode = price.CompanyCode and _ACT.ValuationArea = price.ValuationArea and _ACT.MaterialPriceType = 'ACT' and _ACT.MaterialPriceSubtype = 'ACT' and _ACT.MatlPrcValdtyStrtFsclYearPerd <= price.MatlPrcValdtyStrtFsclYearPerd and _ACT.MatlPrcValdtyEndFsclYearPeriod >= price.MatlPrcValdtyEndFsclYearPeriod |
| [0..1] | I_MaterialLedgerPrice | _MAP | _MAP.CostEstimate = price.CostEstimate and _MAP.CurrencyRole = price.CurrencyRole and _MAP.Ledger = price.Ledger and _MAP.CompanyCode = price.CompanyCode and _MAP.ValuationArea = price.ValuationArea and _MAP.MaterialPriceType = 'MAP' and _MAP.MaterialPriceSubtype = '' and _MAP.MatlPrcValdtyStrtFsclYearPerd <= price.MatlPrcValdtyStrtFsclYearPerd and _MAP.MatlPrcValdtyEndFsclYearPeriod >= price.MatlPrcValdtyEndFsclYearPeriod |
| [0..1] | I_MaterialLedgerPrice | _FSTDCE | _FSTDCE.CostEstimate = price.CostEstimate and _FSTDCE.CurrencyRole = price.CurrencyRole and _FSTDCE.Ledger = price.Ledger and _FSTDCE.CompanyCode = price.CompanyCode and _FSTDCE.ValuationArea = price.ValuationArea and _FSTDCE.MaterialPriceType = 'FSTDCE' and _FSTDCE.MaterialPriceSubtype = '' and _FSTDCE.MatlPrcValdtyStrtFsclYearPerd = price.MatlPrcValdtyStrtFsclYearPerd |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.sqlViewName | PMATVALMGMCKML | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view |
Fields (74)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostEstimate | ckmlpr | kalnr | ProdCostEst.No. |
| KEY | LedgerValuationCurrencyRole | I_MatlLedgerValnCrcyRoleName | LedgerValuationCurrencyRole | Valuation Area |
| KEY | FiscalYear | ckmlcr | bdatj | |
| KEY | FiscalPeriod | ckmlcr | poper | |
| KEY | ValuationArea | ckmlhd | bwkey | Valuation Area |
| KEY | Material | ckmlhd | matnr | Vehicle Model |
| KEY | InventoryValuationType | ckmlhd | bwtar | Valuation Type |
| InvtryValnSpecialStockType | ckmlhd | sobkz | ||
| SalesOrder | ckmlhd | vbeln | SD Sched. Agmt | |
| SalesOrderItem | ckmlhd | posnr | WBS Element | |
| Supplier | ckmlhd | lifnr | Vendor no. | |
| WBSElementInternalID | ckmlhd | pspnr | WBS Element | |
| WBSElementExternalID | _WBSElementBasicData | WBSElementExternalID | WBS Element External ID | |
| FiscalYearPeriod | ||||
| InventorySpecialStockValnType | ckmlhd | kzbws | Valuation | |
| PriceDeterminationControl | Price Determ. | |||
| FuturePrice | ||||
| FuturePriceValidityStartDate | ||||
| FuturePlannedPrice | ckmlpr | zplpr | Fut. Plnd Price | |
| MaterialPriceControl | Price control | |||
| MaterialPriceUnitQty | ckmlcr | peinh | Price unit | |
| MovingAveragePrice | ckmlcr | pvprs | Per. Unit Price | |
| StandardPrice | ckmlcr | stprs | Standard price | |
| Currency | ckmlcr | waers | Transaction Currency | |
| FxdPortnOfPlanPrcInCoCodeCrcy | ||||
| CostEstimate | ProdCostEst.No. | |||
| KEY | LedgerValuationCurrencyRole | I_MatlLedgerValnCrcyRoleName | LedgerValuationCurrencyRole | Valuation Area |
| KEY | FiscalYear | I_MaterialLedgerPrice | MatlPrcValidityStartFiscalYear | |
| KEY | FiscalPeriod | I_MaterialLedgerPrice | MatlPrcValdtyStartFiscalPeriod | |
| KEY | ValuationArea | I_MaterialLedgerPrice | ValuationArea | Valuation Area |
| KEY | Material | I_MaterialLedgerPrice | Material | Vehicle Model |
| KEY | InventoryValuationType | I_MaterialLedgerPrice | InventoryValuationType | Valuation Type |
| InvtryValnSpecialStockType | I_MaterialLedgerPrice | InvtryValnSpecialStockType | ||
| SalesOrder | ckmlhd | vbeln | SD Sched. Agmt | |
| SalesOrderItem | ckmlhd | posnr | WBS Element | |
| Supplier | ckmlhd | lifnr | Vendor no. | |
| WBSElementInternalID | ckmlhd | pspnr | WBS Element | |
| WBSElementExternalID | _WBSElementBasicData | WBSElementExternalID | WBS Element External ID | |
| FiscalYearPeriod | I_MaterialLedgerPrice | MatlPrcValdtyStrtFsclYearPerd | ||
| InventorySpecialStockValnType | ckmlhd | kzbws | Valuation | |
| PriceDeterminationControl | Price Determ. | |||
| FuturePrice | ||||
| FuturePriceValidityStartDate | ||||
| FuturePlannedPrice | Fut. Plnd Price | |||
| MaterialPriceControl | I_MaterialLedgerPrice | MaterialPriceControl | Price control | |
| MaterialPriceUnitQty | I_MaterialLedgerPrice | MaterialPriceUnitQty | Price unit | |
| Currency | I_MaterialLedgerPrice | Currency | Transaction Currency | |
| FxdPortnOfPlanPrcInCoCodeCrcy | ||||
| kaln1asCostEstimate | ||||
| KEY | LedgerValuationCurrencyRole | fmlv_curtp_ml | curtp | Valuation Area |
| KEY | FiscalYear | |||
| KEY | FiscalPeriod | |||
| KEY | ValuationArea | v_mbew_md | bwkey | Valuation Area |
| KEY | Material | v_mbew_md | matnr | Vehicle Model |
| KEY | InventoryValuationType | Valuation Type | ||
| InvtryValnSpecialStockType | ||||
| SalesOrder | SD Sched. Agmt | |||
| SalesOrderItem | WBS Element | |||
| Supplier | Vendor no. | |||
| WBSElementInternalID | ckmlhd | pspnr | WBS Element | |
| WBSElementExternalID | WBS Element External ID | |||
| FiscalYearPeriod | ||||
| InventorySpecialStockValnType | Valuation | |||
| PriceDeterminationControl | v_mbew_md | mlast | Price Determ. | |
| FuturePrice | ||||
| FuturePriceValidityStartDate | ||||
| FuturePlannedPrice | Fut. Plnd Price | |||
| MaterialPriceControl | v_mbew_md | vprsv | Price control | |
| MaterialPriceUnitQty | Price unit | |||
| MovingAveragePrice | Per. Unit Price | |||
| StandardPrice | Standard price | |||
| Currency | fmlv_curtp_ml | waers | Transaction Currency | |
| FxdPortnOfPlanPrcInCoCodeCrcy | ||||
| _WBSElementBasicData | _WBSElementBasicData |
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_MATVAL_MANAGE_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: PMATVALMGMCKML
CREATE VIEW P_MATVAL_MANAGE_CKML AS
SELECT
pr.kalnr AS CostEstimate,
lvcr.LedgerValuationCurrencyRole AS LedgerValuationCurrencyRole,
cr.bdatj AS FiscalYear,
cr.poper AS FiscalPeriod,
hd.bwkey AS ValuationArea,
hd.matnr AS Material,
hd.bwtar AS InventoryValuationType,
hd.sobkz AS InvtryValnSpecialStockType,
hd.vbeln AS SalesOrder,
hd.posnr AS SalesOrderItem,
hd.lifnr AS Supplier,
hd.pspnr AS WBSElementInternalID,
_WBSElementBasicData.WBSElementExternalID AS WBSElementExternalID,
concat(cr.bdatj, cr.poper) AS FiscalYearPeriod,
hd.kzbws AS InventorySpecialStockValnType,
cast(hd.mlast as fml_abst) AS PriceDeterminationControl,
cast(pr.zkprs as fml_dzkprs) AS FuturePrice,
cast(pr.zprsdat as fml_zprsdat) AS FuturePriceValidityStartDate,
pr.zplpr AS FuturePlannedPrice,
cast(cr.vprsv as inventoryvaluationprocedure) AS MaterialPriceControl,
cr.peinh AS MaterialPriceUnitQty,
cr.pvprs AS MovingAveragePrice,
cr.stprs AS StandardPrice,
cr.waers AS Currency,
cast(pr.lplpx as fml_price_fixed) AS FxdPortnOfPlanPrcInCoCodeCrcy
FROM ckmlpr AS pr
INNER JOIN R_MatlPriceDataMigrationStatus AS tf ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN ckmlhd AS hd ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN v_mbew_md AS m ON /* join condition not captured in parsed metadata */
INNER JOIN t001k AS tk ON /* join condition not captured in parsed metadata */
INNER JOIN I_MatlLedgerValnCrcyRoleName AS lvcr 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 I_MaterialLedgerPrice AS FUTURE ON /* join condition not captured in parsed metadata */
INNER JOIN t001k AS t ON /* join condition not captured in parsed metadata */
INNER JOIN fmlv_curtp_ml AS curtp ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElementBasicData ON hd.pspnr = _WBSElementBasicData.WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN I_MaterialLedgerPrice AS _STDPR ON _STDPR.CostEstimate = price.CostEstimate AND _STDPR.Ledger = price.Ledger AND _STDPR.CurrencyRole = price.CurrencyRole AND _STDPR.CompanyCode = price.CompanyCode AND _STDPR.ValuationArea = price.ValuationArea AND _STDPR.MaterialPriceType = 'STDPR' AND _STDPR.MaterialPriceSubtype = '' AND _STDPR.MatlPrcValdtyStrtFsclYearPerd <= price.MatlPrcValdtyStrtFsclYearPerd AND _STDPR.MatlPrcValdtyEndFsclYearPeriod >= price.MatlPrcValdtyEndFsclYearPeriod -- association [0..1]
LEFT OUTER JOIN I_MaterialLedgerPrice AS _ACT ON _ACT.CostEstimate = price.CostEstimate AND _ACT.CurrencyRole = price.CurrencyRole AND _ACT.Ledger = price.Ledger AND _ACT.CompanyCode = price.CompanyCode AND _ACT.ValuationArea = price.ValuationArea AND _ACT.MaterialPriceType = 'ACT' AND _ACT.MaterialPriceSubtype = 'ACT' AND _ACT.MatlPrcValdtyStrtFsclYearPerd <= price.MatlPrcValdtyStrtFsclYearPerd AND _ACT.MatlPrcValdtyEndFsclYearPeriod >= price.MatlPrcValdtyEndFsclYearPeriod -- association [0..1]
LEFT OUTER JOIN I_MaterialLedgerPrice AS _MAP ON _MAP.CostEstimate = price.CostEstimate AND _MAP.CurrencyRole = price.CurrencyRole AND _MAP.Ledger = price.Ledger AND _MAP.CompanyCode = price.CompanyCode AND _MAP.ValuationArea = price.ValuationArea AND _MAP.MaterialPriceType = 'MAP' AND _MAP.MaterialPriceSubtype = '' AND _MAP.MatlPrcValdtyStrtFsclYearPerd <= price.MatlPrcValdtyStrtFsclYearPerd AND _MAP.MatlPrcValdtyEndFsclYearPeriod >= price.MatlPrcValdtyEndFsclYearPeriod -- association [0..1]
LEFT OUTER JOIN I_MaterialLedgerPrice AS _FSTDCE ON _FSTDCE.CostEstimate = price.CostEstimate AND _FSTDCE.CurrencyRole = price.CurrencyRole AND _FSTDCE.Ledger = price.Ledger AND _FSTDCE.CompanyCode = price.CompanyCode AND _FSTDCE.ValuationArea = price.ValuationArea AND _FSTDCE.MaterialPriceType = 'FSTDCE' AND _FSTDCE.MaterialPriceSubtype = '' AND _FSTDCE.MatlPrcValdtyStrtFsclYearPerd = price.MatlPrcValdtyStrtFsclYearPerd -- association [0..1]
-- UNION ALL with additional select branch(es): I_MaterialLedgerPrice, v_mbew_md
;
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