Deprecated
This CDS view is deprecated in S/4HANA. Use P_SustSlsDocCompletePartner instead. View all deprecated CDS views →

I_RDPSlsDocCompletePartner

DDL: I_RDPSLSDOCCOMPLETEPARTNER Type: view BASIC

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

Data Sources (1)

SourceAliasJoin Type
vbpa vbpa from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_PartnerFunction _PartnerFunction $projection.PartnerFunction = _PartnerFunction.PartnerFunction
[0..1] I_ContactPerson _ContactPerson $projection.ContactPerson = _ContactPerson.ContactPerson
[0..1] I_Address_2 _Address $projection.AddressID = _Address.AddressID and $projection.AddressPersonID = _Address.AddressPersonID and _Address.AddressRepresentationCode is initial
[0..1] I_BusPartAddress _BusinessPartnerAddress $projection.ReferenceBusinessPartner = _BusinessPartnerAddress.BusinessPartner and $projection.AddressID = _BusinessPartnerAddress.AddressID and $projection.SDDocPartnerAddressRefType = 'H'

Annotations (12)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor P_SustSlsDocCompletePartner view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AccessControl.personalData.blocking #NOT_REQUIRED view
AbapCatalog.sqlViewName RDPSLSDOCCOMPPAR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.dataMaintenance #DISPLAY_ONLY view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY SDDocument vbpa vbeln SD Sched. Agmt
KEY SDDocumentItem vbpa posnr WBS Element
KEY PartnerFunction
Customer vbpa kunnr Stock customer
Supplier vbpa lifnr Vendor no.
ContactPerson vbpa parnr Responsible
ReferenceBusinessPartner vbpa assigned_bp Busn. Partner
AddressID vbpa adrnr Sold-To Address
AddressPersonID vbpa adrnp Person Number
SDDocPartnerAddressRefType vbpa adrda Adress ind.
_PartnerFunction _PartnerFunction
_ContactPerson _ContactPerson
_Address _Address
_BusinessPartnerAddress _BusinessPartnerAddress

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_RDPSlsDocCompletePartner.
-- 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 I_RDPSlsDocCompletePartner AS
SELECT
  vbpa.vbeln AS SDDocument,
  vbpa.posnr AS SDDocumentItem,
  cast(vbpa.parvw as parvw_unv) AS PartnerFunction,
  vbpa.kunnr AS Customer,
  vbpa.lifnr AS Supplier,
  vbpa.parnr AS ContactPerson,
  vbpa.assigned_bp AS ReferenceBusinessPartner,
  vbpa.adrnr AS AddressID,
  vbpa.adrnp AS AddressPersonID,
  vbpa.adrda AS SDDocPartnerAddressRefType
FROM vbpa
LEFT OUTER JOIN I_PartnerFunction AS _PartnerFunction ON PartnerFunction = _PartnerFunction.PartnerFunction  -- association [0..1]
LEFT OUTER JOIN I_ContactPerson AS _ContactPerson ON ContactPerson = _ContactPerson.ContactPerson  -- association [0..1]
LEFT OUTER JOIN I_Address_2 AS _Address ON AddressID = _Address.AddressID AND AddressPersonID = _Address.AddressPersonID AND _Address.AddressRepresentationCode is initial  -- association [0..1]
LEFT OUTER JOIN I_BusPartAddress AS _BusinessPartnerAddress ON ReferenceBusinessPartner = _BusinessPartnerAddress.BusinessPartner AND AddressID = _BusinessPartnerAddress.AddressID AND SDDocPartnerAddressRefType = 'H'  -- association [0..1]
;