I_ScriptedAddress

DDL: I_SCRIPTEDADDRESS SQL: ISCRPTEDADDR Type: view BASIC Package: MDC_BUPA_BO

Interational Address Version

I_ScriptedAddress is a Basic CDS View that provides data about "Interational Address Version" in SAP S/4HANA. It reads from 3 data sources (adcp, adrc, adrp) and exposes 70 fields with key fields AddressNumber, AddressRepresentationCode. Part of development package MDC_BUPA_BO.

Data Sources (3)

SourceAliasJoin Type
adcp adcp left_outer
adrc adrc from
adrp adrp left_outer

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName ISCRPTEDADDR view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
VDM.viewType #BASIC view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.representativeKey AddressNumber view
Metadata.allowExtensions true view
EndUserText.label Interational Address Version view

Fields (70)

KeyFieldSource TableSource FieldDescription
KEY AddressNumber adrc addrnumber Address Number
KEY AddressRepresentationCode adrc nation Country/Region
CareOfName name_co c/o
AdditionalStreetSuffixName location Text
CorrespondenceLanguage adrc langu Primary lang.
PrfrdCommMediumType adrc deflt_comm Comm. Method
POBox po_box PO Box
POBoxIsWithoutNumber po_box_num PO Box w/o No.
POBoxPostalCode post_code2 PO Box Post Cde
POBoxLobbyName po_box_lobby PO Box Lobby
POBoxDeviatingCityName po_box_loc PO Box City
POBoxDeviatingRegion po_box_reg PO Region
POBoxDeviatingCountry po_box_cty PO Box C/R
DeliveryServiceTypeCode deli_serv_type Delvry Serv Type
DeliveryServiceNumber deli_serv_number Delivery Service No.
AddressTimeZone time_zone TimeZone
CityFileTestStatus adrc chckstatus Check Status
AddressNonDeliverableReason adrc dont_use_s Undeliverable
PostBoxNonDeliverableReason adrc dont_use_p Undeliverable
name2180asadfullnameasFullName
CityName city1 City
District city2 District
CityCode city_code Japan City Code
HomeCityName home_city Different City
PostalCode post_code1 Postal Code
CompanyPostalCode post_code3 Company Post Cd
StreetName street Street Code
StreetPrefixName str_suppl1 Street 2
AdditionalStreetPrefixName str_suppl2 Street 3
StreetSuffixName str_suppl3 Street 4
HouseNumber house_num1 House Number
HouseNumberSupplementText house_num2 Supplement
Building adrc building Building code
Floor adrc floor Floor
RoomNumber adrc roomnumber Room Number
Country country Venue: Ctry/Reg
Region region Venue Region
County county Wyoming County
CountyCode county_code County code
BusinessPartnerName1 name1 PA text
BusinessPartnerName2 adrc name2 Name2/First nme
BusinessPartnerName3 name3 Name 3
BusinessPartnerName4 name4 Name 4
PhoneNumber adrc tel_number Telephone
FaxNumber adrc fax_number Fax Number
StreetSearch mc_street Street
CitySearch mc_city1 City
TaxJurisdiction taxjurcode Tax Jurisdiction
TransportZone transpzone Transport Zone
AddressCityPostBoxCode city_code2 City Code
Person adcp persnumber Person Number
titleendasFormOfAddress
sort1endasSearchTerm1
sort2endasSearchTerm2
FirstName adrp name_first First Name
LastName adrp name_last Last Name
BusinessPartnerBirthName adrp name2 Name2/First nme
MiddleName adrp namemiddle Middle Name
AdditionalLastName adrp name_last2 Name at Birth
PersonFullName adrp name_text Full Name
AcademicTitle adrp title_aca1 Academic Title
AcademicTitle2 adrp title_aca2 2nd Academic
LastNamePrefix adrp prefix1 Prefix Key
LastNameSecondPrefix adrp prefix2 2nd prefix
BusinessPartnerNicknameLabel adrp nickname Nickname
Initials adrp initials Initials
NameFormat adrp nameformat Name Format
NameCountry adrp namcountry Country/Region
BPFirstNameSearchHelp adrp mc_namefir First Name
BPLastNameSearchHelp adrp mc_namelas Last Name

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_ScriptedAddress.
-- 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.
-- SQL view name: ISCRPTEDADDR

CREATE VIEW I_ScriptedAddress AS
SELECT
  adrc.addrnumber AS AddressNumber,
  adrc.nation AS AddressRepresentationCode,
  name_co AS CareOfName,
  location AS AdditionalStreetSuffixName,
  adrc.langu AS CorrespondenceLanguage,
  adrc.deflt_comm AS PrfrdCommMediumType,
  po_box AS POBox,
  po_box_num AS POBoxIsWithoutNumber,
  post_code2 AS POBoxPostalCode,
  po_box_lobby AS POBoxLobbyName,
  po_box_loc AS POBoxDeviatingCityName,
  po_box_reg AS POBoxDeviatingRegion,
  po_box_cty AS POBoxDeviatingCountry,
  deli_serv_type AS DeliveryServiceTypeCode,
  deli_serv_number AS DeliveryServiceNumber,
  time_zone AS AddressTimeZone,
  adrc.chckstatus AS CityFileTestStatus,
  adrc.dont_use_s AS AddressNonDeliverableReason,
  adrc.dont_use_p AS PostBoxNonDeliverableReason,
  cast(substring(replace(concat(name1, concat(' &', adrc.name2)), '&', ''),1,80) as adfullname ) as FullName AS name2180asadfullnameasFullName,
  city1 AS CityName,
  city2 AS District,
  city_code AS CityCode,
  home_city AS HomeCityName,
  post_code1 AS PostalCode,
  post_code3 AS CompanyPostalCode,
  street AS StreetName,
  str_suppl1 AS StreetPrefixName,
  str_suppl2 AS AdditionalStreetPrefixName,
  str_suppl3 AS StreetSuffixName,
  house_num1 AS HouseNumber,
  house_num2 AS HouseNumberSupplementText,
  adrc.building AS Building,
  adrc.floor AS Floor,
  adrc.roomnumber AS RoomNumber,
  Country,
  Region,
  County,
  county_code AS CountyCode,
  name1 AS BusinessPartnerName1,
  adrc.name2 AS BusinessPartnerName2,
  name3 AS BusinessPartnerName3,
  name4 AS BusinessPartnerName4,
  adrc.tel_number AS PhoneNumber,
  adrc.fax_number AS FaxNumber,
  mc_street AS StreetSearch,
  mc_city1 AS CitySearch,
  taxjurcode AS TaxJurisdiction,
  transpzone AS TransportZone,
  city_code2 AS AddressCityPostBoxCode,
  adcp.persnumber AS Person,
  case when adcp.persnumber is null then adrc.title else adrp.title end as FormOfAddress AS titleendasFormOfAddress,
  case when adcp.persnumber is null then adrc.sort1 else adrp.sort1 end as SearchTerm1 AS sort1endasSearchTerm1,
  case when adcp.persnumber is null then adrc.sort2 else adrp.sort2 end as SearchTerm2 AS sort2endasSearchTerm2,
  adrp.name_first AS FirstName,
  adrp.name_last AS LastName,
  adrp.name2 AS BusinessPartnerBirthName,
  adrp.namemiddle AS MiddleName,
  adrp.name_last2 AS AdditionalLastName,
  adrp.name_text AS PersonFullName,
  adrp.title_aca1 AS AcademicTitle,
  adrp.title_aca2 AS AcademicTitle2,
  adrp.prefix1 AS LastNamePrefix,
  adrp.prefix2 AS LastNameSecondPrefix,
  adrp.nickname AS BusinessPartnerNicknameLabel,
  adrp.initials AS Initials,
  adrp.nameformat AS NameFormat,
  adrp.namcountry AS NameCountry,
  adrp.mc_namefir AS BPFirstNameSearchHelp,
  adrp.mc_namelas AS BPLastNameSearchHelp
FROM adrc
LEFT OUTER JOIN adcp ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN adrp ON /* join condition not captured in parsed metadata */
;