I_SlsContrAddlCompletePartners

DDL: I_SLSCONTRADDLCOMPLETEPARTNERS Type: view BASIC

SD Document Additional Complete Partners

I_SlsContrAddlCompletePartners is a Basic CDS View that provides data about "SD Document Additional Complete Partners" in SAP S/4HANA. It reads from 1 data source (vbpa2) and exposes 18 fields with key fields SDDocument, SDDocumentItem, PartnerFunction, SDDocPartnerSequenceNumber. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
vbpa2 vbpa2 from

Associations (6)

CardinalityTargetAliasCondition
[0..1] I_SalesDocumentBasic _SalesDocument $projection.SDDocument = _SalesDocument.SalesDocument
[0..1] I_PartnerFunction _PartnerFunction $projection.PartnerFunction = _PartnerFunction.PartnerFunction
[0..1] I_Address _Address $projection.AddressID = _Address.AddressID
[0..1] I_Address_2 _DfltAddrRprstn $projection.AddressID = _DfltAddrRprstn.AddressID and $projection.AddressPersonID = _DfltAddrRprstn.AddressPersonID and _DfltAddrRprstn.AddressRepresentationCode is initial
[0..1] I_BusPartAddress _BusinessPartnerAddress $projection.ReferenceBusinessPartner = _BusinessPartnerAddress.BusinessPartner and $projection.AddressID = _BusinessPartnerAddress.AddressID and $projection.SDDocPartnerAddressRefType = 'H'
[0..1] I_BusPartAddress _BPRefAddressForDocSpcfcAddr $projection.ReferenceBusinessPartner = _BPRefAddressForDocSpcfcAddr.BusinessPartner and $projection.BPRefAddressIDForDocSpcfcAddr = _BPRefAddressForDocSpcfcAddr.AddressID

Annotations (10)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label SD Document Additional Complete Partners view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
AbapCatalog.sqlViewName ISDCNTRACOMPPART view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY SDDocument vbeln SD Sched. Agmt
KEY SDDocumentItem posnr WBS Element
KEY PartnerFunction parvw Task Processor
KEY SDDocPartnerSequenceNumber cntpa Counter
ReferenceBusinessPartner assigned_bp Busn. Partner
AddressID adrnr Sold-To Address
PersonNumber adrnp Person Number
AddressPersonID adrnp Person Number
SDDocPartnerAddressRefType adrda Adress ind.
AddressObjectType addr_type Address Type
BPAddrDeterminationTransaction addr_operation Transaction
BPRefAddressIDForDocSpcfcAddr bp_ref_adrnr BP Ref. Address Num.
_SalesDocument _SalesDocument
_PartnerFunction _PartnerFunction
_Address _Address
_DfltAddrRprstn _DfltAddrRprstn
_BusinessPartnerAddress _BusinessPartnerAddress
_BPRefAddressForDocSpcfcAddr _BPRefAddressForDocSpcfcAddr

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_SlsContrAddlCompletePartners.
-- 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_SlsContrAddlCompletePartners AS
SELECT
  vbeln AS SDDocument,
  posnr AS SDDocumentItem,
  parvw AS PartnerFunction,
  cntpa AS SDDocPartnerSequenceNumber,
  assigned_bp AS ReferenceBusinessPartner,
  adrnr AS AddressID,
  adrnp AS PersonNumber,
  adrnp AS AddressPersonID,
  adrda AS SDDocPartnerAddressRefType,
  addr_type AS AddressObjectType,
  addr_operation AS BPAddrDeterminationTransaction,
  bp_ref_adrnr AS BPRefAddressIDForDocSpcfcAddr
FROM vbpa2
LEFT OUTER JOIN I_SalesDocumentBasic AS _SalesDocument ON SDDocument = _SalesDocument.SalesDocument  -- association [0..1]
LEFT OUTER JOIN I_PartnerFunction AS _PartnerFunction ON PartnerFunction = _PartnerFunction.PartnerFunction  -- association [0..1]
LEFT OUTER JOIN I_Address AS _Address ON AddressID = _Address.AddressID  -- association [0..1]
LEFT OUTER JOIN I_Address_2 AS _DfltAddrRprstn ON AddressID = _DfltAddrRprstn.AddressID AND AddressPersonID = _DfltAddrRprstn.AddressPersonID AND _DfltAddrRprstn.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]
LEFT OUTER JOIN I_BusPartAddress AS _BPRefAddressForDocSpcfcAddr ON ReferenceBusinessPartner = _BPRefAddressForDocSpcfcAddr.BusinessPartner AND BPRefAddressIDForDocSpcfcAddr = _BPRefAddressForDocSpcfcAddr.AddressID  -- association [0..1]
;