I_ADDRORGNAMEPOSTALADDRESS

CDS View

Postal Address and Organization Name

I_ADDRORGNAMEPOSTALADDRESS is a CDS View in S/4HANA. Postal Address and Organization Name. It contains 57 fields. 8 CDS views read from this table.

CDS Views using this table (8)

ViewTypeJoinVDMDescription
CRMS4_IU_C_PRMFTS view inner Premise by free text
I_AddressPostalAddress view_entity from BASIC Postal Address
I_BankOrganizationAddress view_entity from Address of an Organization used for Bank
I_OrganizationAddress view_entity from BASIC Address of an Organization
I_OrgNamePostlAddrDfltRprstn view_entity from COMPOSITE Dflt Addr Rprstn for Org and Postal
P_EWM_Address view_entity from COMPOSITE
R_AddrAddlRepresentationTP view_entity from Additional Representation - TP
R_OrganizationAddressTP view_entity from Organization Address - TP

Fields (57)

KeyField CDS FieldsUsed in Views
KEY AddressID AddressID 1
_Country _Country 2
_FormOfAddress _FormOfAddress 1
_Region _Region 2
_TransportationZone _TransportationZone 1
AddresseeName1 AddresseeName1 1
AddresseeName2 AddresseeName2 1
AddresseeName3 AddresseeName3 1
AddresseeName4 AddresseeName4 1
AddressGroup AddressGroup 1
AddressIsPersonAddress AddressIsPersonAddress 1
AddressRepresentationCode AddressRepresentationCode 1
AddressSearchTerm1 AddressSearchTerm1 1
AddressSearchTerm2 AddressSearchTerm2 1
AddressTimeZone AddressTimeZone 1
Building Building 1
CareOfName CareOfName 1
CityName CityName 2
CityNumber CityNumber 1
CompanyPostalCode CompanyPostalCode 1
CorrespondenceLanguage CorrespondenceLanguage 1
Country Country 2
DeliveryServiceNumber DeliveryServiceNumber 1
DeliveryServiceTypeCode DeliveryServiceTypeCode 1
DistrictName DistrictName 1
Floor Floor 1
FormOfAddress FormOfAddress 1
HouseNumber HouseNumber 2
HouseNumberSupplementText HouseNumberSupplementText 1
POBox POBox 1
POBoxAddrNonDeliverableReason POBoxAddrNonDeliverableReason 1
POBoxDeviatingCityCode POBoxDeviatingCityCode 1
POBoxDeviatingCityName POBoxDeviatingCityName 1
POBoxDeviatingCountry POBoxDeviatingCountry 1
POBoxDeviatingRegion POBoxDeviatingRegion 1
POBoxIsWithoutNumber POBoxIsWithoutNumber 1
POBoxLobbyName POBoxLobbyName 1
POBoxPostalCode POBoxPostalCode 1
PostalCode PostalCode 2
PrfrdCommMediumType PrfrdCommMediumType 1
Region Region 2
RegionalStructureCheckStatus RegionalStructureCheckStatus 1
RoomNumber RoomNumber 1
SecondaryRegion SecondaryRegion 1
SecondaryRegionName SecondaryRegionName 1
Street Street 1
StreetAddrNonDeliverableReason StreetAddrNonDeliverableReason 1
StreetName StreetName 2
StreetPrefixName1 StreetPrefixName1 1
StreetPrefixName2 StreetPrefixName2 1
StreetSuffixName1 StreetSuffixName1 1
StreetSuffixName2 StreetSuffixName2 1
TaxJurisdiction TaxJurisdiction 1
TertiaryRegion TertiaryRegion 1
TertiaryRegionName TertiaryRegionName 1
TransportZone TransportZone 1
VillageName VillageName 1
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
@EndUserText.label: 'Postal Address and Organization Name'
//@Metadata.allowExtensions: true

@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.supportedCapabilities: [#CDS_MODELING_ASSOCIATION_TARGET, #CDS_MODELING_DATA_SOURCE, #SQL_DATA_SOURCE]
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.representativeKey: 'AddressID'
@VDM: {
  viewType: #BASIC,
  lifecycle.contract.type: #PUBLIC_LOCAL_API
}

define view entity I_AddrOrgNamePostalAddress
  as select from adrc
  association [0..1] to I_Region                as _Region                    on  $projection.Region  = _Region.Region
                                                                              and $projection.Country = _Region.Country

  association [0..1] to I_Country               as _Country                   on  $projection.Country = _Country.Country

  association [0..1] to I_FormOfAddress         as _FormOfAddress             on  $projection.FormOfAddress = _FormOfAddress.FormOfAddress

  association [0..1] to I_TransportationZone    as _TransportationZone        on  $projection.TransportZone = _TransportationZone.TransportZone
                                                                              and $projection.Country       = _TransportationZone.CountryCode

  association [0..1] to I_AddressRepresentation as _AddressRepresentationCode on  $projection.AddressRepresentationCode = _AddressRepresentationCode.AddressRepresentationCode

{
  key addrnumber               as AddressID,
      @ObjectModel.foreignKey.association: '_AddressRepresentationCode'
  key 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,
      @EndUserText.label: 'PO Box Address Non-Deliverable Reason'
      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,
      @EndUserText.label: 'Street Address Non-Deliverable Reason'
      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                 as Building,
      floor                    as Floor,
      roomnumber               as RoomNumber,
      @ObjectModel.foreignKey.association: '_Country'
      country                  as Country,
      @ObjectModel.foreignKey.association: '_Region'
      region                   as Region,
      name_co                  as CareOfName,
      @ObjectModel.foreignKey.association: '_FormOfAddress'
      title                    as FormOfAddress,
      name1                    as AddresseeName1,
      name2                    as AddresseeName2,
      name3                    as AddresseeName3,
      name4                    as AddresseeName4,
      taxjurcode               as TaxJurisdiction,
      @ObjectModel.foreignKey.association: '_TransportationZone'
      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,
      @Semantics.user.createdBy: true
      addresscreatedbyuser     as AddressCreatedByUser,
      @Semantics.systemDateTime.createdAt: true
      addresscreatedondatetime as AddressCreatedOnDateTime,
      @Semantics.user.lastChangedBy: true
      addresschangedbyuser     as AddressChangedByUser,
      @Semantics.systemDateTime.lastChangedAt: true
      addresschangedondatetime as AddressChangedOnDateTime,
      _Region,
      _Country,
      _FormOfAddress,
      _TransportationZone,
      _AddressRepresentationCode
}
where
  date_from = '00010101'