C_CntrlPurContrHdrDistrTP

DDL: C_CNTRLPURCONTRHDRDISTRTP SQL: CCNTRLPCHDRDISTR Type: view CONSUMPTION

Header Distribution in Cntrl Pur Contr

C_CntrlPurContrHdrDistrTP is a Consumption CDS View that provides data about "Header Distribution in Cntrl Pur Contr" in SAP S/4HANA. It reads from 1 data source (I_CntrlPurContrHdrDistrTP) and exposes 43 fields with key fields CentralPurchaseContract, DistributionKey. It has 10 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CntrlPurContrHdrDistrTP I_CntrlPurContrHdrDistrTP from

Associations (10)

CardinalityTargetAliasCondition
[1..1] C_CentralPurchaseContractTP _CentralPurchaseContractTP _CentralPurchaseContractTP.CentralPurchaseContract = $projection.CentralPurchaseContract
[1..1] C_ProcmtHubPlantVH _ProcmtHubPlantVH _ProcmtHubPlantVH.ProcmtHubPlant = $projection.Plant and _ProcmtHubPlantVH.ProcurementHubSourceSystem = $projection.ProcurementHubSourceSystem and _ProcmtHubPlantVH.ProcmtHubCompanyCode = $projection.CompanyCode
[1..1] C_ProcmtHubStorageLocationVH _ProcmtHubSLocVH _ProcmtHubSLocVH.Plant = $projection.Plant and _ProcmtHubSLocVH.StorageLocation = $projection.StorageLocation and _ProcmtHubSLocVH.ProcurementHubSourceSystem = $projection.ProcurementHubSourceSystem
[1..1] C_ProcmtHubCntrlContrPurgGrpVH _ProcmtHubPurgGrpVH _ProcmtHubPurgGrpVH.PurchasingGroup = $projection.PurchasingGroup and _ProcmtHubPurgGrpVH.ProcurementHubSourceSystem = $projection.ProcurementHubSourceSystem
[1..1] C_ProcmtHubPurgOrgVH _ProcmtHubPurgOrgVH _ProcmtHubPurgOrgVH.ProcmtHubPurchasingOrg = $projection.PurchasingOrganization and _ProcmtHubPurgOrgVH.ProcurementHubSourceSystem = $projection.ProcurementHubSourceSystem
[0..*] I_PaymentTermsText _PaymentTermsText $projection.PaymentTerms = _PaymentTermsText.PaymentTerms
[0..*] C_CntrlPurContrHdrPartnerTP _CntrlPurContrHdrPartnerTP $projection.CentralPurchaseContract = _CntrlPurContrHdrPartnerTP.CentralPurchaseContract and $projection.DistributionKey = _CntrlPurContrHdrPartnerTP.DistributionKey
[0..1] C_CntrlPurContrHdrDistrAddrTP _CntrlPurContrHdrDistrAddrTP $projection.CentralPurchaseContract = _CntrlPurContrHdrDistrAddrTP.CentralPurchaseContract and $projection.DistributionKey = _CntrlPurContrHdrDistrAddrTP.DistributionKey
[1..1] C_ProcmtHubSchedgAgrmtTypeVH _ProcmtHubSchedgAgrmtTypeVH _ProcmtHubSchedgAgrmtTypeVH.PurchasingDocumentType = $projection.PurchasingDocumentType and _ProcmtHubSchedgAgrmtTypeVH.ProcurementHubSourceSystem = $projection.ProcurementHubSourceSystem
[1..1] R_CentralPurchaseContract _CentralPurchaseContract $projection.CentralPurchaseContract = _CentralPurchaseContract.CentralPurchaseContract

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CCNTRLPCHDRDISTR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Header Distribution in Cntrl Pur Contr view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.createEnabled true view
ObjectModel.deleteEnabled false view
ObjectModel.updateEnabled true view
ObjectModel.transactionalProcessingDelegated true view

Fields (43)

KeyFieldSource TableSource FieldDescription
KEY CentralPurchaseContract CentralPurchaseContract Purchasing Doc.
KEY DistributionKey DistributionKey Distr. Number
CentralPurchaseContractItem CentralPurchaseContractItem Item in Central Purchase Contract
ActivePurchasingDocument _CentralPurchaseContract ActivePurchasingDocument Active Purchase Doc
PurchasingDocumentName _CentralPurchaseContract PurchasingDocumentName Purch. Doc. Name
PurgDocChangeRequestStatus _CentralPurchaseContract PurgDocChangeRequestStatus Change Request Stat.
PurchasingDocumentCategory PurchasingDocumentCategory Doc. Category
PurchasingDocumentType PurchasingDocumentType RFQ Type
PurchasingInfoRecordUpdateCode PurchasingInfoRecordUpdateCode InfoUpdate
PurchasingOrganization PurchasingOrganization Purchasing Organization
CompanyCode CompanyCode Receiver Company Code
Plant Plant Valuation Area
StorageLocation StorageLocation StorageLocation
DocumentCurrency DocumentCurrency Document Currency
Currency Currency Connected System Currency
PurchasingGroup PurchasingGroup Purchasing Group
SourceListIsUpdated SourceListIsUpdated Update Source List
SourceListRestriction SourceListRestriction Source List Restriction
LogicalSystem LogicalSystem Logical System
PaymentTerms PaymentTerms Pyt Terms
CashDiscount1Days CashDiscount1Days First Payment in Days
CashDiscount2Days CashDiscount2Days Second Payment in Days
NetPaymentDays NetPaymentDays Cash Discount Days
CashDiscount1Percent CashDiscount1Percent Discount for First Payment in %
CashDiscount2Percent CashDiscount2Percent Discount for Second Payment in %
ShippingInstruction ShippingInstruction Shipping Instr.
IncotermsClassification IncotermsClassification Incoterms
IncotermsLocation1 IncotermsLocation1 Inco. Location1
CntrlPurContrDistributionPct CntrlPurContrDistributionPct
TargetAmount TargetAmount Target Value
TextIsDeleted TRUE
ProcurementHubSourceSystem ProcurementHubSourceSystem Connected System ID
ProcmtHubLogicalSystem ProcurementHubSourceSystem Connected System ID
_CentralPurchaseContractTP _CentralPurchaseContractTP
_CntrlPurContrHdrPartnerTP _CntrlPurContrHdrPartnerTP
_CntrlPurContrHdrDistrAddrTP _CntrlPurContrHdrDistrAddrTP
_ProcmtHubPurgOrgVH _ProcmtHubPurgOrgVH
_ProcmtHubPlantVH _ProcmtHubPlantVH
_ProcmtHubSLocVH _ProcmtHubSLocVH
_ProcmtHubPurgGrpVH _ProcmtHubPurgGrpVH
_PaymentTermsText _PaymentTermsText
_ProcmtHubSchedgAgrmtTypeVH _ProcmtHubSchedgAgrmtTypeVH
_CentralPurchaseContract _CentralPurchaseContract

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_CntrlPurContrHdrDistrTP.
-- 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: CCNTRLPCHDRDISTR

CREATE VIEW C_CntrlPurContrHdrDistrTP AS
SELECT
  CentralPurchaseContract,
  DistributionKey,
  CentralPurchaseContractItem,
  _CentralPurchaseContract.ActivePurchasingDocument AS ActivePurchasingDocument,
  _CentralPurchaseContract.PurchasingDocumentName AS PurchasingDocumentName,
  _CentralPurchaseContract.PurgDocChangeRequestStatus AS PurgDocChangeRequestStatus,
  PurchasingDocumentCategory,
  PurchasingDocumentType,
  PurchasingInfoRecordUpdateCode,
  PurchasingOrganization,
  CompanyCode,
  Plant,
  StorageLocation,
  DocumentCurrency,
  Currency,
  PurchasingGroup,
  SourceListIsUpdated,
  SourceListRestriction,
  LogicalSystem,
  PaymentTerms,
  CashDiscount1Days,
  CashDiscount2Days,
  NetPaymentDays,
  CashDiscount1Percent,
  CashDiscount2Percent,
  ShippingInstruction,
  IncotermsClassification,
  IncotermsLocation1,
  CntrlPurContrDistributionPct,
  TargetAmount,
  cast(IsDeleted as boolean) AS TextIsDeleted,
  ProcurementHubSourceSystem,
  ProcurementHubSourceSystem AS ProcmtHubLogicalSystem
FROM I_CntrlPurContrHdrDistrTP
LEFT OUTER JOIN C_CentralPurchaseContractTP AS _CentralPurchaseContractTP ON _CentralPurchaseContractTP.CentralPurchaseContract = CentralPurchaseContract  -- association [1..1]
LEFT OUTER JOIN C_ProcmtHubPlantVH AS _ProcmtHubPlantVH ON _ProcmtHubPlantVH.ProcmtHubPlant = Plant AND _ProcmtHubPlantVH.ProcurementHubSourceSystem = ProcurementHubSourceSystem AND _ProcmtHubPlantVH.ProcmtHubCompanyCode = CompanyCode  -- association [1..1]
LEFT OUTER JOIN C_ProcmtHubStorageLocationVH AS _ProcmtHubSLocVH ON _ProcmtHubSLocVH.Plant = Plant AND _ProcmtHubSLocVH.StorageLocation = StorageLocation AND _ProcmtHubSLocVH.ProcurementHubSourceSystem = ProcurementHubSourceSystem  -- association [1..1]
LEFT OUTER JOIN C_ProcmtHubCntrlContrPurgGrpVH AS _ProcmtHubPurgGrpVH ON _ProcmtHubPurgGrpVH.PurchasingGroup = PurchasingGroup AND _ProcmtHubPurgGrpVH.ProcurementHubSourceSystem = ProcurementHubSourceSystem  -- association [1..1]
LEFT OUTER JOIN C_ProcmtHubPurgOrgVH AS _ProcmtHubPurgOrgVH ON _ProcmtHubPurgOrgVH.ProcmtHubPurchasingOrg = PurchasingOrganization AND _ProcmtHubPurgOrgVH.ProcurementHubSourceSystem = ProcurementHubSourceSystem  -- association [1..1]
LEFT OUTER JOIN I_PaymentTermsText AS _PaymentTermsText ON PaymentTerms = _PaymentTermsText.PaymentTerms  -- association [0..*]
LEFT OUTER JOIN C_CntrlPurContrHdrPartnerTP AS _CntrlPurContrHdrPartnerTP ON CentralPurchaseContract = _CntrlPurContrHdrPartnerTP.CentralPurchaseContract AND DistributionKey = _CntrlPurContrHdrPartnerTP.DistributionKey  -- association [0..*]
LEFT OUTER JOIN C_CntrlPurContrHdrDistrAddrTP AS _CntrlPurContrHdrDistrAddrTP ON CentralPurchaseContract = _CntrlPurContrHdrDistrAddrTP.CentralPurchaseContract AND DistributionKey = _CntrlPurContrHdrDistrAddrTP.DistributionKey  -- association [0..1]
LEFT OUTER JOIN C_ProcmtHubSchedgAgrmtTypeVH AS _ProcmtHubSchedgAgrmtTypeVH ON _ProcmtHubSchedgAgrmtTypeVH.PurchasingDocumentType = PurchasingDocumentType AND _ProcmtHubSchedgAgrmtTypeVH.ProcurementHubSourceSystem = ProcurementHubSourceSystem  -- association [1..1]
LEFT OUTER JOIN R_CentralPurchaseContract AS _CentralPurchaseContract ON CentralPurchaseContract = _CentralPurchaseContract.CentralPurchaseContract  -- association [1..1]
;