P_CntrlContrPriceHistComp
Cenral Contract Price history Components
P_CntrlContrPriceHistComp is a Consumption CDS View that provides data about "Cenral Contract Price history Components" in SAP S/4HANA. It reads from 1 data source (I_CntrlPurContrWthPriceHist) and exposes 38 fields with key fields ActivePurchasingDocument, PurchasingDocumentVersion, CentralPurchaseContractItem, ProcmtHubPlantUniqueID, ProcmtHubContrValidityUUID. It has 1 association to related views. Part of development package ODATA_MM_PUR_CCTR_ANALYTICS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CntrlPurContrWthPriceHist | PriceHistory | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | vdm_validitystart | |
| P_EndDate | vdm_validityend |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CntrlContrPriceComponents | PriceComponent | PriceHistory.ProcmtHubContrValidityUUID = PriceComponent.ProcmtHubContrValidityUUID |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCNTRLPRCHISTCMP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| VDM.private | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Cenral Contract Price history Components | view |
Fields (38)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ActivePurchasingDocument | ActivePurchasingDocument | Active Purchase Doc | |
| KEY | PurchasingDocumentVersion | PurchasingDocumentVersion | Version | |
| KEY | CentralPurchaseContractItem | CentralPurchaseContractItem | Item in Central Purchase Contract | |
| KEY | ProcmtHubPlantUniqueID | ProcmtHubPlantUniqueID | Plant Unique ID | |
| KEY | ProcmtHubContrValidityUUID | ProcmtHubContrValidityUUID | Validity ID | |
| KEY | ProcmtHubContrIsCurrentVersion | ProcmtHubContrIsCurrentVersion | True | |
| CentralPurchaseContract | CentralPurchaseContract | Purchasing Doc. | ||
| PurchaseContractType | PurchaseContractType | Order Type | ||
| ConditionValidityStartDate | ConditionValidityStartDate | Valid From | ||
| ConditionValidityEndDate | ConditionValidityEndDate | Valid To | ||
| NetPriceAmount | NetPriceAmount | Net Price | ||
| NetPriceInReportingCurrency | NetPriceInReportingCurrency | NET PRICE | ||
| NetPriceInReportingCurrency2 | NetPriceInReportingCurrency2 | NET PRICE | ||
| NetAmount | NetAmount | Stated Amount | ||
| NetAmountInReportingCurrency | NetAmountInReportingCurrency | NET PRICE | ||
| NetAmountInReportingCurrency2 | NetAmountInReportingCurrency2 | NET PRICE | ||
| ProcmtHubContrBasePrDocCrcyAmt | ProcmtHubContrBasePrDocCrcyAmt | NET PRICE | ||
| ProcmtHubContrBasePrCrcy1Amt | ProcmtHubContrBasePrCrcy1Amt | NET PRICE | ||
| ProcmtHubContrBasePrCrcy2Amt | ProcmtHubContrBasePrCrcy2Amt | NET PRICE | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| AnalyticalReportingCurrency | AnalyticalReportingCurrency | Reporting Currency 1 | ||
| AnalyticalReportingCurrency2 | AnalyticalReportingCurrency2 | Reporting Currency 2 | ||
| CreationDate | CreationDate | Time Stamp | ||
| Supplier | Supplier | Supplier | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| Material | Material | Vehicle Model | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| ChangeReasonIsRelevantForVers | ChangeReasonIsRelevantForVers | TRUE | ||
| OrderQuantityUnit | OrderQuantityUnit | Sales Unit | ||
| CreatedByUser | CreatedByUser | User Name | ||
| ProcmtHubIncotermsClassfctn | ProcmtHubIncotermsClassfctn | Incoterms | ||
| ProcmtHubIncoterms2Classfctn | ProcmtHubIncoterms2Classfctn | Incoterms 2 | ||
| PaymentTerms | PaymentTerms | Pyt Terms | ||
| ShippingCondition | ShippingCondition | Shipping Conditions | ||
| ProcmtHubCompanyCodeGroupingID | ProcmtHubCompanyCodeGroupingID | Grouping ID | ||
| ConditionChangeReason | PriceComponent | ConditionChangeReason | Cndn Change Reason |
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_CntrlContrPriceHistComp.
-- 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: PCNTRLPRCHISTCMP
-- Parameters: P_StartDate : vdm_validitystart, P_EndDate : vdm_validityend
CREATE VIEW P_CntrlContrPriceHistComp AS
SELECT
ActivePurchasingDocument,
PurchasingDocumentVersion,
CentralPurchaseContractItem,
ProcmtHubPlantUniqueID,
ProcmtHubContrValidityUUID,
ProcmtHubContrIsCurrentVersion,
CentralPurchaseContract,
PurchaseContractType,
ConditionValidityStartDate,
ConditionValidityEndDate,
NetPriceAmount,
NetPriceInReportingCurrency,
NetPriceInReportingCurrency2,
NetAmount,
NetAmountInReportingCurrency,
NetAmountInReportingCurrency2,
ProcmtHubContrBasePrDocCrcyAmt,
ProcmtHubContrBasePrCrcy1Amt,
ProcmtHubContrBasePrCrcy2Amt,
DocumentCurrency,
AnalyticalReportingCurrency,
AnalyticalReportingCurrency2,
CreationDate,
Supplier,
CompanyCode,
PurchasingGroup,
PurchasingOrganization,
Material,
MaterialGroup,
ChangeReasonIsRelevantForVers,
OrderQuantityUnit,
CreatedByUser,
ProcmtHubIncotermsClassfctn,
ProcmtHubIncoterms2Classfctn,
PaymentTerms,
ShippingCondition,
ProcmtHubCompanyCodeGroupingID,
PriceComponent.ConditionChangeReason AS ConditionChangeReason
FROM I_CntrlPurContrWthPriceHist AS PriceHistory
LEFT OUTER JOIN I_CntrlContrPriceComponents AS PriceComponent ON PriceHistory.ProcmtHubContrValidityUUID = PriceComponent.ProcmtHubContrValidityUUID -- association [1..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