I_AddrOrgNamePostalAddress
Postal Address and Organization Name
I_AddrOrgNamePostalAddress (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
Cross Applications
I_AddrOrgNamePostalAddress is a Basic CDS View (Dimension) that provides data about "Postal Address and Organization Name" in SAP S/4HANA. It reads from 1 data source (adrc) and exposes 65 fields with key fields AddressID, AddressRepresentationCode. It has 5 associations to related views. Part of development package S_ADDRESS_VDM.
SAP Help Documentation
| Category | CDS Views for Business Address Services |
|---|---|
| Status | City File Test Status |
This CDS view returns the name and postal address of an organization. This CDS view provides the data to answer the following business questions: What is the name of the organization? What is the postal address of the organization? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view need to access it via another CDS view (privileged mode).
Structure
Important Fields Important fields in this view include the following: Field Name Description AddressID Address Number AddressRepresentationCode Version ID for International Addresses AddressIsPersonAddress Flag: This is a personal address CorrespondenceLanguage Language Key PrfrdCommMediumType Communication Method CityNumber City code for city/street file CityName City DistrictName District VillageName City (different from postal city) PostalCode City Postal Code CompanyPostalCode Company Postal Code POBox Post Office (PO) Box POBoxAddrNonDeliverableReason PO Box Address Undeliverable Flag POBoxIsWithoutNumber Flag: PO Box Without Number POBoxPostalCode PO Box Postal Code POBoxLobbyName PO Box Lobby POBoxDeviatingCityName PO Box City POBoxDeviatingCityCode City PO Box Code (City file) POBoxDeviatingRegion Region for PO Box (Country/Region, State, Province, and so on) POBoxDeviatingCountry PO Box of Country/Region Street Street Number for City/Street File StreetName Street StreetAddrNonDeliverableReason Street Address Undeliverable Flag StreetPrefixName1 Street 2 StreetPrefixName2 Street 3 StreetSuffixName1 Street 4 StreetSuffixName2 Street 5 HouseNumber House Number HouseNumberSupplementText House Number Supplement Building Building Code Floor Floor in Building RoomNumber Room or Apartment Number Country Country/Region Key Region Region (State, Province, County) CareOfName Care of (c/o) Name FormOfAddress Form-of-Address Key AddresseeName1 Name 1 AddresseeName2 Name 2 AddresseeName3 Name 3 AddresseeName4 Name 4 TaxJurisdiction Tax Jurisdiction TransportZone Transportation zone to or from which the goods are delivered DeliveryServiceTypeCode Delivery Service Type DeliveryServiceNumber Delivery Service Number AddressTimeZone Address Time Zone SecondaryRegion County Code SecondaryRegionName County TertiaryRegion Township Code TertiaryRegionName Township AddressSearchTerm1 Search Term 1 AddressSearchTerm2 Search Term 2 RegionalStructureCheckStatus City File Test Status AddressGroup Address Group Key DistrictNumber District Code for City and Street file Village Code for Different City for City/Street file RegionalStructureGroup Regional Structure Grouping AddressCreatedByUser Created By User AddressCreatedOnDateTime Created On Date and Time AddressChangedByUser Last Changed By User AddressChangedOnDateTime Last Changed On Date and Time
SAP API Hub
| Category | Basic |
|---|---|
| State | C1 |
| Line of Business | Cross Applications |
| Application Component | BC-SRV-ADR |
| Capabilities | Data Source for Data Extraction,Association Target for Defining CDS Entities,Data Source in SQL Select,Data Source for Defining CDS Entities |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Released |
| Package | Cross Applications for SAP S/4HANA Cloud Public Edition |
| Description | <p>This CDS view returns the name and postal address of an organization. </p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>What is the name of the organization?</p></li> <li><p>What is the postal address of the organization?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| adrc | adrc | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Region | _Region | $projection.Region = _Region.Region and $projection.Country = _Region.Country |
| [0..1] | I_Country | _Country | $projection.Country = _Country.Country |
| [0..1] | I_FormOfAddress | _FormOfAddress | $projection.FormOfAddress = _FormOfAddress.FormOfAddress |
| [0..1] | I_TransportationZone | _TransportationZone | $projection.TransportZone = _TransportationZone.TransportZone and $projection.Country = _TransportationZone.CountryCode |
| [0..1] | I_AddressRepresentation | _AddressRepresentationCode | $projection.AddressRepresentationCode = _AddressRepresentationCode.AddressRepresentationCode |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| EndUserText.label | Postal Address and Organization Name | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Analytics.dataExtraction.delta.changeDataCapture.automatic | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.representativeKey | AddressID | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view |
Fields (65)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AddressID | addrnumber | Address Number | |
| KEY | AddressRepresentationCode | nation | Version ID for International Addresses | |
| AddressIsPersonAddress | pers_addr | Flag: This is a personal address | ||
| CorrespondenceLanguage | langu | Primary lang. | ||
| PrfrdCommMediumType | deflt_comm | Communication Method (Key) (Business Address Services) | ||
| CityNumber | city_code | City code for city/street file | ||
| CityName | city1 | City | ||
| DistrictName | city2 | District | ||
| VillageName | home_city | City (different from postal city) | ||
| PostalCode | post_code1 | City Postal Code | ||
| CompanyPostalCode | post_code3 | Company Postal Code (for Large Customers) | ||
| POBox | po_box | PO Box | ||
| POBoxAddrNonDeliverableReason | dont_use_p | PO Box Address Non-Deliverable Reason | ||
| POBoxIsWithoutNumber | po_box_num | Flag: PO Box Without Number | ||
| POBoxPostalCode | post_code2 | PO Box Postal Code | ||
| POBoxLobbyName | po_box_lobby | PO Box Lobby | ||
| POBoxDeviatingCityName | po_box_loc | PO Box City | ||
| POBoxDeviatingCityCode | city_code2 | City PO box code (City file) | ||
| POBoxDeviatingRegion | po_box_reg | Region for PO Box (Country/Region, State, Province, ...) | ||
| POBoxDeviatingCountry | po_box_cty | PO Box of Country/Region | ||
| Street | streetcode | Street Number for City/Street File | ||
| StreetName | street | Street Code | ||
| StreetAddrNonDeliverableReason | dont_use_s | Street Address Non-Deliverable Reason | ||
| StreetPrefixName1 | str_suppl1 | Street 2 | ||
| StreetPrefixName2 | str_suppl2 | Street 3 | ||
| StreetSuffixName1 | str_suppl3 | Street 4 | ||
| StreetSuffixName2 | location | Street 5 | ||
| HouseNumber | house_num1 | House Number | ||
| HouseNumberSupplementText | house_num2 | House number supplement | ||
| Building | building | Building (Number or Code) | ||
| Floor | floor | Floor in Building | ||
| RoomNumber | roomnumber | Room or Apartment Number | ||
| Country | country | Country/Region Key | ||
| Region | region | Region (State, Province, County) | ||
| CareOfName | name_co | c/o name | ||
| FormOfAddress | title | Form-of-Address Key | ||
| AddresseeName1 | name1 | PA text | ||
| AddresseeName2 | name2 | Name2/First nme | ||
| AddresseeName3 | name3 | Name 3 | ||
| AddresseeName4 | name4 | Name 4 | ||
| TaxJurisdiction | taxjurcode | Tax Jurisdiction | ||
| TransportZone | transpzone | Transportation zone to or from which the goods are delivered | ||
| DeliveryServiceTypeCode | deli_serv_type | Type of Delivery Service | ||
| DeliveryServiceNumber | deli_serv_number | Number of Delivery Service | ||
| AddressTimeZone | time_zone | Address Time Zone | ||
| SecondaryRegion | county_code | County code for county | ||
| SecondaryRegionName | county | Wyoming County | ||
| TertiaryRegion | township_code | Township code for Township | ||
| TertiaryRegionName | township | Township | ||
| AddressSearchTerm1 | sort1 | Sort string 1 | ||
| AddressSearchTerm2 | sort2 | Sort string 2 | ||
| RegionalStructureCheckStatus | chckstatus | City File Test Status | ||
| AddressGroup | addr_group | Address Group (Key) (Business Address Services) | ||
| DistrictNumber | cityp_code | District code for City and Street file | ||
| Village | cityh_code | Different city for city/street file | ||
| RegionalStructureGroup | regiogroup | Regional structure grouping | ||
| AddressCreatedByUser | addresscreatedbyuser | Created By User | ||
| AddressCreatedOnDateTime | addresscreatedondatetime | Creation Date Time | ||
| AddressChangedByUser | addresschangedbyuser | Last Changed By User | ||
| AddressChangedOnDateTime | addresschangedondatetime | Last Change Date Time | ||
| _Region | _Region | |||
| _Country | _Country | |||
| _FormOfAddress | _FormOfAddress | |||
| _TransportationZone | _TransportationZone | |||
| _AddressRepresentationCode | _AddressRepresentationCode |
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 I_AddrOrgNamePostalAddress.
-- 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 I_AddrOrgNamePostalAddress AS
SELECT
addrnumber AS AddressID,
nation AS AddressRepresentationCode,
pers_addr AS AddressIsPersonAddress,
langu AS CorrespondenceLanguage,
deflt_comm AS PrfrdCommMediumType,
city_code AS CityNumber,
city1 AS CityName,
city2 AS DistrictName,
home_city AS VillageName,
post_code1 AS PostalCode,
post_code3 AS CompanyPostalCode,
po_box AS POBox,
dont_use_p AS POBoxAddrNonDeliverableReason,
po_box_num AS POBoxIsWithoutNumber,
post_code2 AS POBoxPostalCode,
po_box_lobby AS POBoxLobbyName,
po_box_loc AS POBoxDeviatingCityName,
city_code2 AS POBoxDeviatingCityCode,
po_box_reg AS POBoxDeviatingRegion,
po_box_cty AS POBoxDeviatingCountry,
streetcode AS Street,
street AS StreetName,
dont_use_s AS StreetAddrNonDeliverableReason,
str_suppl1 AS StreetPrefixName1,
str_suppl2 AS StreetPrefixName2,
str_suppl3 AS StreetSuffixName1,
location AS StreetSuffixName2,
house_num1 AS HouseNumber,
house_num2 AS HouseNumberSupplementText,
Building,
Floor,
RoomNumber,
Country,
Region,
name_co AS CareOfName,
title AS FormOfAddress,
name1 AS AddresseeName1,
name2 AS AddresseeName2,
name3 AS AddresseeName3,
name4 AS AddresseeName4,
taxjurcode AS TaxJurisdiction,
transpzone AS TransportZone,
deli_serv_type AS DeliveryServiceTypeCode,
deli_serv_number AS DeliveryServiceNumber,
time_zone AS AddressTimeZone,
county_code AS SecondaryRegion,
county AS SecondaryRegionName,
township_code AS TertiaryRegion,
township AS TertiaryRegionName,
sort1 AS AddressSearchTerm1,
sort2 AS AddressSearchTerm2,
chckstatus AS RegionalStructureCheckStatus,
addr_group AS AddressGroup,
cityp_code AS DistrictNumber,
cityh_code AS Village,
regiogroup AS RegionalStructureGroup,
AddressCreatedByUser,
AddressCreatedOnDateTime,
AddressChangedByUser,
AddressChangedOnDateTime
FROM adrc
LEFT OUTER JOIN I_Region AS _Region ON Region = _Region.Region AND Country = _Region.Country -- association [0..1]
LEFT OUTER JOIN I_Country AS _Country ON Country = _Country.Country -- association [0..1]
LEFT OUTER JOIN I_FormOfAddress AS _FormOfAddress ON FormOfAddress = _FormOfAddress.FormOfAddress -- association [0..1]
LEFT OUTER JOIN I_TransportationZone AS _TransportationZone ON TransportZone = _TransportationZone.TransportZone AND Country = _TransportationZone.CountryCode -- association [0..1]
LEFT OUTER JOIN I_AddressRepresentation AS _AddressRepresentationCode ON AddressRepresentationCode = _AddressRepresentationCode.AddressRepresentationCode -- 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