P_CHMPCurrentMatlPrByCostEst
WBS Valuation
P_CHMPCurrentMatlPrByCostEst is a Composite CDS View that provides data about "WBS Valuation" in SAP S/4HANA. It reads from 1 data source (P_CHMPMaterialValuation) and exposes 20 fields with key field CostEstimate. It has 2 associations to related views. Part of development package ODATA_ML_CHANGEMATERIALPRICES.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_CHMPMaterialValuation | MaterialValuation | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_WBSElementBasicData | _WBSElementBasicData | $projection.WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID |
| [0..1] | I_Plant | _Plant | $projection.ValuationArea = _Plant.Plant |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostEstimate | P_CHMPMaterialValuation | CostEstimate | Cost EstimateNo |
| Material | P_CHMPMaterialValuation | Material | Vehicle Model | |
| ValuationArea | P_CHMPMaterialValuation | ValuationArea | Valuation Area | |
| InventoryValuationType | P_CHMPMaterialValuation | InventoryValuationType | Valuation Type | |
| InventoryPrice | P_CHMPMaterialValuation | InventoryPrice | Price | |
| Currency | P_CHMPMaterialValuation | Currency | Valuation Crcy | |
| MaterialPriceUnitQty | P_CHMPMaterialValuation | PriceUnit | Fixation Set Grp UoM | |
| BaseUnit | P_CHMPMaterialValuation | BaseUnit | Unit of Measure | |
| MaterialPriceControl | P_CHMPMaterialValuation | PriceControl | ||
| InventoryValuationCategory | P_CHMPMaterialValuation | InventoryValuationCategory | Valuation Cat. | |
| PriceDeterminationControl | P_CHMPMaterialValuation | PriceDeterminationControl | Price Determ. | |
| WBSElementInternalID | ||||
| InventorySpecialStockType | P_CHMPMaterialValuation | InventorySpecialStockType | Special Stock Type | |
| SDDocument | P_CHMPMaterialValuation | SDDocument | SD Document | |
| SDDocumentItem | P_CHMPMaterialValuation | SDDocumentItem | ||
| ValuationTypeOrigin | ValuationTypeOrigin | |||
| _WBSElementBasicData | _WBSElementBasicData | |||
| _Plant | _Plant | |||
| _Product | _Product | |||
| _Material | _Material |
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_CHMPCurrentMatlPrByCostEst.
-- 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_CHMPCurrentMatlPrByCostEst AS
SELECT
MaterialValuation.CostEstimate AS CostEstimate,
MaterialValuation.Material AS Material,
MaterialValuation.ValuationArea AS ValuationArea,
MaterialValuation.InventoryValuationType AS InventoryValuationType,
MaterialValuation.InventoryPrice AS InventoryPrice,
MaterialValuation.Currency AS Currency,
MaterialValuation.PriceUnit AS MaterialPriceUnitQty,
MaterialValuation.BaseUnit AS BaseUnit,
MaterialValuation.PriceControl AS MaterialPriceControl,
MaterialValuation.InventoryValuationCategory AS InventoryValuationCategory,
MaterialValuation.PriceDeterminationControl AS PriceDeterminationControl,
cast(MaterialValuation.WBSElement as ps_s4_pspnr preserving type ) AS WBSElementInternalID,
MaterialValuation.InventorySpecialStockType AS InventorySpecialStockType,
MaterialValuation.SDDocument AS SDDocument,
MaterialValuation.SDDocumentItem AS SDDocumentItem,
ValuationTypeOrigin
FROM P_CHMPMaterialValuation AS MaterialValuation
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElementBasicData ON WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON ValuationArea = _Plant.Plant -- 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