R_InventoryPriceChangeItemTP
CHMP - Price Change Item
R_InventoryPriceChangeItemTP is a Transactional CDS View that provides data about "CHMP - Price Change Item" in SAP S/4HANA. It reads from 1 data source (I_InventoryPriceChangeItem) and exposes 32 fields with key fields BatchItemUUID, ChangeDocTableKeyUUID. It has 6 associations to related views. Part of development package ODATA_ML_CHANGEMATERIALPRICES.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_InventoryPriceChangeItem | I_InventoryPriceChangeItem | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [0..1] | I_Ledger | _Ledger | $projection.Ledger = _Ledger.Ledger |
| [0..1] | R_LedgerValuationCrcyRole | _CurrencyRoleMapping | $projection.CurrencyRole = _CurrencyRoleMapping.LedgerValuationCurrencyRole |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_WBSElementBasicData | _WBSElementBasicData | $projection.WBSElementExternalID = _WBSElementBasicData.WBSElementExternalID |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | CHMP - Price Change Item | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (32)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BatchItemUUID | BatchItemUUID | Draft Document ID | |
| KEY | ChangeDocTableKeyUUID | ChangeDocTableKeyUUID | Change Document Table Key Universally Unique Identifier | |
| BatchUUID | BatchUUID | Target Grp GUID | ||
| CostEstimate | CostEstimate | Cost EstimateNo | ||
| CurrencyRole | CurrencyRole | Curr./Val. Type | ||
| InventoryValuationType | InventoryValuationType | Valuation Type | ||
| LedgerValnCrcyRoleIsUsedInLogs | Is Log. Curr. Type | |||
| Material | Material | Vehicle Model | ||
| MaterialPrice | Inventory Price | |||
| StatisticalMaterialPrice | StatisticalMaterialPrice | Inventory Price | ||
| MaterialPriceUnitQty | Price unit | |||
| NewMaterialPrice | Inventory Price | |||
| NewStatisticalMaterialPrice | NewStatisticalMaterialPrice | Inventory Price | ||
| NewMaterialPriceUnitQty | Price unit | |||
| Currency | Currency | Valuation Crcy | ||
| MaterialBaseUnit | MaterialBaseUnit | Valuation Unit | ||
| Ledger | Ledger | Ledger | ||
| MaterialPriceType | MaterialPriceType | Price Type | ||
| MaterialPriceControl | MaterialPriceControl | Price Control | ||
| SalesDocument | SalesDocument | SD Document | ||
| SalesDocumentItem | SalesDocumentItem | Sales Document Item | ||
| WBSElementExternalID | WBSElementExternalID | WBS Element External ID | ||
| ChangeRequestNote | Short Description | |||
| Plant | Plant | Valuation Area | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| _InventoryPriceChangeHeader | _InventoryPriceChangeHeader | |||
| _Material | _Material | |||
| _Ledger | _Ledger | |||
| _CurrencyRoleMapping | _CurrencyRoleMapping | |||
| _Plant | _Plant | |||
| _WBSElementBasicData | _WBSElementBasicData | |||
| _CompanyCode | _CompanyCode |
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 R_InventoryPriceChangeItemTP.
-- 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 R_InventoryPriceChangeItemTP AS
SELECT
BatchItemUUID,
ChangeDocTableKeyUUID,
BatchUUID,
CostEstimate,
CurrencyRole,
InventoryValuationType,
cast( LedgerValnCrcyRoleIsUsedInLogs as fml_chmp_price_category preserving type ) AS LedgerValnCrcyRoleIsUsedInLogs,
Material,
cast (MaterialPrice as fml_chmp_current_price preserving type) AS MaterialPrice,
StatisticalMaterialPrice,
cast (MaterialPriceUnitQty as fml_chmp_current_price_unit preserving type) AS MaterialPriceUnitQty,
cast (NewMaterialPrice as fml_chmp_new_price preserving type) AS NewMaterialPrice,
NewStatisticalMaterialPrice,
cast (NewMaterialPriceUnitQty as fml_chmp_new_peinh preserving type) AS NewMaterialPriceUnitQty,
Currency,
MaterialBaseUnit,
Ledger,
MaterialPriceType,
MaterialPriceControl,
SalesDocument,
SalesDocumentItem,
WBSElementExternalID,
cast( ChangeRequestNote as fml_chmp_change_note preserving type ) AS ChangeRequestNote,
Plant,
CompanyCode
FROM I_InventoryPriceChangeItem
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [0..1]
LEFT OUTER JOIN I_Ledger AS _Ledger ON Ledger = _Ledger.Ledger -- association [0..1]
LEFT OUTER JOIN R_LedgerValuationCrcyRole AS _CurrencyRoleMapping ON CurrencyRole = _CurrencyRoleMapping.LedgerValuationCurrencyRole -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElementBasicData ON WBSElementExternalID = _WBSElementBasicData.WBSElementExternalID -- 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