C_CntrlContractCnsmpn

DDL: C_CNTRLCONTRACTCNSMPN SQL: CNTRLCONTRCNSMPN Type: view CONSUMPTION

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

StateC1
Line of BusinessSourcing & Procurement
Application ComponentMM-PUR-ANA
CapabilitiesData Provider for Analytical Queries
PackageSourcing & Procurement for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
P_CntrlPurContractItems P_CntrlPurContractItems from

Parameters (3)

NameTypeDefault
P_DisplayCurrency displaycurrency
P_StartDate vdm_validitystart
P_EndDate vdm_validitystart

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;