A_SalesOrderItemPartnerAddress
Item Partner Address
A_SalesOrderItemPartnerAddress is a Composite CDS View that provides data about "Item Partner Address" in SAP S/4HANA. It reads from 3 data sources (I_Address_2, I_SDDocumentItemPartner, I_SalesDocumentItemBasic) and exposes 42 fields with key fields SalesOrder, SalesOrderItem, PartnerFunction, AddressRepresentationCode. It has 3 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_Address_2 | Address | inner |
| I_SDDocumentItemPartner | ItemPartner | from |
| I_SalesDocumentItemBasic | SalesDocumentItem | inner |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | A_SalesOrder | _SalesOrder | $projection.SalesOrder = _SalesOrder.SalesOrder |
| [1..1] | A_SalesOrderItem | _SalesOrderItem | $projection.SalesOrder = _SalesOrderItem.SalesOrder and $projection.SalesOrderItem = _SalesOrderItem.SalesOrderItem |
| [1..1] | A_SalesOrderItemPartner | _Partner | $projection.SalesOrder = _Partner.SalesOrder and $projection.SalesOrderItem = _Partner.SalesOrderItem and $projection.PartnerFunction = _Partner.PartnerFunction |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Item 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 (42)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesOrder | I_SDDocumentItemPartner | SDDocument | SD Document |
| KEY | SalesOrderItem | I_SDDocumentItemPartner | SDDocumentItem | |
| KEY | PartnerFunction | I_SDDocumentItemPartner | 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 | |
| StreetName | I_Address_2 | StreetName | Text | |
| StreetPrefixName1 | I_Address_2 | StreetPrefixName1 | Street Address Non-Deliverable Reason | |
| StreetPrefixName2 | I_Address_2 | StreetPrefixName2 | Street 3 | |
| 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_SalesDocumentItemBasic | SalesDocumentType | Sales Doc. Type | |
| OrganizationDivision | I_SalesDocumentItemBasic | OrganizationDivision | Org. Division | |
| SalesOrganization | I_SalesDocumentItemBasic | SalesOrganization | Sales Organization | |
| DistributionChannel | I_SalesDocumentItemBasic | DistributionChannel | RefDistCh-Cust/Mat. | |
| _SalesOrder | _SalesOrder | |||
| _SalesOrderItem | _SalesOrderItem | |||
| _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_SalesOrderItemPartnerAddress.
-- 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_SalesOrderItemPartnerAddress AS
SELECT
ItemPartner.SDDocument AS SalesOrder,
ItemPartner.SDDocumentItem AS SalesOrderItem,
ItemPartner.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.StreetName AS StreetName,
Address.StreetPrefixName1 AS StreetPrefixName1,
Address.StreetPrefixName2 AS StreetPrefixName2,
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,
SalesDocumentItem.SalesDocumentType AS SalesOrderType,
SalesDocumentItem.OrganizationDivision AS OrganizationDivision,
SalesDocumentItem.SalesOrganization AS SalesOrganization,
SalesDocumentItem.DistributionChannel AS DistributionChannel
FROM I_SDDocumentItemPartner AS ItemPartner
INNER JOIN I_Address_2 AS Address ON /* join condition not captured in parsed metadata */
INNER JOIN I_SalesDocumentItemBasic AS SalesDocumentItem 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_SalesOrderItem AS _SalesOrderItem ON SalesOrder = _SalesOrderItem.SalesOrder AND SalesOrderItem = _SalesOrderItem.SalesOrderItem -- association [1..1]
LEFT OUTER JOIN A_SalesOrderItemPartner AS _Partner ON SalesOrder = _Partner.SalesOrder AND SalesOrderItem = _Partner.SalesOrderItem 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