P_BillgProcDocPartnerAddress
P_BillgProcDocPartnerAddress is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_BillingDocumentPartnerBasic) and exposes 24 fields with key fields BillingProcessDocument, PartnerFunction. It has 12 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_BillingDocumentPartnerBasic | Partner | from |
Associations (12)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ContactPerson | _ContactPerson | $projection.ContactPerson = _ContactPerson.ContactPerson |
| [1] | I_WorkAssignment | _WorkAssignment | $projection.Personnel = _WorkAssignment.WorkAssignment |
| [0..1] | I_TransportationZone | _TransportationZone | $projection.transportzone = _TransportationZone.TransportZone and $projection.country = _TransportationZone.CountryCode |
| [0..1] | I_OrganizationAddress | _OrganizationAddress | $projection.AddressID = _OrganizationAddress.AddressID and $projection.AddressPersonID = _OrganizationAddress.AddressPersonID and $projection.AddressObjectType = '1' and _OrganizationAddress.AddressRepresentationCode is initial |
| [0..1] | I_PersonAddress | _PersonAddress | $projection.AddressID = _PersonAddress.AddressID and $projection.AddressPersonID = _PersonAddress.AddressPersonID and $projection.AddressObjectType = '2' and _PersonAddress.AddressRepresentationCode is initial |
| [0..1] | I_PersonWorkplaceAddress | _PersonWorkplaceAddress | $projection.AddressID = _PersonWorkplaceAddress.AddressID and $projection.AddressPersonID = _PersonWorkplaceAddress.AddressPersonID and $projection.AddressObjectType = '3' and _PersonWorkplaceAddress.AddressRepresentationCode is initial |
| [0..1] | P_BillingAddrOrgNamePostalAddr | _OrgNamePostalAddress | $projection.AddressID = _OrgNamePostalAddress.AddressID and _OrgNamePostalAddress.AddressRepresentationCode is initial |
| [0..1] | P_BillingAddressPersonName | _PersonName | $projection.AddressPersonID = _PersonName.AddressPersonID and _PersonName.AddressRepresentationCode is initial |
| [0..1] | I_AddrCurDfltLandlinePhoneNmbr | _CurrentDfltLandlinePhoneNmbr | $projection.AddressID = _CurrentDfltLandlinePhoneNmbr.AddressID and $projection.AddressPersonID = _CurrentDfltLandlinePhoneNmbr.AddressPersonID |
| [0..1] | I_AddrCurDefaultEmailAddress | _CurrentDfltEmailAddress | $projection.AddressID = _CurrentDfltEmailAddress.AddressID and $projection.AddressPersonID = _CurrentDfltEmailAddress.AddressPersonID |
| [0..1] | I_AddrCurDfltMobilePhoneNumber | _CurrentDfltMobilePhoneNumber | $projection.AddressID = _CurrentDfltMobilePhoneNumber.AddressID and $projection.AddressPersonID = _CurrentDfltMobilePhoneNumber.AddressPersonID |
| [0..1] | I_AddrCurDefaultFaxNumber | _CurrentDfltFaxNumber | $projection.AddressID = _CurrentDfltFaxNumber.AddressID and $projection.AddressPersonID = _CurrentDfltFaxNumber.AddressPersonID |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (24)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillingProcessDocument | |||
| KEY | PartnerFunction | Partner Functn | ||
| Personnel | Personnel | Personnel No. | ||
| ContactPerson | ContactPerson | Contact Person Key | ||
| AddressID | AddressID | Ship-to address | ||
| AddressPersonID | AddressPersonID | Person Number | ||
| AddressObjectType | AddressObjectType | Address Type | ||
| StreetName | _OrgNamePostalAddress | StreetName | Text | |
| HouseNumber | _OrgNamePostalAddress | HouseNumber | House Number | |
| PostalCode | _OrgNamePostalAddress | PostalCode | Postal Code | |
| DistrictName | _OrgNamePostalAddress | DistrictName | District | |
| CityName | _OrgNamePostalAddress | CityName | Name | |
| POBox | _OrgNamePostalAddress | POBox | PO Box | |
| POBoxPostalCode | _OrgNamePostalAddress | POBoxPostalCode | PO Box Postal Code | |
| TaxJurisdiction | _OrgNamePostalAddress | TaxJurisdiction | Tax Jurisdiction | |
| Country | _OrgNamePostalAddress | Country | Venue: Ctry/Reg | |
| CountryName | ||||
| Region | _OrgNamePostalAddress | Region | Venue Region | |
| RegionName | ||||
| TransportZone | _OrgNamePostalAddress | TransportZone | Transport Zone | |
| TransportZoneDescription | ||||
| _Country | _OrgNamePostalAddress | _Country | ||
| _Region | _OrgNamePostalAddress | _Region | ||
| _TransportationZone | _TransportationZone |
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 P_BillgProcDocPartnerAddress.
-- 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 P_BillgProcDocPartnerAddress AS
SELECT
cast(Partner.BillingDocument as billing_process_document preserving type) AS BillingProcessDocument,
cast(PartnerFunction as parvw_unv preserving type ) AS PartnerFunction,
Personnel,
ContactPerson,
AddressID,
AddressPersonID,
AddressObjectType,
_OrgNamePostalAddress.StreetName AS StreetName,
_OrgNamePostalAddress.HouseNumber AS HouseNumber,
_OrgNamePostalAddress.PostalCode AS PostalCode,
_OrgNamePostalAddress.DistrictName AS DistrictName,
_OrgNamePostalAddress.CityName AS CityName,
_OrgNamePostalAddress.POBox AS POBox,
_OrgNamePostalAddress.POBoxPostalCode AS POBoxPostalCode,
_OrgNamePostalAddress.TaxJurisdiction AS TaxJurisdiction,
_OrgNamePostalAddress.Country AS Country,
_OrgNamePostalAddress._Country._Text[1: Language=$session.system_language].CountryName AS CountryName,
_OrgNamePostalAddress.Region AS Region,
_OrgNamePostalAddress._Region._RegionText[1: Language=$session.system_language].RegionName AS RegionName,
_OrgNamePostalAddress.TransportZone AS TransportZone,
_OrgNamePostalAddress._TransportationZone._Text[1: Language=$session.system_language].TransportZoneDescription AS TransportZoneDescription,
_OrgNamePostalAddress._Country AS _Country,
_OrgNamePostalAddress._Region AS _Region
FROM I_BillingDocumentPartnerBasic AS Partner
LEFT OUTER JOIN I_ContactPerson AS _ContactPerson ON ContactPerson = _ContactPerson.ContactPerson -- association [0..1]
LEFT OUTER JOIN I_WorkAssignment AS _WorkAssignment ON Personnel = _WorkAssignment.WorkAssignment -- association [1]
LEFT OUTER JOIN I_TransportationZone AS _TransportationZone ON transportzone = _TransportationZone.TransportZone AND country = _TransportationZone.CountryCode -- association [0..1]
LEFT OUTER JOIN I_OrganizationAddress AS _OrganizationAddress ON AddressID = _OrganizationAddress.AddressID AND AddressPersonID = _OrganizationAddress.AddressPersonID AND AddressObjectType = '1' AND _OrganizationAddress.AddressRepresentationCode is initial -- association [0..1]
LEFT OUTER JOIN I_PersonAddress AS _PersonAddress ON AddressID = _PersonAddress.AddressID AND AddressPersonID = _PersonAddress.AddressPersonID AND AddressObjectType = '2' AND _PersonAddress.AddressRepresentationCode is initial -- association [0..1]
LEFT OUTER JOIN I_PersonWorkplaceAddress AS _PersonWorkplaceAddress ON AddressID = _PersonWorkplaceAddress.AddressID AND AddressPersonID = _PersonWorkplaceAddress.AddressPersonID AND AddressObjectType = '3' AND _PersonWorkplaceAddress.AddressRepresentationCode is initial -- association [0..1]
LEFT OUTER JOIN P_BillingAddrOrgNamePostalAddr AS _OrgNamePostalAddress ON AddressID = _OrgNamePostalAddress.AddressID AND _OrgNamePostalAddress.AddressRepresentationCode is initial -- association [0..1]
LEFT OUTER JOIN P_BillingAddressPersonName AS _PersonName ON AddressPersonID = _PersonName.AddressPersonID AND _PersonName.AddressRepresentationCode is initial -- association [0..1]
LEFT OUTER JOIN I_AddrCurDfltLandlinePhoneNmbr AS _CurrentDfltLandlinePhoneNmbr ON AddressID = _CurrentDfltLandlinePhoneNmbr.AddressID AND AddressPersonID = _CurrentDfltLandlinePhoneNmbr.AddressPersonID -- association [0..1]
LEFT OUTER JOIN I_AddrCurDefaultEmailAddress AS _CurrentDfltEmailAddress ON AddressID = _CurrentDfltEmailAddress.AddressID AND AddressPersonID = _CurrentDfltEmailAddress.AddressPersonID -- association [0..1]
LEFT OUTER JOIN I_AddrCurDfltMobilePhoneNumber AS _CurrentDfltMobilePhoneNumber ON AddressID = _CurrentDfltMobilePhoneNumber.AddressID AND AddressPersonID = _CurrentDfltMobilePhoneNumber.AddressPersonID -- association [0..1]
LEFT OUTER JOIN I_AddrCurDefaultFaxNumber AS _CurrentDfltFaxNumber ON AddressID = _CurrentDfltFaxNumber.AddressID AND AddressPersonID = _CurrentDfltFaxNumber.AddressPersonID -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA