P_CntrlPurContrDistribution
Basic View for Central Contract Distribution
P_CntrlPurContrDistribution is a Basic CDS View that provides data about "Basic View for Central Contract Distribution" in SAP S/4HANA. It reads from 1 data source (ekpo_distr) and exposes 50 fields with key fields CentralPurchaseContract, CentralPurchaseContractItem, DistributionKey. Part of development package VDM_MM_PUR_CCTR.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ekpo_distr | ekpo_distr | from |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCNTRLPCONDSTR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (50)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CentralPurchaseContract | purchasingdocument | Purchasing Document | |
| KEY | CentralPurchaseContractItem | purchasingdocumentitem | Purchasing Doc. Item | |
| KEY | DistributionKey | ekpo_distr | distributionnumber | Distr. Number |
| PurchasingDocumentCategory | ekpo_distr | purchasingdocumentcategory | Doc. Category | |
| PurchasingDocumentType | ekpo_distr | purchasingdocumenttype | RFQ Type | |
| PurchasingOrganization | ekpo_distr | purchasingorganization | Purchasing Organization | |
| CompanyCode | ekpo_distr | companycode | Receiver Company Code | |
| Plant | ekpo_distr | plant | Valuation Area | |
| LogicalSystem | ekpo_distr | logicalsystem | Logical System | |
| DocumentCurrency | ekpo_distr | documentcurrency | Document Currency | |
| Currency | ekpo_distr | documentcurrency | Document Currency | |
| PurchasingGroup | ekpo_distr | purchasinggroup | Purchasing Group | |
| StorageLocation | ekpo_distr | storagelocation | StorageLocation | |
| PaymentTerms | ekpo_distr | paymentterms | Pyt Terms | |
| CashDiscount1Days | ekpo_distr | cashdiscount1days | Days from Baseline Date for Payment | |
| CashDiscount2Days | ekpo_distr | cashdiscount2days | Days from Baseline Date for Payment | |
| NetPaymentDays | ekpo_distr | netpaymentdays | Net Pmt Terms Period | |
| CashDiscount1Percent | ekpo_distr | cashdiscount1percent | Disc. Percent 1 | |
| CashDiscount2Percent | ekpo_distr | cashdiscount2percent | Disc. Percent 2 | |
| Material | ekpo_distr | material | Vehicle Model | |
| MaterialGroup | ekpo_distr | materialgroup | Product Group | |
| CntrlPurContrDistributionPct | ekpo_distr | purchasingdocumentdistrpct | Distribution % | |
| TargetQuantity | ekpo_distr | targetquantity | Target Quantity | |
| TargetAmount | ekpo_distr | targetvalue | Target Value | |
| ExtContractForPurg | ekpo_distr | extcontractforpurg | Contract | |
| ExtContractItemForPurg | ekpo_distr | extcontractitemforpurg | Item | |
| IsDeleted | ekpo_distr | isdeleted | TRUE | |
| OrderQuantityUnit | ekpo_distr | orderquantityunit | Sales Unit | |
| DistributionType | ekpo_distr | distributiontype | Distribution Type | |
| DistrResponseMessageUUID | ekpo_distr | responsemessageguid | GUID | |
| ItemDistributionIsRelevant | ekpo_distr | itemdistributionisrelevant | Is Relevant | |
| ReferenceHeaderDistributionKey | ekpo_distr | referencedhdrdistrnumber | Distr. Number | |
| CntrlPurContrItmDistrIsBlocked | ekpo_distr | isitemdistributionblocked | Block Item Distr | |
| CntrlPurContrDistributionLevel | ekpo_distr | distributionlevel | Distr. Level | |
| ManualDeliveryAddressID | ekpo_distr | manualdeliveryaddressid | Address Number | |
| AddressType | ekpo_distr | deliveryaddresstype | Delivery Addr. Type | |
| ExternalReferenceDocument | ekpo_distr | externalreferencedocument | Ext. Ref. Document | |
| ExternalReferenceDocumentItem | ekpo_distr | externalreferencedocumentitem | Ext. Ref. Doc. Item | |
| ExternalRefDocCategory | ekpo_distr | externalrefdoccategory | Category | |
| PurchasingInfoRecordUpdateCode | ekpo_distr | purchasinginforecordupdatecode | InfoUpdate | |
| ProcmtHubPredecessorDocument | ekpo_distr | procmthubpredecessordocument | Prdcssr Doc Num | |
| ProcmtHubPredecessorDocItem | ekpo_distr | procmthubpredecessordocitem | Prdcssr Doc Itm | |
| ProcmtHubPredecessorDocCat | ekpo_distr | procmthubpredecessordoccat | Prdcssr Doc Categ | |
| ProcmtHubPurchaseRequisition | ekpo_distr | procmthubpurchaserequisition | Purchase Req. | |
| ProcmtHubPurRequisitionItem | ekpo_distr | procmthubpurrequisitionitem | Requisn. item | |
| SourceListIsUpdated | ekpo_distr | sourcelistisupdated | Sourcelist Updated | |
| SourceListRestriction | ekpo_distr | sourcelistrestriction | SrcListRstrcn | |
| SrceListResponseMsgUUID | ekpo_distr | srcelistresponsemsguuid | GUID | |
| SourceListChangeConfStatus | ekpo_distr | sourcelistchangeconfstatus | Src. Lst Change Sta. | |
| ProcmtHubCompanyCodeGroupingID | ekpo_distr | procmthubcompanycodegroupingid | Grouping ID |
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 P_CntrlPurContrDistribution.
-- 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: PCNTRLPCONDSTR
CREATE VIEW P_CntrlPurContrDistribution AS
SELECT
purchasingdocument AS CentralPurchaseContract,
purchasingdocumentitem AS CentralPurchaseContractItem,
ekpo_distr.distributionnumber AS DistributionKey,
ekpo_distr.purchasingdocumentcategory AS PurchasingDocumentCategory,
ekpo_distr.purchasingdocumenttype AS PurchasingDocumentType,
ekpo_distr.purchasingorganization AS PurchasingOrganization,
ekpo_distr.companycode AS CompanyCode,
ekpo_distr.plant AS Plant,
ekpo_distr.logicalsystem AS LogicalSystem,
ekpo_distr.documentcurrency AS DocumentCurrency,
ekpo_distr.documentcurrency AS Currency,
ekpo_distr.purchasinggroup AS PurchasingGroup,
ekpo_distr.storagelocation AS StorageLocation,
ekpo_distr.paymentterms AS PaymentTerms,
ekpo_distr.cashdiscount1days AS CashDiscount1Days,
ekpo_distr.cashdiscount2days AS CashDiscount2Days,
ekpo_distr.netpaymentdays AS NetPaymentDays,
ekpo_distr.cashdiscount1percent AS CashDiscount1Percent,
ekpo_distr.cashdiscount2percent AS CashDiscount2Percent,
ekpo_distr.material AS Material,
ekpo_distr.materialgroup AS MaterialGroup,
ekpo_distr.purchasingdocumentdistrpct AS CntrlPurContrDistributionPct,
ekpo_distr.targetquantity AS TargetQuantity,
ekpo_distr.targetvalue AS TargetAmount,
ekpo_distr.extcontractforpurg AS ExtContractForPurg,
ekpo_distr.extcontractitemforpurg AS ExtContractItemForPurg,
ekpo_distr.isdeleted AS IsDeleted,
ekpo_distr.orderquantityunit AS OrderQuantityUnit,
ekpo_distr.distributiontype AS DistributionType,
ekpo_distr.responsemessageguid AS DistrResponseMessageUUID,
ekpo_distr.itemdistributionisrelevant AS ItemDistributionIsRelevant,
ekpo_distr.referencedhdrdistrnumber AS ReferenceHeaderDistributionKey,
ekpo_distr.isitemdistributionblocked AS CntrlPurContrItmDistrIsBlocked,
ekpo_distr.distributionlevel AS CntrlPurContrDistributionLevel,
ekpo_distr.manualdeliveryaddressid AS ManualDeliveryAddressID,
ekpo_distr.deliveryaddresstype AS AddressType,
ekpo_distr.externalreferencedocument AS ExternalReferenceDocument,
ekpo_distr.externalreferencedocumentitem AS ExternalReferenceDocumentItem,
ekpo_distr.externalrefdoccategory AS ExternalRefDocCategory,
ekpo_distr.purchasinginforecordupdatecode AS PurchasingInfoRecordUpdateCode,
ekpo_distr.procmthubpredecessordocument AS ProcmtHubPredecessorDocument,
ekpo_distr.procmthubpredecessordocitem AS ProcmtHubPredecessorDocItem,
ekpo_distr.procmthubpredecessordoccat AS ProcmtHubPredecessorDocCat,
ekpo_distr.procmthubpurchaserequisition AS ProcmtHubPurchaseRequisition,
ekpo_distr.procmthubpurrequisitionitem AS ProcmtHubPurRequisitionItem,
ekpo_distr.sourcelistisupdated AS SourceListIsUpdated,
ekpo_distr.sourcelistrestriction AS SourceListRestriction,
ekpo_distr.srcelistresponsemsguuid AS SrceListResponseMsgUUID,
ekpo_distr.sourcelistchangeconfstatus AS SourceListChangeConfStatus,
ekpo_distr.procmthubcompanycodegroupingid AS ProcmtHubCompanyCodeGroupingID
FROM ekpo_distr
;
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