R_CntrlPurContrDistribution

DDL: R_CNTRLPURCONTRDISTRIBUTION SQL: RCNTRLPCONDSTR Type: view BASIC

Central Purchase Contract Distriution

R_CntrlPurContrDistribution is a Basic CDS View that provides data about "Central Purchase Contract Distriution" in SAP S/4HANA. It reads from 1 data source (ekpo_distr) and exposes 78 fields with key fields CentralPurchaseContract, CentralPurchaseContractItem, DistributionKey. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
ekpo_distr ekpo_distr from

Associations (2)

CardinalityTargetAliasCondition
[1..1] R_CentralPurchaseContract _CentralPurchaseContract _CentralPurchaseContract.CentralPurchaseContract = $projection.CentralPurchaseContract
[1..1] R_CntrlPurchaseContractItem _CntrlPurchaseContractItem $projection.CentralPurchaseContract = _CntrlPurchaseContractItem.CentralPurchaseContract and $projection.CentralPurchaseContractItem = _CntrlPurchaseContractItem.CentralPurchaseContractItem

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName RCNTRLPCONDSTR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label Central Purchase Contract Distriution view
AccessControl.personalData.blocking #REQUIRED view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
Metadata.ignorePropagatedAnnotations true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey DistributionKey view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (78)

KeyFieldSource TableSource FieldDescription
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
ExtContractItemDistrForPurg ekpo_distr extcontractitemdistrforpurg Distr. Number
PurgDocItemDistributionStatus ekpo_distr extcontractitemdistrstatus Distribution Status
IsDeleted
OrderQuantityUnit ekpo_distr orderquantityunit Sales Unit
DistributionType ekpo_distr distributiontype Distribution Type
DistrResponseMessageUUID ekpo_distr responsemessageguid GUID
ItemDistributionIsRelevant
ReferenceHeaderDistributionKey ekpo_distr referencedhdrdistrnumber Distr. Number
CntrlPurContrItmDistrIsBlocked
CntrlPurContrDistributionLevel ekpo_distr distributionlevel Distr. Level
ManualDeliveryAddressID ekpo_distr manualdeliveryaddressid Address Number
ProcmtHubDelivAddressTypeCode 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
OutlineAgrmtItmIsBlocked ekpo_distr outlineagrmtitmisblocked OA Blocked Ind
PurgDocItmBlkRsnCode ekpo_distr purgdocitmblkrsncode Block Reason ID
IncotermsClassification ekpo_distr incotermsclassification Incoterms
IncotermsLocation1 ekpo_distr incotermslocation1 Inco. Location1
ShippingInstruction ekpo_distr shippinginstruction Shipping Instr.
CntrlPurContrDistrTrggrDteTime ekpo_distr cntrlpurcontrdistrtrggrdtetime Distr Trggr Time
ProcmtHubSubcontractor ekpo_distr procmthubsubcontractor Supplier
ProcmtHubSuplrIsSubcontractor ekpo_distr procmthubsuplrissubcontractor SC Supplier
ReferenceDeliveryAddressID ekpo_distr referencedeliveryaddressid Reference Address
FormOfAddress ekpo_distr formofaddress Title Key
ProcmtHubBusinessPartnerName1 ekpo_distr procmthubbusinesspartnername1 Name
ProcmtHubBusinessPartnerName2 ekpo_distr procmthubbusinesspartnername2 Name 2
ProcmtHubBusinessPartnerName3 ekpo_distr procmthubbusinesspartnername3 Name 3
ProcmtHubBusinessPartnerName4 ekpo_distr procmthubbusinesspartnername4 Name 4
ProcmtHubStreetName ekpo_distr procmthubstreetname Street
ProcmtHubHouseNumber ekpo_distr procmthubhousenumber House Number
ProcmtHubPostalCode ekpo_distr procmthubpostalcode Postal Code
ProcmtHubCityName ekpo_distr procmthubcityname City
ProcmtHubCountry ekpo_distr procmthubcountry Country/Reg.
ProcmtHubRegion ekpo_distr procmthubregion Region
ProcmtHubPrdcssrDocUUID ekpo_distr procmthubprdcssrdocuuid Predecessor Doc UUID
ProcmtHubPrdcssrDocItemUUID ekpo_distr procmthubprdcssrdocitemuuid Prdcssr DocItem UUID
ProcmtHubPrdcssrDocObjType ekpo_distr procmthubprdcssrdocobjtype BO Object Type
ProcmtHubPrdcssrDocObjNodeType ekpo_distr procmthubprdcssrdocobjnodetype SAP Business Object Node Type
_CentralPurchaseContract _CentralPurchaseContract
_CntrlPurchaseContractItem _CntrlPurchaseContractItem

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 R_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: RCNTRLPCONDSTR

CREATE VIEW R_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.extcontractitemdistrforpurg AS ExtContractItemDistrForPurg,
  ekpo_distr.extcontractitemdistrstatus AS PurgDocItemDistributionStatus,
  cast( ekpo_distr.isdeleted as xfeld ) AS IsDeleted,
  ekpo_distr.orderquantityunit AS OrderQuantityUnit,
  ekpo_distr.distributiontype AS DistributionType,
  ekpo_distr.responsemessageguid AS DistrResponseMessageUUID,
  cast( ekpo_distr.itemdistributionisrelevant as xfeld ) AS ItemDistributionIsRelevant,
  ekpo_distr.referencedhdrdistrnumber AS ReferenceHeaderDistributionKey,
  cast( ekpo_distr.isitemdistributionblocked as xfeld ) AS CntrlPurContrItmDistrIsBlocked,
  ekpo_distr.distributionlevel AS CntrlPurContrDistributionLevel,
  ekpo_distr.manualdeliveryaddressid AS ManualDeliveryAddressID,
  ekpo_distr.deliveryaddresstype AS ProcmtHubDelivAddressTypeCode,
  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,
  ekpo_distr.outlineagrmtitmisblocked AS OutlineAgrmtItmIsBlocked,
  ekpo_distr.purgdocitmblkrsncode AS PurgDocItmBlkRsnCode,
  ekpo_distr.incotermsclassification AS IncotermsClassification,
  ekpo_distr.incotermslocation1 AS IncotermsLocation1,
  ekpo_distr.shippinginstruction AS ShippingInstruction,
  ekpo_distr.cntrlpurcontrdistrtrggrdtetime AS CntrlPurContrDistrTrggrDteTime,
  ekpo_distr.procmthubsubcontractor AS ProcmtHubSubcontractor,
  ekpo_distr.procmthubsuplrissubcontractor AS ProcmtHubSuplrIsSubcontractor,
  ekpo_distr.referencedeliveryaddressid AS ReferenceDeliveryAddressID,
  ekpo_distr.formofaddress AS FormOfAddress,
  ekpo_distr.procmthubbusinesspartnername1 AS ProcmtHubBusinessPartnerName1,
  ekpo_distr.procmthubbusinesspartnername2 AS ProcmtHubBusinessPartnerName2,
  ekpo_distr.procmthubbusinesspartnername3 AS ProcmtHubBusinessPartnerName3,
  ekpo_distr.procmthubbusinesspartnername4 AS ProcmtHubBusinessPartnerName4,
  ekpo_distr.procmthubstreetname AS ProcmtHubStreetName,
  ekpo_distr.procmthubhousenumber AS ProcmtHubHouseNumber,
  ekpo_distr.procmthubpostalcode AS ProcmtHubPostalCode,
  ekpo_distr.procmthubcityname AS ProcmtHubCityName,
  ekpo_distr.procmthubcountry AS ProcmtHubCountry,
  ekpo_distr.procmthubregion AS ProcmtHubRegion,
  ekpo_distr.procmthubprdcssrdocuuid AS ProcmtHubPrdcssrDocUUID,
  ekpo_distr.procmthubprdcssrdocitemuuid AS ProcmtHubPrdcssrDocItemUUID,
  ekpo_distr.procmthubprdcssrdocobjtype AS ProcmtHubPrdcssrDocObjType,
  ekpo_distr.procmthubprdcssrdocobjnodetype AS ProcmtHubPrdcssrDocObjNodeType
FROM ekpo_distr
LEFT OUTER JOIN R_CentralPurchaseContract AS _CentralPurchaseContract ON _CentralPurchaseContract.CentralPurchaseContract = CentralPurchaseContract  -- association [1..1]
LEFT OUTER JOIN R_CntrlPurchaseContractItem AS _CntrlPurchaseContractItem ON CentralPurchaseContract = _CntrlPurchaseContractItem.CentralPurchaseContract AND CentralPurchaseContractItem = _CntrlPurchaseContractItem.CentralPurchaseContractItem  -- association [1..1]
;