A_CntrlPurContrHdrDistribution
Header Distribution
A_CntrlPurContrHdrDistribution is a Composite CDS View that provides data about "Header Distribution" in SAP S/4HANA. It reads from 1 data source (I_CntrlPurContrDistribution) and exposes 30 fields with key fields CentralPurchaseContract, DistributionKey. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CntrlPurContrDistribution | I_CntrlPurContrDistribution | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | A_CentralPurchaseContract | _CentralPurchaseContract | $projection.CentralPurchaseContract = _CentralPurchaseContract.CentralPurchaseContract |
| [0..*] | A_CntrlPurContrHeaderPartner | _CntrlPurContrHeaderPartner | $projection.CentralPurchaseContract = _CntrlPurContrHeaderPartner.CentralPurchaseContract and $projection.DistributionKey = _CntrlPurContrHeaderPartner.DistributionKey ----Extension |
| [1..1] | E_CntrlPurContrDistribution | _CntrlPurContrDistriExtension | _CntrlPurContrDistriExtension.PurchasingDocument = $projection.CentralPurchaseContract and _CntrlPurContrDistriExtension.DistributionKey = $projection.DistributionKey |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ACNTRLPCTRHD | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Header Distribution | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.createEnabled | false | view | |
| ObjectModel.updateEnabled | false | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AbapCatalog.preserveKey | true | view |
Fields (30)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CentralPurchaseContract | CentralPurchaseContract | Purchasing Doc. | |
| KEY | DistributionKey | DistributionKey | Distr. Number | |
| CentralPurchaseContractItem | CentralPurchaseContractItem | Item in Central Purchase Contract | ||
| ProcmtHubCompanyCode | CompanyCode | Receiver Company Code | ||
| ProcmtHubPlant | Plant | Valuation Area | ||
| ProcmtHubPurchasingOrg | PurchasingOrganization | Purchasing Organization | ||
| ProcmtHubPurchasingGroup | PurchasingGroup | Purchasing Group | ||
| ProcmtHubCompanyCodeGroupingID | ProcmtHubCompanyCodeGroupingID | Grouping ID | ||
| PaymentTerms | PaymentTerms | Pyt Terms | ||
| CashDiscount1Days | CashDiscount1Days | Days from Baseline Date for Payment | ||
| CashDiscount2Days | CashDiscount2Days | Days from Baseline Date for Payment | ||
| NetPaymentDays | NetPaymentDays | Net Pmt Terms Period | ||
| CashDiscount1Percent | CashDiscount1Percent | Disc. Percent 1 | ||
| CashDiscount2Percent | CashDiscount2Percent | Disc. Percent 2 | ||
| PurchasingDocumentCategory | PurchasingDocumentCategory | Doc. Category | ||
| PurchasingDocumentType | PurchasingDocumentType | RFQ Type | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| CntrlPurContrDistributionPct | CntrlPurContrDistributionPct | |||
| IncotermsClassification | IncotermsClassification | Incoterms | ||
| IncotermsLocation1 | IncotermsLocation1 | Inco. Location1 | ||
| ShippingInstruction | ShippingInstruction | Shipping Instr. | ||
| CntrlPurContrItmDistrAmt | TargetAmount | Target Value | ||
| ProcurementHubSourceSystem | LogicalSystem | Logical System | ||
| IsDeleted | TRUE | |||
| PurchasingInfoRecordUpdateCode | PurchasingInfoRecordUpdateCode | InfoUpdate | ||
| SourceListIsUpdated | Sourcelist Updated | |||
| SourceListRestriction | SourceListRestriction | SrcListRstrcn | ||
| ReferenceDistributionNumber | ExtContractItemDistrForPurg | Distr. Number | ||
| _CntrlPurContrHeaderPartner | _CntrlPurContrHeaderPartner | |||
| _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 A_CntrlPurContrHdrDistribution.
-- 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: ACNTRLPCTRHD
CREATE VIEW A_CntrlPurContrHdrDistribution AS
SELECT
CentralPurchaseContract,
DistributionKey,
CentralPurchaseContractItem,
CompanyCode AS ProcmtHubCompanyCode,
Plant AS ProcmtHubPlant,
PurchasingOrganization AS ProcmtHubPurchasingOrg,
PurchasingGroup AS ProcmtHubPurchasingGroup,
ProcmtHubCompanyCodeGroupingID,
PaymentTerms,
CashDiscount1Days,
CashDiscount2Days,
NetPaymentDays,
CashDiscount1Percent,
CashDiscount2Percent,
PurchasingDocumentCategory,
PurchasingDocumentType,
StorageLocation,
CntrlPurContrDistributionPct,
IncotermsClassification,
IncotermsLocation1,
ShippingInstruction,
TargetAmount AS CntrlPurContrItmDistrAmt,
LogicalSystem AS ProcurementHubSourceSystem,
cast(IsDeleted as boolean) AS IsDeleted,
PurchasingInfoRecordUpdateCode,
cast(SourceListIsUpdated as xfeld) AS SourceListIsUpdated,
SourceListRestriction,
ExtContractItemDistrForPurg AS ReferenceDistributionNumber
FROM I_CntrlPurContrDistribution
LEFT OUTER JOIN A_CentralPurchaseContract AS _CentralPurchaseContract ON CentralPurchaseContract = _CentralPurchaseContract.CentralPurchaseContract -- association [1..1]
LEFT OUTER JOIN A_CntrlPurContrHeaderPartner AS _CntrlPurContrHeaderPartner ON CentralPurchaseContract = _CntrlPurContrHeaderPartner.CentralPurchaseContract AND DistributionKey = _CntrlPurContrHeaderPartner.DistributionKey -- association [0..*]
LEFT OUTER JOIN E_CntrlPurContrDistribution AS _CntrlPurContrDistriExtension ON _CntrlPurContrDistriExtension.PurchasingDocument = CentralPurchaseContract AND _CntrlPurContrDistriExtension.DistributionKey = DistributionKey -- association [1..1]
;
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