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 61 fields. 9 CDS views read from this table.

CDS Views using this table (9)

ViewTypeJoinVDMDescription
I_AddressPostalAddress view_entity from BASIC Postal Address
I_BankOrganizationAddress view_entity from COMPOSITE 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
I_PostalWorkplaceAddress view_entity union BASIC Person Address type from ADRC & ADCP
P_BillingAddrOrgNamePostalAddr view_entity from COMPOSITE Postal Address and Organization Name
P_EWM_Address view_entity from COMPOSITE Helper Reduced Organisation Address
R_AddrAddlRepresentationTP view_entity from Additional Representation - TP
R_OrganizationAddressTP view_entity from Organization Address - TP

Fields (61)

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

@Metadata.ignorePropagatedAnnotations: true
@Analytics:{
    dataCategory: #DIMENSION,
    dataExtraction: {
        enabled: true,
        delta.changeDataCapture.automatic: 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,
      cityp_code               as DistrictNumber,
      cityh_code               as Village,
      regiogroup               as RegionalStructureGroup,
      @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'