C_CntrlPurContrHierDistrOvwTP

DDL: C_CNTRLPURCONTRHIERDISTROVWTP SQL: CPCHIERDISTROVW Type: view CONSUMPTION Package: ODATA_MM_CCTR_MAINTAIN

Consumption View for CCTR Hierarchy Distribution Overview

C_CntrlPurContrHierDistrOvwTP is a Consumption CDS View that provides data about "Consumption View for CCTR Hierarchy Distribution Overview" in SAP S/4HANA. It reads from 1 data source (I_CntrlPurContrHierDistrOvwTP) and exposes 18 fields with key fields CentralPurchaseContract, ProcmtHubCompanyCodeGroupingID, PurchasingDocumentCategory, PurchasingDocumentType, CompanyCode. It has 8 associations to related views. Part of development package ODATA_MM_CCTR_MAINTAIN.

Data Sources (1)

SourceAliasJoin Type
I_CntrlPurContrHierDistrOvwTP I_CntrlPurContrHierDistrOvwTP from

Associations (8)

CardinalityTargetAliasCondition
[1..1] C_CntrlPurContrHierHdrTP _CentralPurchaseContractTP _CentralPurchaseContractTP.CentralPurchaseContract = $projection.CentralPurchaseContract
[0..1] C_PurgDocCatForOutlineAgrmtVH _PurgDocCatForOutlineAgrmtVH _PurgDocCatForOutlineAgrmtVH.PurchasingDocumentCategory = $projection.PurchasingDocumentCategory
[1..1] C_ProcmtHubPurgOrgVH _ProcmtHubPurgOrgVH _ProcmtHubPurgOrgVH.ProcmtHubPurchasingOrg = $projection.PurchasingOrganization and _ProcmtHubPurgOrgVH.ProcurementHubSourceSystem = $projection.ProcurementHubSourceSystem
[0..1] C_ProcmtHubCompanyCodeVH _ProcmtHubCompanyCodeVH $projection.CompanyCode = _ProcmtHubCompanyCodeVH.ProcmtHubCompanyCode and $projection.ProcurementHubSourceSystem = _ProcmtHubCompanyCodeVH.ProcurementHubSourceSystem
[1..1] C_ProcmtHubCntrlContrPurgGrpVH _ProcmtHubPurgGrpVH _ProcmtHubPurgGrpVH.PurchasingGroup = $projection.PurchasingGroup and _ProcmtHubPurgGrpVH.ProcurementHubSourceSystem = $projection.ProcurementHubSourceSystem
[1..1] C_ProcmtHubBackendSrceSystemVH _ProcmtHubBackendSrceSystemVH $projection.ProcurementHubSourceSystem = _ProcmtHubBackendSrceSystemVH.ProcurementHubSourceSystem
[0..1] I_PurchasingDocumentTypeText _DocumentTypeText _DocumentTypeText.PurchasingDocumentCategory = $projection.PurchasingDocumentCategory and _DocumentTypeText.PurchasingDocumentType = $projection.PurchasingDocumentType and _DocumentTypeText.Language = $session.system_language
[0..1] I_PaymentTermsText _PaymentTermsText _PaymentTermsText.PaymentTerms = $projection.PaymentTerms and _PaymentTermsText.Language = $session.system_language

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName CPCHIERDISTROVW view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.transactionalProcessingDelegated true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Consumption View for CCTR Hierarchy Distribution Overview view
UI.headerInfo.typeName Distribution Overview view
UI.headerInfo.typeNamePlural Distribution Overview view
UI.headerInfo.description.value CentralPurchaseContract view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY CentralPurchaseContract CentralPurchaseContract Purchasing Doc.
KEY ProcmtHubCompanyCodeGroupingID ProcmtHubCompanyCodeGroupingID Company Code Grouping ID
KEY PurchasingDocumentCategory PurchasingDocumentCategory Doc. Category
KEY PurchasingDocumentType PurchasingDocumentType RFQ Type
KEY CompanyCode CompanyCode Receiver Company Code
KEY PurchasingOrganization PurchasingOrganization Purchasing Organization
KEY PurchasingGroup PurchasingGroup Purchasing Group
KEY DocumentCurrency DocumentCurrency Document Currency
KEY PaymentTerms PaymentTerms Pyt Terms
KEY ProcurementHubSourceSystem ProcurementHubSourceSystem Connected System ID
_CentralPurchaseContractTP _CentralPurchaseContractTP
_PurgDocCatForOutlineAgrmtVH _PurgDocCatForOutlineAgrmtVH
_ProcmtHubPurgOrgVH _ProcmtHubPurgOrgVH
_ProcmtHubCompanyCodeVH _ProcmtHubCompanyCodeVH
_ProcmtHubPurgGrpVH _ProcmtHubPurgGrpVH
_ProcmtHubBackendSrceSystemVH _ProcmtHubBackendSrceSystemVH
_DocumentTypeText _DocumentTypeText
_PaymentTermsText _PaymentTermsText

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_CntrlPurContrHierDistrOvwTP.
-- 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: CPCHIERDISTROVW

CREATE VIEW C_CntrlPurContrHierDistrOvwTP AS
SELECT
  CentralPurchaseContract,
  ProcmtHubCompanyCodeGroupingID,
  PurchasingDocumentCategory,
  PurchasingDocumentType,
  CompanyCode,
  PurchasingOrganization,
  PurchasingGroup,
  DocumentCurrency,
  PaymentTerms,
  ProcurementHubSourceSystem
FROM I_CntrlPurContrHierDistrOvwTP
LEFT OUTER JOIN C_CntrlPurContrHierHdrTP AS _CentralPurchaseContractTP ON _CentralPurchaseContractTP.CentralPurchaseContract = CentralPurchaseContract  -- association [1..1]
LEFT OUTER JOIN C_PurgDocCatForOutlineAgrmtVH AS _PurgDocCatForOutlineAgrmtVH ON _PurgDocCatForOutlineAgrmtVH.PurchasingDocumentCategory = PurchasingDocumentCategory  -- association [0..1]
LEFT OUTER JOIN C_ProcmtHubPurgOrgVH AS _ProcmtHubPurgOrgVH ON _ProcmtHubPurgOrgVH.ProcmtHubPurchasingOrg = PurchasingOrganization AND _ProcmtHubPurgOrgVH.ProcurementHubSourceSystem = ProcurementHubSourceSystem  -- association [1..1]
LEFT OUTER JOIN C_ProcmtHubCompanyCodeVH AS _ProcmtHubCompanyCodeVH ON CompanyCode = _ProcmtHubCompanyCodeVH.ProcmtHubCompanyCode AND ProcurementHubSourceSystem = _ProcmtHubCompanyCodeVH.ProcurementHubSourceSystem  -- association [0..1]
LEFT OUTER JOIN C_ProcmtHubCntrlContrPurgGrpVH AS _ProcmtHubPurgGrpVH ON _ProcmtHubPurgGrpVH.PurchasingGroup = PurchasingGroup AND _ProcmtHubPurgGrpVH.ProcurementHubSourceSystem = ProcurementHubSourceSystem  -- association [1..1]
LEFT OUTER JOIN C_ProcmtHubBackendSrceSystemVH AS _ProcmtHubBackendSrceSystemVH ON ProcurementHubSourceSystem = _ProcmtHubBackendSrceSystemVH.ProcurementHubSourceSystem  -- association [1..1]
LEFT OUTER JOIN I_PurchasingDocumentTypeText AS _DocumentTypeText ON _DocumentTypeText.PurchasingDocumentCategory = PurchasingDocumentCategory AND _DocumentTypeText.PurchasingDocumentType = PurchasingDocumentType AND _DocumentTypeText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PaymentTermsText AS _PaymentTermsText ON _PaymentTermsText.PaymentTerms = PaymentTerms AND _PaymentTermsText.Language = $session.system_language  -- association [0..1]
;