A_SalesOrderPartnerAddress
Header Partner Address
A_SalesOrderPartnerAddress is a Composite CDS View that provides data about "Header Partner Address" in SAP S/4HANA. It reads from 3 data sources (I_Address_2, I_SDDocumentPartner, I_SalesDocumentBasic) and exposes 40 fields with key fields SalesOrder, PartnerFunction, AddressRepresentationCode. It has 2 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_Address_2 | Address | inner |
| I_SDDocumentPartner | HeaderPartner | from |
| I_SalesDocumentBasic | SalesDocument | inner |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | A_SalesOrder | _SalesOrder | $projection.SalesOrder = _SalesOrder.SalesOrder |
| [1..1] | A_SalesOrderHeaderPartner | _Partner | $projection.SalesOrder = _Partner.SalesOrder and $projection.PartnerFunction = _Partner.PartnerFunction |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Header Partner Address | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (40)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesOrder | I_SDDocumentPartner | SDDocument | SD Document |
| KEY | PartnerFunction | I_SDDocumentPartner | PartnerFunction | Partner Functn |
| KEY | AddressRepresentationCode | I_Address_2 | AddressRepresentationCode | Address Version |
| CorrespondenceLanguage | I_Address_2 | CorrespondenceLanguage | Language | |
| AddresseeFullName | I_Address_2 | AddresseeFullName | Full Name | |
| OrganizationName1 | I_Address_2 | OrganizationName1 | Name | |
| OrganizationName2 | I_Address_2 | OrganizationName2 | Name 2 | |
| OrganizationName3 | I_Address_2 | OrganizationName3 | Name 3 | |
| OrganizationName4 | I_Address_2 | OrganizationName4 | Name 4 | |
| CityName | I_Address_2 | CityName | Name | |
| DistrictName | I_Address_2 | DistrictName | District | |
| PostalCode | I_Address_2 | PostalCode | Postal Code | |
| StreetPrefixName1 | I_Address_2 | StreetPrefixName1 | Street Address Non-Deliverable Reason | |
| StreetPrefixName2 | I_Address_2 | StreetPrefixName2 | Street 3 | |
| StreetName | I_Address_2 | StreetName | Text | |
| StreetSuffixName1 | I_Address_2 | StreetSuffixName1 | Street 4 | |
| StreetSuffixName2 | I_Address_2 | StreetSuffixName2 | Street 5 | |
| HouseNumber | I_Address_2 | HouseNumber | House Number | |
| Country | I_Address_2 | Country | Venue: Ctry/Reg | |
| Region | I_Address_2 | Region | Venue Region | |
| FormOfAddress | I_Address_2 | FormOfAddress | Title Key | |
| TaxJurisdiction | I_Address_2 | TaxJurisdiction | Tax Jurisdiction | |
| TransportZone | I_Address_2 | TransportZone | Transport Zone | |
| POBox | I_Address_2 | POBox | PO Box | |
| POBoxPostalCode | I_Address_2 | POBoxPostalCode | PO Box Postal Code | |
| EmailAddress | ||||
| MobilePhoneCountry | ||||
| MobileNumber | ||||
| PhoneNumberCountry | ||||
| PhoneNumber | ||||
| PhoneExtensionNumber | ||||
| FaxNumberCountry | ||||
| FaxAreaCodeSubscriberNumber | ||||
| FaxExtensionNumber | ||||
| SalesOrderType | I_SalesDocumentBasic | SalesDocumentType | Sales Doc. Type | |
| OrganizationDivision | I_SalesDocumentBasic | OrganizationDivision | Org. Division | |
| SalesOrganization | I_SalesDocumentBasic | SalesOrganization | Sales Organization | |
| DistributionChannel | I_SalesDocumentBasic | DistributionChannel | RefDistCh-Cust/Mat. | |
| _SalesOrder | _SalesOrder | |||
| _Partner | _Partner |
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 A_SalesOrderPartnerAddress.
-- 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 A_SalesOrderPartnerAddress AS
SELECT
HeaderPartner.SDDocument AS SalesOrder,
HeaderPartner.PartnerFunction AS PartnerFunction,
Address.AddressRepresentationCode AS AddressRepresentationCode,
Address.CorrespondenceLanguage AS CorrespondenceLanguage,
Address.AddresseeFullName AS AddresseeFullName,
Address.OrganizationName1 AS OrganizationName1,
Address.OrganizationName2 AS OrganizationName2,
Address.OrganizationName3 AS OrganizationName3,
Address.OrganizationName4 AS OrganizationName4,
Address.CityName AS CityName,
Address.DistrictName AS DistrictName,
Address.PostalCode AS PostalCode,
Address.StreetPrefixName1 AS StreetPrefixName1,
Address.StreetPrefixName2 AS StreetPrefixName2,
Address.StreetName AS StreetName,
Address.StreetSuffixName1 AS StreetSuffixName1,
Address.StreetSuffixName2 AS StreetSuffixName2,
Address.HouseNumber AS HouseNumber,
Address.Country AS Country,
Address.Region AS Region,
Address.FormOfAddress AS FormOfAddress,
Address.TaxJurisdiction AS TaxJurisdiction,
Address.TransportZone AS TransportZone,
Address.POBox AS POBox,
Address.POBoxPostalCode AS POBoxPostalCode,
Address._CurrentDfltEmailAddress.EmailAddress AS EmailAddress,
Address._CurrentDfltMobilePhoneNumber.PhoneNumberCountry AS MobilePhoneCountry,
Address._CurrentDfltMobilePhoneNumber.PhoneAreaCodeSubscriberNumber AS MobileNumber,
Address._CurrentDfltLandlinePhoneNmbr.PhoneNumberCountry AS PhoneNumberCountry,
Address._CurrentDfltLandlinePhoneNmbr.PhoneAreaCodeSubscriberNumber AS PhoneNumber,
Address._CurrentDfltLandlinePhoneNmbr.PhoneExtensionNumber AS PhoneExtensionNumber,
Address._CurrentDfltFaxNumber.FaxNumberCountry AS FaxNumberCountry,
Address._CurrentDfltFaxNumber.FaxAreaCodeSubscriberNumber AS FaxAreaCodeSubscriberNumber,
Address._CurrentDfltFaxNumber.FaxExtensionNumber AS FaxExtensionNumber,
SalesDocument.SalesDocumentType AS SalesOrderType,
SalesDocument.OrganizationDivision AS OrganizationDivision,
SalesDocument.SalesOrganization AS SalesOrganization,
SalesDocument.DistributionChannel AS DistributionChannel
FROM I_SDDocumentPartner AS HeaderPartner
INNER JOIN I_Address_2 AS Address ON /* join condition not captured in parsed metadata */
INNER JOIN I_SalesDocumentBasic AS SalesDocument ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN A_SalesOrder AS _SalesOrder ON SalesOrder = _SalesOrder.SalesOrder -- association [1..1]
LEFT OUTER JOIN A_SalesOrderHeaderPartner AS _Partner ON SalesOrder = _Partner.SalesOrder AND PartnerFunction = _Partner.PartnerFunction -- association [1..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