P_CntrlPurContrAggrDistrSts

DDL: P_CNTRLPURCONTRAGGRDISTRSTS SQL: PCPCAGGDISTSAT Type: view BASIC

P_CntrlPurContrAggrDistrSts is a Basic CDS View in SAP S/4HANA. It reads from 3 data sources (ekpo_distr, ekpo_distr, ekpo_distr) and exposes 2 fields with key field CentralPurchaseContract.

Data Sources (3)

SourceAliasJoin Type
ekpo_distr ekpo_distr from
ekpo_distr ekpo_distr union
ekpo_distr ekpo_distr union

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PCPCAGGDISTSAT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY CentralPurchaseContract purchasingdocument Purchasing Document
distributed

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_CntrlPurContrAggrDistrSts.
-- 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: PCPCAGGDISTSAT

CREATE VIEW P_CntrlPurContrAggrDistrSts AS
SELECT
  purchasingdocument AS CentralPurchaseContract,
  max(extcontractitemdistrstatus ) AS distributed
FROM ekpo_distr
-- UNION with additional select branch(es): ekpo_distr
;