C_CntrlPurContrItmDistr

DDL: C_CNTRLPURCONTRITMDISTR SQL: CCNTRLPCITMDIS Type: view CONSUMPTION

Central Contract Item Distribution View

C_CntrlPurContrItmDistr is a Consumption CDS View that provides data about "Central Contract Item Distribution View" in SAP S/4HANA. It reads from 1 data source (I_CntrlPurContrDistribution) and exposes 63 fields with key fields CentralPurchaseContract, CentralPurchaseContractItem, DistributionKey. It has 12 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CntrlPurContrDistribution I_CntrlPurContrDistribution from

Associations (12)

CardinalityTargetAliasCondition
[0..1] I_PurgDocumentCategoryText _PurgDocumentCatText $projection.ProcmtHubPurgDocItmCategory = _PurgDocumentCatText.PurchasingDocumentCategory and _PurgDocumentCatText.Language = $session.system_language
[0..1] C_ProcmtHubSchedgAgrmtTypeVH _ProcmtHubSchedgAgrmtTypeVH _ProcmtHubSchedgAgrmtTypeVH.PurchasingDocumentType = $projection.PurgDocumentDistributionType and _ProcmtHubSchedgAgrmtTypeVH.LogicalSystem = $projection.LogicalSystem
[0..1] I_CntrlPurContrDistrTypeText _CntrlPurContrDistrTypeVH _CntrlPurContrDistrTypeVH.DistributionType = $projection.DistributionType and _CntrlPurContrDistrTypeVH.Language = $session.system_language
[0..1] C_ProcmtHubCompanyCodeVH _ProcmtHubCompanyCodeVH _ProcmtHubCompanyCodeVH.ProcmtHubCompanyCode = $projection.ProcmtHubCompanyCode and _ProcmtHubCompanyCodeVH.ProcurementHubSourceSystem = $projection.ProcurementHubSourceSystem
[0..1] C_ProcmtHubPlantVH _ProcmtHubPlantVH _ProcmtHubPlantVH.ProcmtHubPlant = $projection.Plant and _ProcmtHubPlantVH.ProcmtHubCompanyCode = $projection.ProcmtHubCompanyCode and _ProcmtHubPlantVH.ProcurementHubSourceSystem = $projection.ProcurementHubSourceSystem
[0..1] C_ProcmtHubPurgOrgVH _ProcmtHubPurgOrgVH _ProcmtHubPurgOrgVH.ProcmtHubPurchasingOrg = $projection.ProcmtHubPurchasingOrg and _ProcmtHubPurgOrgVH.ProcurementHubSourceSystem = $projection.ProcurementHubSourceSystem
[0..1] C_PurchasingGroupValueHelp _PurchasingGroupValueHelp _PurchasingGroupValueHelp.PurchasingGroup = $projection.ProcmtHubPurchasingGroup
[0..1] C_ProcmtHubStorageLocationVH _ProcmtHubStorageLocationVH _ProcmtHubStorageLocationVH.StorageLocation = $projection.StorageLocation and _ProcmtHubStorageLocationVH.Plant = $projection.Plant and _ProcmtHubStorageLocationVH.ProcurementHubSourceSystem = $projection.ProcurementHubSourceSystem
[1..1] C_CentralPurchaseContractTP _CentralPurchaseContractTP $projection.CentralPurchaseContract = _CentralPurchaseContractTP.CentralPurchaseContract
[1..1] I_PurgInfoRecordUpdateCode _PurgInfoRecordUpdateCode $projection.PurchasingInfoRecordUpdateCode = _PurgInfoRecordUpdateCode.PurchasingInfoRecordUpdateCode
[0..1] P_SGBT_NTE_CDS_APITP _PurchaseNote $projection.CentralPurchaseContract = _PurchaseNote.ObjectID and _PurchaseNote.ObjectNodeType = 'CentralPurchaseContract' and _PurchaseNote.NoteType = 'CH16' and _PurchaseNote.LanguageCode = $session.system_language --Extension
[1..1] E_CntrlPurContrDistribution _CntrlPurContrItmDistExtension _CntrlPurContrItmDistExtension.PurchasingDocument = $projection.CentralPurchaseContract and _CntrlPurContrItmDistExtension.PurchasingDocumentItem = $projection.CentralPurchaseContractItem and _CntrlPurContrItmDistExtension.DistributionKey = $projection.DistributionKey

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CCNTRLPCITMDIS view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Central Contract Item Distribution View view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.lifecycle.contract.type #NONE view
ObjectModel.updateEnabled true view
ObjectModel.createEnabled true view

Fields (63)

KeyFieldSource TableSource FieldDescription
KEY CentralPurchaseContract CentralPurchaseContract Central Contract
KEY CentralPurchaseContractItem CentralPurchaseContractItem Item in Central Purchase Contract
KEY DistributionKey DistributionKey Distribution Number
ActivePurchasingDocument _CentralPurchaseContract ActivePurchasingDocument Central Contract
FormattedPurchaseContractItem Central Contract Item
ProcmtHubPurgDocItmCategory PurchasingDocumentCategory Document Category
DistributionType DistributionType Distribution Type
CntrlPurContrDistributionPct CntrlPurContrDistributionPct
CntrlPurContrItmDistrPct CntrlPurContrDistributionPct
CntrlPurContrGRConsumptionPct
TargetQuantity TargetQuantity Target Quantity
ProcmtHubCompanyCode CompanyCode Receiver Company Code
Plant Plant Valuation Area
PurgDocumentDistributionType PurchasingDocumentType Outline Agreement Type
ProcmtHubPurchasingOrg PurchasingOrganization Purchasing Organization
ProcmtHubPurchasingGroup PurchasingGroup Purchasing Group
StorageLocation StorageLocation StorageLocation
PaymentTerms PaymentTerms Payment Terms
PurchasingInfoRecordUpdateCode PurchasingInfoRecordUpdateCode Info Record Update
CntrlPurContrItmDistrIsBlocked CntrlPurContrItmDistrIsBlocked
ReferenceHeaderDistributionKey ReferenceHeaderDistributionKey
CntrlPurContrDistributionLevel Distribution Level
PurchaseOrderQuantityUnit OrderQuantityUnit Sales Unit
LogicalSystem LogicalSystem Logical System
IncotermsClassification IncotermsClassification Incoterms Classification
IncotermsLocation1 IncotermsLocation1 Incoterms Location 1
PurchasingDocumentCategoryName _PurgDocumentCatText PurchasingDocumentCategoryName Short Description
Language _PurgDocumentCatText Language Report Text Language
PurgDocDistributionTypeDesc _CntrlPurContrDistrTypeVH PurgDocDistributionTypeDesc
ProcurementHubSourceSystem ProcurementHubSourceSystem Connected System ID
CompanyCodeName _ProcmtHubCompanyCodeVH ProcmtHubCompanyCodeName
PurOrdItemPlantName _ProcmtHubPlantVH ProcmtHubPlantName Plant Name
MKT_AgreementTypeName _ProcmtHubSchedgAgrmtTypeVH PurchasingDocumentTypeName Description
ComparisonPurchasingOrgName _ProcmtHubPurgOrgVH ProcmtHubPurgOrgName
ComparisonPurchasingGroupName _PurchasingGroupValueHelp PurchasingGroupName Purchasing Grp. Name
StorageLocationName _ProcmtHubStorageLocationVH StorageLocationName Storage Loc. Name
SourceListIsUpdated SourceListIsUpdated Sourcelist Updated
TargetAmount TargetAmount Target Value
Currency Currency Valuation Crcy
Supplier _CentralPurchaseContract Supplier Supplier
PurchasingOrganization _CentralPurchaseContract PurchasingOrganization Purchasing Organization
PurchasingGroup _CentralPurchaseContract PurchasingGroup Purchasing Group
CompanyCode _CentralPurchaseContract CompanyCode Receiver Company Code
CntrlPurContrOvrlDistrStsTxt _CentralPurchaseContractTP PurchasingProcessingStatus Proc. State
PurchasingProcessingStatus _CentralPurchaseContractTP CntrlPurContrOvrlDistrStsTxt Distribution Status
PurchasingDocumentStatus _CentralPurchaseContractTP PurchasingProcessingStatus Status
ValidityEndDate _CentralPurchaseContract ValidityEndDate ValidTo
ValidityStartDate _CentralPurchaseContract ValidityStartDate Validity Start Date
PurchaseContractType _CentralPurchaseContract PurchaseContractType Order Type
Material _CntrlPurchaseContractItem PurchasingCentralMaterial Material
MaterialGroup _CntrlPurchaseContractItem MaterialGroup Product Group
ProductType _CntrlPurchaseContractItem ProductType Product Type Group
ProductTypeCode _CntrlPurchaseContractItem ProductTypeCode Product Type Group
InternalComment
PurchasingDocInclusionList
PurchasingDocExclusionList
PurOrdItemsAreSelected
ContrItmDistrIsCreated Is New
TextIsDeleted Deletion Indicator
PurchasingDocVersionReasonCode Reason for Change
PurgDocNoteText _PurchaseNote Content Purchaser Note
_CentralPurchaseContract _CentralPurchaseContract
_PurgInfoRecordUpdateCode _PurgInfoRecordUpdateCode

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_CntrlPurContrItmDistr.
-- 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: CCNTRLPCITMDIS

CREATE VIEW C_CntrlPurContrItmDistr AS
SELECT
  CentralPurchaseContract,
  CentralPurchaseContractItem,
  DistributionKey,
  _CentralPurchaseContract.ActivePurchasingDocument AS ActivePurchasingDocument,
  cast (concat(concat(_CentralPurchaseContract.ActivePurchasingDocument, '/'), CentralPurchaseContractItem) as formattedcontractitem) AS FormattedPurchaseContractItem,
  PurchasingDocumentCategory AS ProcmtHubPurgDocItmCategory,
  DistributionType,
  CntrlPurContrDistributionPct,
  CntrlPurContrDistributionPct AS CntrlPurContrItmDistrPct,
  '0.000' AS CntrlPurContrGRConsumptionPct,
  TargetQuantity,
  CompanyCode AS ProcmtHubCompanyCode,
  Plant,
  PurchasingDocumentType AS PurgDocumentDistributionType,
  PurchasingOrganization AS ProcmtHubPurchasingOrg,
  PurchasingGroup AS ProcmtHubPurchasingGroup,
  StorageLocation,
  PaymentTerms,
  PurchasingInfoRecordUpdateCode,
  CntrlPurContrItmDistrIsBlocked,
  ReferenceHeaderDistributionKey,
  cast ( '' as abap.char(10) ) AS CntrlPurContrDistributionLevel,
  OrderQuantityUnit AS PurchaseOrderQuantityUnit,
  LogicalSystem,
  IncotermsClassification,
  IncotermsLocation1,
  _PurgDocumentCatText.PurchasingDocumentCategoryName AS PurchasingDocumentCategoryName,
  _PurgDocumentCatText.Language AS Language,
  _CntrlPurContrDistrTypeVH.PurgDocDistributionTypeDesc AS PurgDocDistributionTypeDesc,
  ProcurementHubSourceSystem,
  _ProcmtHubCompanyCodeVH.ProcmtHubCompanyCodeName AS CompanyCodeName,
  _ProcmtHubPlantVH.ProcmtHubPlantName AS PurOrdItemPlantName,
  _ProcmtHubSchedgAgrmtTypeVH.PurchasingDocumentTypeName AS MKT_AgreementTypeName,
  _ProcmtHubPurgOrgVH.ProcmtHubPurgOrgName AS ComparisonPurchasingOrgName,
  _PurchasingGroupValueHelp.PurchasingGroupName AS ComparisonPurchasingGroupName,
  _ProcmtHubStorageLocationVH.StorageLocationName AS StorageLocationName,
  SourceListIsUpdated,
  TargetAmount,
  Currency,
  _CentralPurchaseContract.Supplier AS Supplier,
  _CentralPurchaseContract.PurchasingOrganization AS PurchasingOrganization,
  _CentralPurchaseContract.PurchasingGroup AS PurchasingGroup,
  _CentralPurchaseContract.CompanyCode AS CompanyCode,
  _CentralPurchaseContractTP.PurchasingProcessingStatus AS CntrlPurContrOvrlDistrStsTxt,
  _CentralPurchaseContractTP.CntrlPurContrOvrlDistrStsTxt AS PurchasingProcessingStatus,
  _CentralPurchaseContractTP.PurchasingProcessingStatus AS PurchasingDocumentStatus,
  _CentralPurchaseContract.ValidityEndDate AS ValidityEndDate,
  _CentralPurchaseContract.ValidityStartDate AS ValidityStartDate,
  _CentralPurchaseContract.PurchaseContractType AS PurchaseContractType,
  _CntrlPurchaseContractItem.PurchasingCentralMaterial AS Material,
  _CntrlPurchaseContractItem.MaterialGroup AS MaterialGroup,
  _CntrlPurchaseContractItem.ProductType AS ProductType,
  _CntrlPurchaseContractItem.ProductTypeCode AS ProductTypeCode,
  cast ('' as abap.char( 120 )) AS InternalComment,
  cast ('' as abap.sstring( 1332 )) AS PurchasingDocInclusionList,
  cast ('' as abap.sstring( 1332 )) AS PurchasingDocExclusionList,
  cast ('' as abap.char( 1 )) AS PurOrdItemsAreSelected,
  cast ('' as xfeld) AS ContrItmDistrIsCreated,
  cast(IsDeleted as boolean) AS TextIsDeleted,
  cast( ' ' as rscod ) AS PurchasingDocVersionReasonCode,
  _PurchaseNote.Content AS PurgDocNoteText
FROM I_CntrlPurContrDistribution
LEFT OUTER JOIN I_PurgDocumentCategoryText AS _PurgDocumentCatText ON ProcmtHubPurgDocItmCategory = _PurgDocumentCatText.PurchasingDocumentCategory AND _PurgDocumentCatText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN C_ProcmtHubSchedgAgrmtTypeVH AS _ProcmtHubSchedgAgrmtTypeVH ON _ProcmtHubSchedgAgrmtTypeVH.PurchasingDocumentType = PurgDocumentDistributionType AND _ProcmtHubSchedgAgrmtTypeVH.LogicalSystem = LogicalSystem  -- association [0..1]
LEFT OUTER JOIN I_CntrlPurContrDistrTypeText AS _CntrlPurContrDistrTypeVH ON _CntrlPurContrDistrTypeVH.DistributionType = DistributionType AND _CntrlPurContrDistrTypeVH.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN C_ProcmtHubCompanyCodeVH AS _ProcmtHubCompanyCodeVH ON _ProcmtHubCompanyCodeVH.ProcmtHubCompanyCode = ProcmtHubCompanyCode AND _ProcmtHubCompanyCodeVH.ProcurementHubSourceSystem = ProcurementHubSourceSystem  -- association [0..1]
LEFT OUTER JOIN C_ProcmtHubPlantVH AS _ProcmtHubPlantVH ON _ProcmtHubPlantVH.ProcmtHubPlant = Plant AND _ProcmtHubPlantVH.ProcmtHubCompanyCode = ProcmtHubCompanyCode AND _ProcmtHubPlantVH.ProcurementHubSourceSystem = ProcurementHubSourceSystem  -- association [0..1]
LEFT OUTER JOIN C_ProcmtHubPurgOrgVH AS _ProcmtHubPurgOrgVH ON _ProcmtHubPurgOrgVH.ProcmtHubPurchasingOrg = ProcmtHubPurchasingOrg AND _ProcmtHubPurgOrgVH.ProcurementHubSourceSystem = ProcurementHubSourceSystem  -- association [0..1]
LEFT OUTER JOIN C_PurchasingGroupValueHelp AS _PurchasingGroupValueHelp ON _PurchasingGroupValueHelp.PurchasingGroup = ProcmtHubPurchasingGroup  -- association [0..1]
LEFT OUTER JOIN C_ProcmtHubStorageLocationVH AS _ProcmtHubStorageLocationVH ON _ProcmtHubStorageLocationVH.StorageLocation = StorageLocation AND _ProcmtHubStorageLocationVH.Plant = Plant AND _ProcmtHubStorageLocationVH.ProcurementHubSourceSystem = ProcurementHubSourceSystem  -- association [0..1]
LEFT OUTER JOIN C_CentralPurchaseContractTP AS _CentralPurchaseContractTP ON CentralPurchaseContract = _CentralPurchaseContractTP.CentralPurchaseContract  -- association [1..1]
LEFT OUTER JOIN I_PurgInfoRecordUpdateCode AS _PurgInfoRecordUpdateCode ON PurchasingInfoRecordUpdateCode = _PurgInfoRecordUpdateCode.PurchasingInfoRecordUpdateCode  -- association [1..1]
LEFT OUTER JOIN P_SGBT_NTE_CDS_APITP AS _PurchaseNote ON CentralPurchaseContract = _PurchaseNote.ObjectID AND _PurchaseNote.ObjectNodeType = 'CentralPurchaseContract' AND _PurchaseNote.NoteType = 'CH16' AND _PurchaseNote.LanguageCode = $session.system_language  -- association [0..1]
LEFT OUTER JOIN E_CntrlPurContrDistribution AS _CntrlPurContrItmDistExtension ON _CntrlPurContrItmDistExtension.PurchasingDocument = CentralPurchaseContract AND _CntrlPurContrItmDistExtension.PurchasingDocumentItem = CentralPurchaseContractItem AND _CntrlPurContrItmDistExtension.DistributionKey = DistributionKey  -- association [1..1]
;