I_SDDocumentCompletePartners
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 (vbpa) and exposes 31 fields with key fields SDDocument, SDDocumentItem, PartnerFunction. It has 7 associations to related views. Part of development package VDM_SD_BF_PD.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| vbpa | vbpa | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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 (31)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SDDocument | vbpa | vbeln | |
| KEY | SDDocumentItem | vbpa | posnr | |
| KEY | PartnerFunction | vbpa | parvw | |
| Customer | vbpa | kunnr | ||
| Supplier | vbpa | lifnr | ||
| Personnel | vbpa | pernr | ||
| ContactPerson | vbpa | parnr | ||
| ReferenceBusinessPartner | vbpa | assigned_bp | ||
| AddressID | vbpa | adrnr | ||
| AddressPersonID | vbpa | adrnp | ||
| SDDocPartnerAddressRefType | vbpa | adrda | ||
| AddressObjectType | vbpa | addr_type | ||
| BPAddrDeterminationTransaction | vbpa | addr_operation | ||
| BPRefAddressIDForDocSpcfcAddr | vbpa | bp_ref_adrnr | ||
| PartnerIsOneTimeAccount | vbpa | xcpdk | ||
| VATRegistration | vbpa | stceg | ||
| UnloadingPointName | vbpa | ablad | ||
| CountryCode | vbpa | land1 | ||
| CustomerHierarchyType | vbpa | hityp | ||
| CustIsPrcDetnRlvt | vbpa | prfre | ||
| CustomerIsRebateRelevant | vbpa | bokre | ||
| CustomerHierarchyLevel | vbpa | histunr | ||
| CustomerHierarchyFixedLevel | vbpa | hzuor | ||
| TransportZone | vbpa | lzone | ||
| _PartnerFunction | _PartnerFunction | |||
| _ContactPerson | _ContactPerson | |||
| _Address | _Address | |||
| _DfltAddrRprstn | _DfltAddrRprstn | |||
| _BusinessPartnerAddress | _BusinessPartnerAddress | |||
| _PersonWorkplaceAddrDfltRprstn | _PersonWorkplaceAddrDfltRprstn | |||
| _BPRefAddressForDocSpcfcAddr | _BPRefAddressForDocSpcfcAddr |
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'SD Document Complete Partners'
@VDM.viewType: #BASIC
@AccessControl: {
authorizationCheck: #NOT_REQUIRED,
personalData.blocking: #NOT_REQUIRED,
privilegedAssociations: [ '_Address', '_DfltAddrRprstn','_PersonWorkplaceAddrDfltRprstn' ]
}
@AbapCatalog: {
sqlViewName: 'ISDDOCCMPLTPART',
compiler.compareFilter: true,
preserveKey: true
}
@ObjectModel: {
usageType: {
dataClass: #TRANSACTIONAL,
serviceQuality: #A,
sizeCategory: #XL
}
}
define view I_SDDocumentCompletePartners
as
select from vbpa
association [0..1] to I_PartnerFunction as _PartnerFunction on $projection.PartnerFunction = _PartnerFunction.PartnerFunction
association [0..1] to I_ContactPerson as _ContactPerson on $projection.ContactPerson = _ContactPerson.ContactPerson
association [0..1] to I_Address as _Address on $projection.AddressID = _Address.AddressID
// The address IDs from I_Address_2 are for customers and suppliers
association [0..1] to I_Address_2 as _DfltAddrRprstn on $projection.AddressID = _DfltAddrRprstn.AddressID
and $projection.AddressPersonID = _DfltAddrRprstn.AddressPersonID
and _DfltAddrRprstn.AddressRepresentationCode is initial
association [0..1] to I_BusPartAddress as _BusinessPartnerAddress on $projection.ReferenceBusinessPartner = _BusinessPartnerAddress.BusinessPartner
and $projection.AddressID = _BusinessPartnerAddress.AddressID
and $projection.SDDocPartnerAddressRefType = 'H'
association [0..1] to I_BusPartAddress as _BPRefAddressForDocSpcfcAddr on $projection.ReferenceBusinessPartner = _BPRefAddressForDocSpcfcAddr.BusinessPartner
and $projection.BPRefAddressIDForDocSpcfcAddr = _BPRefAddressForDocSpcfcAddr.AddressID
// The address IDs from I_PersonWorkplaceAddress are for contact persons
association [0..1] to I_PersonWorkplaceAddress as _PersonWorkplaceAddrDfltRprstn on $projection.AddressID = _PersonWorkplaceAddrDfltRprstn.AddressID
and $projection.AddressPersonID = _PersonWorkplaceAddrDfltRprstn.AddressPersonID
and _PersonWorkplaceAddrDfltRprstn.AddressRepresentationCode is initial
{
key vbpa.vbeln as SDDocument,
key vbpa.posnr as SDDocumentItem,
@ObjectModel.foreignKey.association: '_PartnerFunction'
key vbpa.parvw as PartnerFunction,
vbpa.kunnr as Customer,
vbpa.lifnr as Supplier,
vbpa.pernr as Personnel,
@ObjectModel.foreignKey.association: '_ContactPerson'
vbpa.parnr as ContactPerson,
vbpa.assigned_bp as ReferenceBusinessPartner,
// Address related fields
@ObjectModel.foreignKey.association: '_Address'
vbpa.adrnr as AddressID,
vbpa.adrnp as AddressPersonID,
vbpa.adrda as SDDocPartnerAddressRefType,
vbpa.addr_type as AddressObjectType,
vbpa.addr_operation as BPAddrDeterminationTransaction,
vbpa.bp_ref_adrnr as BPRefAddressIDForDocSpcfcAddr,
vbpa.xcpdk as PartnerIsOneTimeAccount,
vbpa.stceg as VATRegistration,
@Semantics.text: true
vbpa.ablad as UnloadingPointName,
vbpa.land1 as CountryCode,
cast(
case adrda
when 'E' then 'X'
when 'F' then 'X'
else ' '
end as sd_pd_doc_spec_addr_flag) as SDDocPartnerAddrIsDocSpecific,
vbpa.hityp as CustomerHierarchyType,
vbpa.prfre as CustIsPrcDetnRlvt,
vbpa.bokre as CustomerIsRebateRelevant,
vbpa.histunr as CustomerHierarchyLevel,
vbpa.hzuor as CustomerHierarchyFixedLevel,
vbpa.lzone as TransportZone,
_PartnerFunction,
_ContactPerson,
// Address related associations
_Address,
_DfltAddrRprstn,
_BusinessPartnerAddress,
_PersonWorkplaceAddrDfltRprstn,
_BPRefAddressForDocSpcfcAddr
};
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA