P_SustSlsDocCompletePartner

DDL: P_SUSTSLSDOCCOMPLETEPARTNER Type: view_entity CONSUMPTION

P_SustSlsDocCompletePartner is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (vbpa) and exposes 7 fields with key fields SDDocument, SDDocumentItem, PartnerFunction. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
vbpa vbpa from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_Address_2 _DfltAddrRprstn $projection.AddressID = _DfltAddrRprstn.AddressID and $projection.AddressPersonID = _DfltAddrRprstn.AddressPersonID and _DfltAddrRprstn.AddressRepresentationCode is initial

Annotations (3)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY SDDocument vbpa vbeln SD Sched. Agmt
KEY SDDocumentItem vbpa posnr WBS Element
KEY PartnerFunction
AddressID vbpa adrnr Sold-To Address
AddressPersonID vbpa adrnp Person Number
SDDocPartnerAddressRefType vbpa adrda Adress ind.
_DfltAddrRprstn _DfltAddrRprstn

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_SustSlsDocCompletePartner.
-- 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.

CREATE VIEW P_SustSlsDocCompletePartner AS
SELECT
  vbpa.vbeln AS SDDocument,
  vbpa.posnr AS SDDocumentItem,
  cast(vbpa.parvw as parvw_unv) AS PartnerFunction,
  vbpa.adrnr AS AddressID,
  vbpa.adrnp AS AddressPersonID,
  vbpa.adrda AS SDDocPartnerAddressRefType
FROM vbpa
LEFT OUTER JOIN I_Address_2 AS _DfltAddrRprstn ON AddressID = _DfltAddrRprstn.AddressID AND AddressPersonID = _DfltAddrRprstn.AddressPersonID AND _DfltAddrRprstn.AddressRepresentationCode is initial  -- association [0..1]
;