I_CntrlPurContrHdrDistrTP
BO View for Header Distribution in Central Purchase Contract
I_CntrlPurContrHdrDistrTP is a Transactional CDS View that provides data about "BO View for Header Distribution in Central Purchase Contract" in SAP S/4HANA. It reads from 1 data source (I_CntrlPurContrDistribution) and exposes 44 fields with key fields CentralPurchaseContract, DistributionKey. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CntrlPurContrDistribution | I_CntrlPurContrDistribution | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CentralPurchaseContractTP | _CentralPurchaseContractTP | _CentralPurchaseContractTP.CentralPurchaseContract = $projection.CentralPurchaseContract |
| [0..*] | I_CntrlPurContrHdrPartnerTP | _CntrlPurContrHdrPartnerTP | _CntrlPurContrHdrPartnerTP.CentralPurchaseContract = $projection.CentralPurchaseContract and _CntrlPurContrHdrPartnerTP.DistributionKey = $projection.DistributionKey |
| [0..1] | I_CntrlPurContrHdrDistrAddrTP | _CntrlPurContrHdrDistrAddrTP | _CntrlPurContrHdrDistrAddrTP.CentralPurchaseContract = $projection.CentralPurchaseContract and _CntrlPurContrHdrDistrAddrTP.DistributionKey = $projection.DistributionKey ----Extension |
| [1..1] | E_CntrlPurContrDistribution | _DistributionExtension | _DistributionExtension.PurchasingDocument = $projection.CentralPurchaseContract and _DistributionExtension.DistributionKey = $projection.DistributionKey |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICNTRLPCHDRDISTR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | BO View for Header Distribution in Central Purchase Contract | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| ObjectModel.writeDraftPersistence | CNTRLPCHDISTR_D | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AccessControl.personalData.blocking | #REQUIRED | view |
Fields (44)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CentralPurchaseContract | CentralPurchaseContract | Purchasing Doc. | |
| KEY | DistributionKey | DistributionKey | Distr. Number | |
| CentralPurchaseContractItem | CentralPurchaseContractItem | Item in Central Purchase Contract | ||
| PurchasingDocumentCategory | PurchasingDocumentCategory | Doc. Category | ||
| PurchasingDocumentType | PurchasingDocumentType | RFQ Type | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| Plant | Plant | Valuation Area | ||
| LogicalSystem | LogicalSystem | Logical System | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| Currency | Currency | Valuation Crcy | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| 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 | ||
| Material | Material | Vehicle Model | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| CntrlPurContrDistributionPct | CntrlPurContrDistributionPct | |||
| TargetQuantity | TargetQuantity | Target Quantity | ||
| TargetAmount | TargetAmount | Target Value | ||
| ExtContractForPurg | ExtContractForPurg | Contract | ||
| ExtContractItemForPurg | ExtContractItemForPurg | Item | ||
| ItemDistributionStatus | ItemDistributionStatus | Distributn Status | ||
| IsDeleted | IsDeleted | TRUE | ||
| OrderQuantityUnit | OrderQuantityUnit | Sales Unit | ||
| DistributionType | DistributionType | Distribution Type | ||
| DistrResponseMessageUUID | DistrResponseMessageUUID | GUID | ||
| ContractNetPriceAmount | _CntrlPurchaseContractItem | ContractNetPriceAmount | Net Price | |
| ProcurementHubSourceSystem | ProcurementHubSourceSystem | Connected System ID | ||
| PurchasingInfoRecordUpdateCode | PurchasingInfoRecordUpdateCode | InfoUpdate | ||
| ProcmtHubCompanyCodeGroupingID | ProcmtHubCompanyCodeGroupingID | Grouping ID | ||
| ExtContractItemDistrForPurg | ExtContractItemDistrForPurg | Distr. Number | ||
| SourceListIsUpdated | Sourcelist Updated | |||
| SourceListRestriction | SourceListRestriction | SrcListRstrcn | ||
| IncotermsClassification | IncotermsClassification | Incoterms | ||
| IncotermsLocation1 | IncotermsLocation1 | Inco. Location1 | ||
| ShippingInstruction | ShippingInstruction | Shipping Instr. | ||
| _CentralPurchaseContractTP | _CentralPurchaseContractTP | |||
| _CntrlPurContrHdrPartnerTP | _CntrlPurContrHdrPartnerTP | |||
| _CntrlPurContrHdrDistrAddrTP | _CntrlPurContrHdrDistrAddrTP |
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 I_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: ICNTRLPCHDRDISTR
CREATE VIEW I_CntrlPurContrHdrDistrTP AS
SELECT
CentralPurchaseContract,
DistributionKey,
CentralPurchaseContractItem,
PurchasingDocumentCategory,
PurchasingDocumentType,
PurchasingOrganization,
CompanyCode,
Plant,
LogicalSystem,
DocumentCurrency,
Currency,
PurchasingGroup,
StorageLocation,
PaymentTerms,
CashDiscount1Days,
CashDiscount2Days,
NetPaymentDays,
CashDiscount1Percent,
CashDiscount2Percent,
Material,
MaterialGroup,
CntrlPurContrDistributionPct,
TargetQuantity,
TargetAmount,
ExtContractForPurg,
ExtContractItemForPurg,
ItemDistributionStatus,
IsDeleted,
OrderQuantityUnit,
DistributionType,
DistrResponseMessageUUID,
_CntrlPurchaseContractItem.ContractNetPriceAmount AS ContractNetPriceAmount,
ProcurementHubSourceSystem,
PurchasingInfoRecordUpdateCode,
ProcmtHubCompanyCodeGroupingID,
ExtContractItemDistrForPurg,
cast(SourceListIsUpdated as xfeld) AS SourceListIsUpdated,
SourceListRestriction,
IncotermsClassification,
IncotermsLocation1,
ShippingInstruction
FROM I_CntrlPurContrDistribution
LEFT OUTER JOIN I_CentralPurchaseContractTP AS _CentralPurchaseContractTP ON _CentralPurchaseContractTP.CentralPurchaseContract = CentralPurchaseContract -- association [1..1]
LEFT OUTER JOIN I_CntrlPurContrHdrPartnerTP AS _CntrlPurContrHdrPartnerTP ON _CntrlPurContrHdrPartnerTP.CentralPurchaseContract = CentralPurchaseContract AND _CntrlPurContrHdrPartnerTP.DistributionKey = DistributionKey -- association [0..*]
LEFT OUTER JOIN I_CntrlPurContrHdrDistrAddrTP AS _CntrlPurContrHdrDistrAddrTP ON _CntrlPurContrHdrDistrAddrTP.CentralPurchaseContract = CentralPurchaseContract AND _CntrlPurContrHdrDistrAddrTP.DistributionKey = DistributionKey -- association [0..1]
LEFT OUTER JOIN E_CntrlPurContrDistribution AS _DistributionExtension ON _DistributionExtension.PurchasingDocument = CentralPurchaseContract AND _DistributionExtension.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