I_AddressPostalAddress

DDL: I_ADDRESSPOSTALADDRESS Type: view_entity BASIC

Postal Address

I_AddressPostalAddress is a Basic CDS View that provides data about "Postal Address" in SAP S/4HANA. It reads from 1 data source (I_AddrOrgNamePostalAddress) and exposes 63 fields with key fields AddressID, AddressRepresentationCode. It has 17 associations to related views.

SAP Help Documentation

CategoryCDS Views for Business Address Services
Purpose
This CDS view returns the postal address for a person/organization. This CDS view provides the data to answer the following business questions: 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 .

Structure
Object Type The parameters of the CDS view are as follows: I_AddressPostalAddress

View on SAP Help Portal →

Data Sources (1)

SourceAliasJoin Type
I_AddrOrgNamePostalAddress I_AddrOrgNamePostalAddress from

Associations (17)

CardinalityTargetAliasCondition
[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_AddressNonDeliverableReason _POBoxAddrNonDeliverableReason $projection.POBoxAddrNonDeliverableReason = _POBoxAddrNonDeliverableReason.AddressNonDeliverableReason
[0..1] I_AddressNonDeliverableReason _StreetAddrNonDeliverableRsn $projection.StreetAddrNonDeliverableReason = _StreetAddrNonDeliverableRsn.AddressNonDeliverableReason
[0..1] I_TransportationZone _TransportationZone $projection.TransportZone = _TransportationZone.TransportZone and $projection.Country = _TransportationZone.CountryCode
[0..1] I_Region _POBoxDeviatingRegion $projection.POBoxDeviatingRegion = _POBoxDeviatingRegion.Region and $projection.POBoxDeviatingCountry = _POBoxDeviatingRegion.Country
[0..1] I_Country _POBoxDeviatingCountry $projection.POBoxDeviatingCountry = _POBoxDeviatingCountry.Country
[0..1] I_AddressCommunicationMethod _PrfrdCommMediumType $projection.PrfrdCommMediumType = _PrfrdCommMediumType.CommunicationMediumType
[0..1] I_AddressDeliveryServiceType _DeliveryServiceTypeCode $projection.DeliveryServiceTypeCode = _DeliveryServiceTypeCode.DeliveryServiceTypeCode
[0..1] I_Language _CorrespondenceLanguage $projection.CorrespondenceLanguage = _CorrespondenceLanguage.Language
[0..1] I_AddressRepresentation _AddressRepresentationCode $projection.AddressRepresentationCode = _AddressRepresentationCode.AddressRepresentationCode
[0..1] I_TimeZone _TimeZone $projection.AddressTimeZone = _TimeZone.TimeZoneID
[0..1] I_SecondaryRegion _SecondaryRegion $projection.SecondaryRegion = _SecondaryRegion.SecondaryRegion and $projection.Country = _SecondaryRegion.Country and $projection.Region = _SecondaryRegion.Region
[0..1] I_TertiaryRegion _TertiaryRegion $projection.TertiaryRegion = _TertiaryRegion.TertiaryRegion and $projection.SecondaryRegion = _TertiaryRegion.SecondaryRegion and $projection.Country = _TertiaryRegion.Country and $projection.Region = _TertiaryRegion.Region
[0..1] I_PostalCity _PostalCity $projection.CityNumber = _PostalCity.CityNumber and $projection.Country = _PostalCity.Country
[0..1] I_RegionalStructureCheckStatus _RegionalStructureCheckStatus $projection.RegionalStructureCheckStatus = _RegionalStructureCheckStatus.RegionalStructureCheckStatus
[0..1] I_Street _Street $projection.Country = _Street.Country and $projection.Street = _Street.Street

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Postal Address view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.representativeKey AddressID view
Analytics.technicalName IADPOSTALADDRESS view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #BASIC view

Fields (63)

KeyFieldSource TableSource FieldDescription
KEY AddressID AddressID Ship-to address
KEY AddressRepresentationCode AddressRepresentationCode Address Version
AddressIsPersonAddress AddressIsPersonAddress pers. address
CorrespondenceLanguage CorrespondenceLanguage Language
PrfrdCommMediumType PrfrdCommMediumType Comm. Method
CityNumber CityNumber City Code
CityName CityName Name
DistrictName DistrictName District
VillageName VillageName Different City
PostalCode PostalCode Postal Code
CompanyPostalCode CompanyPostalCode Company Post Cd
POBox POBox PO Box
POBoxAddrNonDeliverableReason POBoxAddrNonDeliverableReason Undeliverable
POBoxIsWithoutNumber POBoxIsWithoutNumber PO Box w/o No.
POBoxPostalCode POBoxPostalCode PO Box Postal Code
POBoxLobbyName POBoxLobbyName PO Box Lobby
POBoxDeviatingCityName POBoxDeviatingCityName PO Box City
POBoxDeviatingRegion POBoxDeviatingRegion PO Region
POBoxDeviatingCountry POBoxDeviatingCountry PO Box C/R
Street Street Street Code
StreetName StreetName Text
StreetAddrNonDeliverableReason StreetAddrNonDeliverableReason Undeliverable
StreetPrefixName1 StreetPrefixName1 Street 2
StreetPrefixName2 StreetPrefixName2 Street 3
StreetSuffixName1 StreetSuffixName1 Street 4
StreetSuffixName2 StreetSuffixName2 Street 5
HouseNumber HouseNumber House Number
HouseNumberSupplementText HouseNumberSupplementText Supplement
Building Building Building code
Floor Floor Floor
RoomNumber RoomNumber Room Number
Country Country Venue: Ctry/Reg
Region Region Venue Region
CareOfName CareOfName c/o
TaxJurisdiction TaxJurisdiction Tax Jurisdiction
TransportZone TransportZone Transport Zone
DeliveryServiceTypeCode DeliveryServiceTypeCode Delvry Serv Type
DeliveryServiceNumber DeliveryServiceNumber Delivery Service No.
AddressTimeZone AddressTimeZone Time Zone
SecondaryRegion SecondaryRegion County code
SecondaryRegionName SecondaryRegionName County
TertiaryRegion TertiaryRegion Township code
TertiaryRegionName TertiaryRegionName Township
AddressSearchTerm1 AddressSearchTerm1 Search Term 1
AddressSearchTerm2 AddressSearchTerm2 Search Term 2
RegionalStructureCheckStatus RegionalStructureCheckStatus Check Status
_Region _Region
_Country _Country
_StreetAddrNonDeliverableRsn _StreetAddrNonDeliverableRsn
_POBoxAddrNonDeliverableReason _POBoxAddrNonDeliverableReason
_TransportationZone _TransportationZone
_POBoxDeviatingRegion _POBoxDeviatingRegion
_POBoxDeviatingCountry _POBoxDeviatingCountry
_PrfrdCommMediumType _PrfrdCommMediumType
_DeliveryServiceTypeCode _DeliveryServiceTypeCode
_CorrespondenceLanguage _CorrespondenceLanguage
_AddressRepresentationCode _AddressRepresentationCode
_TimeZone _TimeZone
_SecondaryRegion _SecondaryRegion
_TertiaryRegion _TertiaryRegion
_PostalCity _PostalCity
_RegionalStructureCheckStatus _RegionalStructureCheckStatus
_Street _Street

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_AddressPostalAddress.
-- 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_AddressPostalAddress AS
SELECT
  AddressID,
  AddressRepresentationCode,
  AddressIsPersonAddress,
  CorrespondenceLanguage,
  PrfrdCommMediumType,
  CityNumber,
  CityName,
  DistrictName,
  VillageName,
  PostalCode,
  CompanyPostalCode,
  POBox,
  POBoxAddrNonDeliverableReason,
  POBoxIsWithoutNumber,
  POBoxPostalCode,
  POBoxLobbyName,
  POBoxDeviatingCityName,
  POBoxDeviatingRegion,
  POBoxDeviatingCountry,
  Street,
  StreetName,
  StreetAddrNonDeliverableReason,
  StreetPrefixName1,
  StreetPrefixName2,
  StreetSuffixName1,
  StreetSuffixName2,
  HouseNumber,
  HouseNumberSupplementText,
  Building,
  Floor,
  RoomNumber,
  Country,
  Region,
  CareOfName,
  TaxJurisdiction,
  TransportZone,
  DeliveryServiceTypeCode,
  DeliveryServiceNumber,
  AddressTimeZone,
  SecondaryRegion,
  SecondaryRegionName,
  TertiaryRegion,
  TertiaryRegionName,
  AddressSearchTerm1,
  AddressSearchTerm2,
  RegionalStructureCheckStatus
FROM I_AddrOrgNamePostalAddress
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_AddressNonDeliverableReason AS _POBoxAddrNonDeliverableReason ON POBoxAddrNonDeliverableReason = _POBoxAddrNonDeliverableReason.AddressNonDeliverableReason  -- association [0..1]
LEFT OUTER JOIN I_AddressNonDeliverableReason AS _StreetAddrNonDeliverableRsn ON StreetAddrNonDeliverableReason = _StreetAddrNonDeliverableRsn.AddressNonDeliverableReason  -- 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_Region AS _POBoxDeviatingRegion ON POBoxDeviatingRegion = _POBoxDeviatingRegion.Region AND POBoxDeviatingCountry = _POBoxDeviatingRegion.Country  -- association [0..1]
LEFT OUTER JOIN I_Country AS _POBoxDeviatingCountry ON POBoxDeviatingCountry = _POBoxDeviatingCountry.Country  -- association [0..1]
LEFT OUTER JOIN I_AddressCommunicationMethod AS _PrfrdCommMediumType ON PrfrdCommMediumType = _PrfrdCommMediumType.CommunicationMediumType  -- association [0..1]
LEFT OUTER JOIN I_AddressDeliveryServiceType AS _DeliveryServiceTypeCode ON DeliveryServiceTypeCode = _DeliveryServiceTypeCode.DeliveryServiceTypeCode  -- association [0..1]
LEFT OUTER JOIN I_Language AS _CorrespondenceLanguage ON CorrespondenceLanguage = _CorrespondenceLanguage.Language  -- association [0..1]
LEFT OUTER JOIN I_AddressRepresentation AS _AddressRepresentationCode ON AddressRepresentationCode = _AddressRepresentationCode.AddressRepresentationCode  -- association [0..1]
LEFT OUTER JOIN I_TimeZone AS _TimeZone ON AddressTimeZone = _TimeZone.TimeZoneID  -- association [0..1]
LEFT OUTER JOIN I_SecondaryRegion AS _SecondaryRegion ON SecondaryRegion = _SecondaryRegion.SecondaryRegion AND Country = _SecondaryRegion.Country AND Region = _SecondaryRegion.Region  -- association [0..1]
LEFT OUTER JOIN I_TertiaryRegion AS _TertiaryRegion ON TertiaryRegion = _TertiaryRegion.TertiaryRegion AND SecondaryRegion = _TertiaryRegion.SecondaryRegion AND Country = _TertiaryRegion.Country AND Region = _TertiaryRegion.Region  -- association [0..1]
LEFT OUTER JOIN I_PostalCity AS _PostalCity ON CityNumber = _PostalCity.CityNumber AND Country = _PostalCity.Country  -- association [0..1]
LEFT OUTER JOIN I_RegionalStructureCheckStatus AS _RegionalStructureCheckStatus ON RegionalStructureCheckStatus = _RegionalStructureCheckStatus.RegionalStructureCheckStatus  -- association [0..1]
LEFT OUTER JOIN I_Street AS _Street ON Country = _Street.Country AND Street = _Street.Street  -- association [0..1]
;