I_SDDocumentCompletePartners

DDL: I_SDDOCUMENTCOMPLETEPARTNERS Type: view BASIC

SD Document Complete Partners

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

Data Sources (1)

SourceAliasJoin Type
P_SDDocumentCompletePartners P_SDDocumentCompletePartners from

Associations (7)

CardinalityTargetAliasCondition
[0..1] I_PartnerFunction _PartnerFunction $projection.PartnerFunction = _PartnerFunction.PartnerFunction
[0..1] I_ContactPerson _ContactPerson $projection.ContactPerson = _ContactPerson.ContactPerson
[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
[0..1] I_PersonWorkplaceAddress _PersonWorkplaceAddrDfltRprstn $projection.AddressID = _PersonWorkplaceAddrDfltRprstn.AddressID and $projection.AddressPersonID = _PersonWorkplaceAddrDfltRprstn.AddressPersonID and _PersonWorkplaceAddrDfltRprstn.AddressRepresentationCode is initial

Annotations (11)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label SD Document Complete Partners view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
AbapCatalog.sqlViewName ISDDOCCMPLTPART view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view

Fields (32)

KeyFieldSource TableSource FieldDescription
KEY SDDocument SDDocument SD Document
KEY SDDocumentItem SDDocumentItem
KEY PartnerFunction PartnerFunction Partner Functn
Customer Customer Sold-to Party
Supplier Supplier Supplier
Personnel Personnel Personnel No.
ContactPerson ContactPerson Contact Person Key
ReferenceBusinessPartner ReferenceBusinessPartner Busn. Partner
AddressID AddressID Ship-to address
AddressPersonID AddressPersonID Person Number
SDDocPartnerAddressRefType SDDocPartnerAddressRefType Adress ind.
AddressObjectType AddressObjectType Address Type
BPAddrDeterminationTransaction BPAddrDeterminationTransaction Address Detn
BPRefAddressIDForDocSpcfcAddr BPRefAddressIDForDocSpcfcAddr BP Ref. Address Num.
SDDocPartnerAddrIsDocSpecific SDDocPartnerAddrIsDocSpecific
PartnerIsOneTimeAccount PartnerIsOneTimeAccount One-time acct
VATRegistration VATRegistration VAT Registration No.
UnloadingPointName UnloadingPointName Unloading Point Name
CountryCode CountryCode Country/Reg.
CustomerHierarchyType CustomerHierarchyType
CustIsPrcDetnRlvt CustIsPrcDetnRlvt
CustomerIsRebateRelevant CustomerIsRebateRelevant Rebate
CustomerHierarchyLevel CustomerHierarchyLevel
CustomerHierarchyFixedLevel CustomerHierarchyFixedLevel
TransportZone TransportZone Transport Zone
_PartnerFunction _PartnerFunction
_ContactPerson _ContactPerson
_Address _Address
_DfltAddrRprstn _DfltAddrRprstn
_BusinessPartnerAddress _BusinessPartnerAddress
_PersonWorkplaceAddrDfltRprstn _PersonWorkplaceAddrDfltRprstn
_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_SDDocumentCompletePartners.
-- 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_SDDocumentCompletePartners AS
SELECT
  SDDocument,
  SDDocumentItem,
  PartnerFunction,
  Customer,
  Supplier,
  Personnel,
  ContactPerson,
  ReferenceBusinessPartner,
  AddressID,
  AddressPersonID,
  SDDocPartnerAddressRefType,
  AddressObjectType,
  BPAddrDeterminationTransaction,
  BPRefAddressIDForDocSpcfcAddr,
  SDDocPartnerAddrIsDocSpecific,
  PartnerIsOneTimeAccount,
  VATRegistration,
  UnloadingPointName,
  CountryCode,
  CustomerHierarchyType,
  CustIsPrcDetnRlvt,
  CustomerIsRebateRelevant,
  CustomerHierarchyLevel,
  CustomerHierarchyFixedLevel,
  TransportZone
FROM P_SDDocumentCompletePartners
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 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]
LEFT OUTER JOIN I_PersonWorkplaceAddress AS _PersonWorkplaceAddrDfltRprstn ON AddressID = _PersonWorkplaceAddrDfltRprstn.AddressID AND AddressPersonID = _PersonWorkplaceAddrDfltRprstn.AddressPersonID AND _PersonWorkplaceAddrDfltRprstn.AddressRepresentationCode is initial  -- association [0..1]
;