C_DistrdContrForCntrlPurContr

DDL: C_DISTRDCONTRFORCNTRLPURCONTR SQL: CDISTRCONTR Type: view CONSUMPTION

Distributed contracts for Cntrl Contract

C_DistrdContrForCntrlPurContr is a Consumption CDS View that provides data about "Distributed contracts for Cntrl Contract" in SAP S/4HANA. It reads from 1 data source (I_CePuCoDistributedContrTP) and exposes 27 fields with key fields CentralPurchaseContract, CompanyCode, ExtContractForPurg, ProcurementHubSourceSystem, PurchasingOrganization. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CePuCoDistributedContrTP I_CePuCoDistributedContrTP from

Associations (5)

CardinalityTargetAliasCondition
[1..1] C_CentralPurchaseContractTP _CentralPurchaseContractTP $projection.CentralPurchaseContract = _CentralPurchaseContractTP.CentralPurchaseContract
[1..*] C_CntrlPurContrDistrMessages _CntrlPurContrDistrMessages $projection.DistrResponseMessageUUID = _CntrlPurContrDistrMessages.DistrResponseMessageUUID
[0..1] C_CntrlDistrdPurContrStatusTxt _CntrlDistrdPurContrStatusTxt _CntrlDistrdPurContrStatusTxt.ItemDistributionStatus = $projection.ItemDistributionStatus
[0..1] C_SourceListChgConfStsDesc _SourceListChgConfStsDesc _SourceListChgConfStsDesc.SourceListChangeConfStatus = $projection.SourceListChangeConfStatus
[1..1] C_CePuCoDistrdContrPaytTrmsTP _CCTRDistributedContrPayTerms _CCTRDistributedContrPayTerms.CentralPurchaseContract = $projection.CentralPurchaseContract and _CCTRDistributedContrPayTerms.ExtContractForPurg = $projection.ExtContractForPurg and _CCTRDistributedContrPayTerms.ProcurementHubSourceSystem = $projection.ProcurementHubSourceSystem and _CCTRDistributedContrPayTerms.CompanyCode = $projection.CompanyCode and _CCTRDistributedContrPayTerms.PurchasingOrganization = $projection.PurchasingOrganization and _CCTRDistributedContrPayTerms.PurchasingGroup = $projection.PurchasingGroup and _CCTRDistributedContrPayTerms.DistrResponseMessageUUID = $projection.DistrResponseMessageUUID and _CCTRDistributedContrPayTerms.PurchasingDocumentCategory = $projection.PurchasingDocumentCategory and _CCTRDistributedContrPayTerms.DistributionKey = $projection.DistributionKey and _CCTRDistributedContrPayTerms.CentralPurchaseContractItem = $projection.CentralPurchaseContractItem

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CDISTRCONTR view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Distributed contracts for Cntrl Contract view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.createEnabled false view
ObjectModel.deleteEnabled false view
ObjectModel.updateEnabled false view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view

Fields (27)

KeyFieldSource TableSource FieldDescription
KEY CentralPurchaseContract CentralPurchaseContract Purchasing Doc.
KEY CompanyCode CompanyCode Receiver Company Code
KEY ExtContractForPurg ExtContractForPurg Contract
KEY ProcurementHubSourceSystem ProcurementHubSourceSystem Connected System ID
KEY PurchasingOrganization PurchasingOrganization Purchasing Organization
KEY PurchasingGroup PurchasingGroup Purchasing Group
KEY DistrResponseMessageUUID DistrResponseMessageUUID GUID
KEY PurchasingDocumentCategory PurchasingDocumentCategory Doc. Category
KEY DistributionKey DistributionKey Distr. Number
KEY CentralPurchaseContractItem CentralPurchaseContractItem Item in Central Purchase Contract
CntrlPurContrDistrTrggrDteTime CntrlPurContrDistrTrggrDteTime Distr Trggr Time
PurchasingDocumentCategoryName PurchasingDocumentCategoryName Short Description
CompanyCodeName CompanyCodeName Company Name
PurchasingOrganizationName PurchasingOrganizationName Purch. Org. Name
PurchasingGroupName PurchasingGroupName Purchasing Grp. Name
ItemDistributionStatus PurgDocItemDistributionStatus
SourceListIsUpdated SourceListIsUpdated Sourcelist Updated
SrceListResponseMsgUUID SrceListResponseMsgUUID GUID
ItemDistributionStatusName _CntrlDistrdPurContrStatusTxt ItemDistributionStatusName
SourceListChangeConfStatus SourceListChangeConfStatus Src. Lst Change Sta.
SourceListChgConfStsDesc _SourceListChgConfStsDesc SourceListChgConfStsDesc
LogicalSystem LogicalSystem Logical System
_CentralPurchaseContractTP _CentralPurchaseContractTP
_CntrlPurContrDistrMessages _CntrlPurContrDistrMessages
_CntrlDistrdPurContrStatusTxt _CntrlDistrdPurContrStatusTxt
_SourceListChgConfStsDesc _SourceListChgConfStsDesc
_CCTRDistributedContrPayTerms _CCTRDistributedContrPayTerms

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_DistrdContrForCntrlPurContr.
-- 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: CDISTRCONTR

CREATE VIEW C_DistrdContrForCntrlPurContr AS
SELECT
  CentralPurchaseContract,
  CompanyCode,
  ExtContractForPurg,
  ProcurementHubSourceSystem,
  PurchasingOrganization,
  PurchasingGroup,
  DistrResponseMessageUUID,
  PurchasingDocumentCategory,
  DistributionKey,
  CentralPurchaseContractItem,
  CntrlPurContrDistrTrggrDteTime,
  PurchasingDocumentCategoryName,
  CompanyCodeName,
  PurchasingOrganizationName,
  PurchasingGroupName,
  PurgDocItemDistributionStatus AS ItemDistributionStatus,
  SourceListIsUpdated,
  SrceListResponseMsgUUID,
  _CntrlDistrdPurContrStatusTxt.ItemDistributionStatusName AS ItemDistributionStatusName,
  SourceListChangeConfStatus,
  _SourceListChgConfStsDesc.SourceListChgConfStsDesc AS SourceListChgConfStsDesc,
  LogicalSystem
FROM I_CePuCoDistributedContrTP
LEFT OUTER JOIN C_CentralPurchaseContractTP AS _CentralPurchaseContractTP ON CentralPurchaseContract = _CentralPurchaseContractTP.CentralPurchaseContract  -- association [1..1]
LEFT OUTER JOIN C_CntrlPurContrDistrMessages AS _CntrlPurContrDistrMessages ON DistrResponseMessageUUID = _CntrlPurContrDistrMessages.DistrResponseMessageUUID  -- association [1..*]
LEFT OUTER JOIN C_CntrlDistrdPurContrStatusTxt AS _CntrlDistrdPurContrStatusTxt ON _CntrlDistrdPurContrStatusTxt.ItemDistributionStatus = ItemDistributionStatus  -- association [0..1]
LEFT OUTER JOIN C_SourceListChgConfStsDesc AS _SourceListChgConfStsDesc ON _SourceListChgConfStsDesc.SourceListChangeConfStatus = SourceListChangeConfStatus  -- association [0..1]
LEFT OUTER JOIN C_CePuCoDistrdContrPaytTrmsTP AS _CCTRDistributedContrPayTerms ON _CCTRDistributedContrPayTerms.CentralPurchaseContract = CentralPurchaseContract AND _CCTRDistributedContrPayTerms.ExtContractForPurg = ExtContractForPurg AND _CCTRDistributedContrPayTerms.ProcurementHubSourceSystem = ProcurementHubSourceSystem AND _CCTRDistributedContrPayTerms.CompanyCode = CompanyCode AND _CCTRDistributedContrPayTerms.PurchasingOrganization = PurchasingOrganization AND _CCTRDistributedContrPayTerms.PurchasingGroup = PurchasingGroup AND _CCTRDistributedContrPayTerms.DistrResponseMessageUUID = DistrResponseMessageUUID AND _CCTRDistributedContrPayTerms.PurchasingDocumentCategory = PurchasingDocumentCategory AND _CCTRDistributedContrPayTerms.DistributionKey = DistributionKey AND _CCTRDistributedContrPayTerms.CentralPurchaseContractItem = CentralPurchaseContractItem  -- association [1..1]
;