P_SustSlsDocCompletePartner
P_SustSlsDocCompletePartner is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (vbpa) and exposes 7 fields with key fields SDDocument, SDDocumentItem, PartnerFunction. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| vbpa | vbpa | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Address_2 | _DfltAddrRprstn | $projection.AddressID = _DfltAddrRprstn.AddressID and $projection.AddressPersonID = _DfltAddrRprstn.AddressPersonID and _DfltAddrRprstn.AddressRepresentationCode is initial |
Annotations (3)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view |
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #CONSUMPTION
@VDM.private: true
define view entity P_SustSlsDocCompletePartner as select from vbpa
association [0..1] to I_Address_2 as _DfltAddrRprstn on $projection.AddressID = _DfltAddrRprstn.AddressID
and $projection.AddressPersonID = _DfltAddrRprstn.AddressPersonID
and _DfltAddrRprstn.AddressRepresentationCode is initial
{
key vbpa.vbeln as SDDocument,
key vbpa.posnr as SDDocumentItem,
key cast(vbpa.parvw as parvw_unv) as PartnerFunction,
// Address related fields
@ObjectModel.foreignKey.association: '_DfltAddrRprstn'
vbpa.adrnr as AddressID,
vbpa.adrnp as AddressPersonID,
vbpa.adrda as SDDocPartnerAddressRefType,
// Address related associations
_DfltAddrRprstn
}
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