I_SDDOCUMENTCOMPLETEPARTNERS
SD Document Complete Partners
I_SDDOCUMENTCOMPLETEPARTNERS is a CDS View in S/4HANA. SD Document Complete Partners. It contains 14 fields. 37 CDS views read from this table.
CDS Views using this table (37)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| A_InbDeliveryPartner | view | from | BASIC | CDS View for Business Partner |
| A_InbDeliveryPartner_1 | view | from | BASIC | CDS View for Business Partner |
| A_OutbDeliveryPartner | view | from | BASIC | CDS view for API exposure |
| A_OutbDeliveryPartner_1 | view | from | BASIC | CDS view for API exposure |
| A_ReturnsDeliveryPartner | view | from | BASIC | Returns Delivery Partner |
| A_ReturnsDeliveryPartner_1 | view | from | BASIC | Returns Delivery Partner |
| ARun_ValAddedSrvcSDItmBsc | view | left_outer | P_ARunValAddedSrvcSDItmBsc | |
| C_SDDocumentPartnerCard | view | from | CONSUMPTION | Business Partner for Fact Sheets |
| C_SlsDocFlfmtSDDocContacts | view | from | CONSUMPTION | Sales Doc Fulfillment: Contacts |
| C_SlsDocNonStdPartner | view | from | CONSUMPTION | SD Document Non Std Complete Partners |
| FAC_AUDIT_Z3_SDPARTNER | view | from | Sales Document Partner | |
| FAC_AUDIT_Z3_SDPARTNER | view | union_all | Sales Document Partner | |
| I_ARunOvwSDItem | view | left_outer | BASIC | Basic View for Sales Document Item |
| I_CFinSalesDocumentPartner | view | from | COMPOSITE | Central Finance Sales Document: Partner |
| I_DeliveryDocumentAddress | view_entity | from | COMPOSITE | Delivery Document Address |
| I_DeliveryPartnerAddress | view | from | COMPOSITE | Delivery Partner Address |
| I_MyProjectBillingElements | view_entity | inner | COMPOSITE | Project Billing Elements by UserID |
| I_PT_SAFTBillingOneTimeAddr | view_entity | inner | COMPOSITE | One Time Customer Addr for Billing Docs |
| I_PT_SAFTDeliveryPartner | view_entity | from | COMPOSITE | SAFT Delivery OneTimeCustomers |
| I_PT_SAFTOneTimeCustBillg | view_entity | inner | COMPOSITE | One Time Customer from Billing Document |
| I_SAFTBillingOneTimeCustomer | view | inner | COMPOSITE | SAF-T Billing OneTimeCustomers |
| I_SAFTDeliveryOneTimeCustomer | view | inner | COMPOSITE | SAF-T Delivery OneTimeCustomers |
| I_SDDocCompltPartWthAddlData | view | from | COMPOSITE | Complete Partners with Additional Data |
| I_SDDocumentItemPartner | view | from | BASIC | SD Document Item Partner |
| I_SDDocumentPartner | view | from | BASIC | SD Document Partner |
| I_SlsDocNonStdPartner | view | from | COMPOSITE | SD Document Non Std Complete Partners |
| I_SupDmndAllDocRetSlsOrd | view | left_outer | BASIC | View for Return Sales Orders |
| I_SupDmndOvwSD | view | left_outer | COMPOSITE | Basic View for Sales Document |
| P_MyPrelimBillingDocumentItem | view_entity | inner | COMPOSITE | My Preliminary Billing Document Item |
| P_MyProjectBillingElements2 | view_entity | inner | COMPOSITE | Project Billing Elements by UserID (2) |
| P_MyProjectBillingRequests | view_entity | inner | COMPOSITE | Project Billing Requests by UserID |
| P_RU_SDPartnerData1 | view | from | CONSUMPTION | SD Partner Data |
| P_SDDocItemPartnerComplete | view | from | CONSUMPTION | SD Document Item Complete Partner |
| P_SlsDocFlfmtCountryName | view | from | CONSUMPTION | Full Name |
| P_SlsDocFlfmtFullName | view | from | CONSUMPTION | Full Name |
| P_SlsDocFlfmtSDDocContacts1 | view | from | CONSUMPTION | P_SlsDocFlfmtSDDocContacts1 |
| P_StRpBillingDocumentItem | view | left_outer | COMPOSITE | Billing Document Item with Tax for Statutory Reporting |
Fields (14)
| Key | Field | CDS Fields | Used in Views |
|---|---|---|---|
| KEY | AddressID | AddressID,AddressNumber | 10 |
| KEY | ContactPerson | ContactPerson | 3 |
| KEY | Customer | Customer | 7 |
| KEY | PartnerFunction | PartnerFunction | 10 |
| KEY | Personnel | Personnel | 3 |
| KEY | SDDocument | DeliveryDocument,SalesDocument,SDDocument | 7 |
| KEY | SDDocumentItem | SDDocumentItem | 4 |
| _Address | _Address | 2 | |
| _DfltAddrRprstn | _DfltAddrRprstn | 4 | |
| _PartnerFunction | _PartnerFunction | 3 | |
| AddressObjectType | AddressObjectType | 1 | |
| AddressPersonID | AddressPersonID | 7 | |
| PartnerIsOneTimeAccount | IsOneTimeAccount,PartnerIsOneTimeAccount | 5 | |
| SDDocPartnerAddressRefType | SDDocPartnerAddressRefType | 1 |
@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
};