C_CntrlContractCnsmpn
Central contract consumption cube view
C_CntrlContractCnsmpn (Consumption)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Sourcing & Procurement
C_CntrlContractCnsmpn is a Consumption CDS View (Cube) that provides data about "Central contract consumption cube view" in SAP S/4HANA. It reads from 1 data source (P_CntrlPurContractItems) and exposes 49 fields with key fields CentralPurchaseContract, CentralPurchaseContractItem, DistributionKey. It has 3 associations to related views.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Sourcing & Procurement |
| Application Component | MM-PUR-ANA |
| Capabilities | Data Provider for Analytical Queries |
| Package | Sourcing & Procurement for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_CntrlPurContractItems | P_CntrlPurContractItems | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_DisplayCurrency | displaycurrency | |
| P_StartDate | vdm_validitystart | |
| P_EndDate | vdm_validitystart |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CalendarDate | _RelevantDates | CentrlContractItems.ValidityStartDate = _RelevantDates.CalendarDate association[1..1] to I_ProcmtHubPurgOrgAPI01 as _HubPurchasingOrg on $projection.ProcurementHubSourceSystem = _HubPurchasingOrg.ProcurementHubSourceSystem and $projection.ProcmtHubPurchasingOrg = _HubPurchasingOrg.ProcmtHubPurchasingOrg association[1..1] to I_ProcmtHubPurgGroupAPI01 as _HubPurchasingGroup on $projection.ProcurementHubSourceSystem = _HubPurchasingGroup.ProcurementHubSourceSystem and $projection.ProcmtHubPurchasingGroup = _HubPurchasingGroup.ProcmtHubPurchasingGroup |
| [1..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier association[1..1] to I_ProcmtHubPlant as _HubPlant on $projection.ProcmtHubPlant = _HubPlant.ProcmtHubPlant and $projection.ProcmtHubCompanyCode = _HubPlant.ProcmtHubCompanyCode and $projection.ProcurementHubSourceSystem = _HubPlant.ProcurementHubSourceSystem association[1..1] to I_ProcmtHubPlant as _HubPlant_2 on $projection.ProcmtHubPlant = _HubPlant_2.ProcmtHubPlant and $projection.CompanyCodeName = _HubPlant_2.ProcmtHubCompanyCode and $projection.ProcurementHubSourceSystem = _HubPlant_2.ProcurementHubSourceSystem association[1..1] to I_ProcmtHubCompanyCode as _HubCompanyCode on $projection.CompanyCodeName = _HubCompanyCode.ProcmtHubCompanyCode and $projection.ProcurementHubSourceSystem = _HubCompanyCode.ProcurementHubSourceSystem association[1..1] to I_ProductGroup_2 as _ProductGroup on $projection.MaterialGroup = _ProductGroup.ProductGroup association[1..1] to I_Product as _Product on $projection.Material = _Product.Product association[1..1] to I_Plant as _Plant on $projection.Plant = _Plant.Plant association[1..1] to I_PurchasingOrganization as _PurchasingOrganization on $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization association[1..1] to I_PurchasingGroup as _PurchasingGroup on $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup association[1..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode = _CompanyCode.CompanyCode association[1..1] to I_ProcmtHubBackendSourceSystem as _BackendSourceSystem on $projection.ProcurementHubSourceSystem = _BackendSourceSystem.ProcurementHubSourceSystem |
| [1..1] | I_CntrlPurContrChgReqStatus | _VersionType | $projection.PurgDocChangeRequestStatus = _VersionType.PurgDocChangeRequestStatus |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| AbapCatalog.sqlViewName | CNTRLCONTRCNSMPN | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Metadata.allowExtensions | true | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.dataCategory | #CUBE | view | |
| EndUserText.label | Central contract consumption cube view | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_CUBE | view |
Fields (49)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CentralPurchaseContract | CentralPurchaseContract | Central Purchase Contract | |
| KEY | CentralPurchaseContractItem | CentralPurchaseContractItem | Item in Central Purchase Contract | |
| KEY | DistributionKey | DistributionKey | Distribution Number of Central Purchasing Document | |
| PurchaseContractType | PurchaseContractType | Purchasing Document Type | ||
| Supplier | Supplier | Supplier | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| Plant | Plant | Valuation Area | ||
| OrderQuantityUnit | OrderQuantityUnit | Purchase Order Unit of Measure | ||
| Material | Material | Material Number | ||
| MaterialGroup | MaterialGroup | Material Group | ||
| PurchasingDocumentCategory | PurchasingDocumentCategory | Purchasing Document Category | ||
| ProcmtHubPurchasingOrg | ProcmtHubPurchasingOrg | Connected Purchasing Organization | ||
| ProcmtHubPurchasingGroup | ProcmtHubPurchasingGroup | Back-End Purchasing Group | ||
| ProcmtHubPlant | ProcmtHubPlant | Connected Plant | ||
| CompanyCodeName | ProcmtHubCompanyCode | Connected Company Code | ||
| ProcmtHubCompanyCode | ProcmtHubCompanyCode | Connected Company Code | ||
| CalendarYear | _RelevantDates | CalendarYear | Calendar Year | |
| CalendarQuarter | _RelevantDates | CalendarQuarter | Calendar Quarter | |
| CalendarMonth | _RelevantDates | CalendarMonth | Calendar Month | |
| CalendarWeek | _RelevantDates | CalendarWeek | Calendar Week | |
| ProcmtHubPurchasingGroupName | _HubPurchasingGroup | ProcmtHubPurchasingGroupName | Description of purchasing group | |
| ProcmtHubPlantName | _HubPlant | ProcmtHubPlantName | Plant Name | |
| ProcmtHubCompanyCodeName | _HubCompanyCode | ProcmtHubCompanyCodeName | Name of Company Code or Company | |
| ProcmtHubPurgOrgName | _HubPurchasingOrg | ProcmtHubPurgOrgName | Connected Purchasing Organisation Name | |
| ValidityStartDate | ValidityStartDate | Start of Validity Period | ||
| ValidityEndDate | ValidityEndDate | End of Validity Period | ||
| DisplayCurrency | DisplayCurrency | Display Currency | ||
| TargetQuantity | TargetQuantity | Target Quantity | ||
| TargetAmount | TargetAmount | Target Amount | ||
| ReleaseOrderItemNetAmount | ReleaseOrderItemNetAmount | Release Net Amount | ||
| ReleaseOrderItemOrderQuantity | ReleaseOrderItemOrderQuantity | Release Order Quantity | ||
| ProcurementHubSourceSystem | ProcurementHubSourceSystem | Connected System ID | ||
| PurgDocChangeRequestStatus | CentrlContractItems | PurgDocChangeRequestStatus | Change Request Status | |
| _HubPlant_2 | _HubPlant_2 | |||
| _HubPlant | _HubPlant | |||
| _HubPurchasingGroup | _HubPurchasingGroup | |||
| _HubPurchasingOrg | _HubPurchasingOrg | |||
| _HubCompanyCode | _HubCompanyCode | |||
| _Supplier | _Supplier | |||
| _ProductGroup | _ProductGroup | |||
| _Product | _Product | |||
| _Plant | _Plant | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _BackendSourceSystem | _BackendSourceSystem | |||
| _CompanyCode | _CompanyCode | |||
| _VersionType | _VersionType |
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 C_CntrlContractCnsmpn.
-- 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: CNTRLCONTRCNSMPN
-- Parameters: P_DisplayCurrency : displaycurrency, P_StartDate : vdm_validitystart, P_EndDate : vdm_validitystart
CREATE VIEW C_CntrlContractCnsmpn AS
SELECT
CentralPurchaseContract,
CentralPurchaseContractItem,
DistributionKey,
PurchaseContractType,
Supplier,
PurchasingGroup,
PurchasingOrganization,
CompanyCode,
Plant,
OrderQuantityUnit,
Material,
MaterialGroup,
PurchasingDocumentCategory,
ProcmtHubPurchasingOrg,
ProcmtHubPurchasingGroup,
ProcmtHubPlant,
ProcmtHubCompanyCode AS CompanyCodeName,
ProcmtHubCompanyCode,
_RelevantDates.CalendarYear AS CalendarYear,
_RelevantDates.CalendarQuarter AS CalendarQuarter,
_RelevantDates.CalendarMonth AS CalendarMonth,
_RelevantDates.CalendarWeek AS CalendarWeek,
_HubPurchasingGroup.ProcmtHubPurchasingGroupName AS ProcmtHubPurchasingGroupName,
_HubPlant.ProcmtHubPlantName AS ProcmtHubPlantName,
_HubCompanyCode.ProcmtHubCompanyCodeName AS ProcmtHubCompanyCodeName,
_HubPurchasingOrg.ProcmtHubPurgOrgName AS ProcmtHubPurgOrgName,
ValidityStartDate,
ValidityEndDate,
DisplayCurrency,
TargetQuantity,
TargetAmount,
ReleaseOrderItemNetAmount,
ReleaseOrderItemOrderQuantity,
ProcurementHubSourceSystem,
CentrlContractItems.PurgDocChangeRequestStatus AS PurgDocChangeRequestStatus
FROM P_CntrlPurContractItems
LEFT OUTER JOIN I_CalendarDate AS _RelevantDates ON CentrlContractItems.ValidityStartDate = _RelevantDates.CalendarDate association[1..1] to I_ProcmtHubPurgOrgAPI01 as _HubPurchasingOrg on ProcurementHubSourceSystem = _HubPurchasingOrg.ProcurementHubSourceSystem AND ProcmtHubPurchasingOrg = _HubPurchasingOrg.ProcmtHubPurchasingOrg association[1..1] to I_ProcmtHubPurgGroupAPI01 as _HubPurchasingGroup on ProcurementHubSourceSystem = _HubPurchasingGroup.ProcurementHubSourceSystem AND ProcmtHubPurchasingGroup = _HubPurchasingGroup.ProcmtHubPurchasingGroup -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier association[1..1] to I_ProcmtHubPlant as _HubPlant on ProcmtHubPlant = _HubPlant.ProcmtHubPlant AND ProcmtHubCompanyCode = _HubPlant.ProcmtHubCompanyCode AND ProcurementHubSourceSystem = _HubPlant.ProcurementHubSourceSystem association[1..1] to I_ProcmtHubPlant as _HubPlant_2 on ProcmtHubPlant = _HubPlant_2.ProcmtHubPlant AND CompanyCodeName = _HubPlant_2.ProcmtHubCompanyCode AND ProcurementHubSourceSystem = _HubPlant_2.ProcurementHubSourceSystem association[1..1] to I_ProcmtHubCompanyCode as _HubCompanyCode on CompanyCodeName = _HubCompanyCode.ProcmtHubCompanyCode AND ProcurementHubSourceSystem = _HubCompanyCode.ProcurementHubSourceSystem association[1..1] to I_ProductGroup_2 as _ProductGroup on MaterialGroup = _ProductGroup.ProductGroup association[1..1] to I_Product as _Product on Material = _Product.Product association[1..1] to I_Plant as _Plant on Plant = _Plant.Plant association[1..1] to I_PurchasingOrganization as _PurchasingOrganization on PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization association[1..1] to I_PurchasingGroup as _PurchasingGroup on PurchasingGroup = _PurchasingGroup.PurchasingGroup association[1..1] to I_CompanyCode as _CompanyCode on CompanyCode = _CompanyCode.CompanyCode association[1..1] to I_ProcmtHubBackendSourceSystem as _BackendSourceSystem on ProcurementHubSourceSystem = _BackendSourceSystem.ProcurementHubSourceSystem -- association [1..1]
LEFT OUTER JOIN I_CntrlPurContrChgReqStatus AS _VersionType ON PurgDocChangeRequestStatus = _VersionType.PurgDocChangeRequestStatus -- 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