I_InvgCsMAddress

DDL: I_INVGCSMADDRESS SQL: IINVGCSADD Type: view BASIC

ICM Address

I_InvgCsMAddress is a Basic CDS View that provides data about "ICM Address" in SAP S/4HANA. It reads from 1 data source (adrc) and exposes 82 fields with key fields AddressID, InvgCsMAddrValidFromDate, Nation. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
adrc adrc from

Associations (4)

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_CityCode _CityCode $projection.Country = _CityCode.Country and $projection.Region = _CityCode.Region and $projection.CityCode = _CityCode.CityCode
[0..*] I_SecondaryRegion _CountyCode $projection.Country = _CountyCode.Country and $projection.Region = _CountyCode.Region

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IINVGCSADD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #BASIC view
EndUserText.label ICM Address view

Fields (82)

KeyFieldSource TableSource FieldDescription
KEY AddressID addrnumber Address Number
KEY InvgCsMAddrValidFromDate Validity Start Date
KEY Nation nation Country/Region
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
CorrespondenceLanguage langu Primary lang.
PrfrdCommMediumType deflt_comm Comm. Method
PostalCode post_code1 Postal Code
CompanyPostalCode post_code3 Company Post Cd
StreetName street Street Code
HouseNumber house_num1 House Number
HouseNumberSupplementText house_num2 Supplement
Building building Building code
Floor floor Floor
RoomNumber roomnumber Room Number
FormOfAddress title View Title
Country country Venue: Ctry/Reg
Region region Venue Region
TaxJurisdiction taxjurcode Tax Jurisdiction
TransportZone transpzone Transport Zone
FullName
CityName city1 City
AdditionalStreetSuffixName location Text
CityFileTestStatus chckstatus Check Status
AddressStreetUnusable dont_use_s Undeliverable
AddressPostBoxUnusable dont_use_p Undeliverable
DistrictName city2 District
District city2 District
CityNumber city_code Japan City Code
CityCode city_code Japan City Code
HomeCityName home_city Different City
StreetPrefixName str_suppl1 Street 2
AdditionalStreetPrefixName str_suppl2 Street 3
StreetSuffixName str_suppl3 Street 4
SecondaryRegionName county Wyoming County
County county Wyoming County
CountyCode county_code County code
TownshipCode township_code Township code
TownshipName township Township
BusinessPartnerName1 name1 PA text
BusinessPartnerName2 name2 Name2/First nme
SearchTerm1 sort1 Sort string 1
SearchTerm2 sort2 Sort string 2
StreetSearch mc_street Street
CitySearch mc_city1 City
BusinessPartnerName3 name3 Name 3
BusinessPartnerName4 name4 Name 4
AddressCityPostBoxCode city_code2 City Code
InvgCsMAddrHouseNumberRange house_num3 Number Range
InvgCsMAddrDistrictCode cityp_code District Code
InvgCsMAddrDiffntCityName cityh_code City Code
InvgCsMAddrValidToDate date_to Validity End Date
InvgCsMAddrNameText name_text Full Name
InvgCsMAddrNameCareOfText c/o
InvgCsMAddrRegionGroup regiogroup Structure Group
InvgCsMAddrPostlCodeExtn pcode1_ext Postal Code Ext
InvgCsMAddrPOBoxCodeExtn pcode2_ext Postal Code Ext
InvgCsMAddrCustPostCodeExtn pcode3_ext Postal Code Ext
InvgCsMAddrPostDelivDstrctCode postalarea Delivery Dist.
InvgCsMAddrStCode streetcode Street Code
InvgCsMAddrStAbbrCode streetabbr Street Abbrev.
InvgCsMAddrSortPhone sort_phn Phonet. Sort.
InvgCsMAddrOrigin addrorigin Address Source
InvgCsMAddrExtn1Text extension1 Extension Field 1
InvgCsMAddrExtn2Text extension2 Telebox
InvgCsMAddressID address_id Address ID
InvgCsMAddrRecdLangCrtnCode langu_crea Creation lang.
InvgCsMAddrBizPrpsIsCmpltd xpcpt PurposeComplete Flag
InvgCsMAddrRemarkText _AddressText InvgCsMAddrRemarkText
_AddressText _AddressText
_Region _Region
_Country _Country
_CityCode _CityCode
_CountyCode _CountyCode

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_InvgCsMAddress.
-- 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: IINVGCSADD

CREATE VIEW I_InvgCsMAddress AS
SELECT
  addrnumber AS AddressID,
  cast( date_from as crms4_icm_ad_date_fr ) AS InvgCsMAddrValidFromDate,
  Nation,
  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,
  langu AS CorrespondenceLanguage,
  deflt_comm AS PrfrdCommMediumType,
  post_code1 AS PostalCode,
  post_code3 AS CompanyPostalCode,
  street AS StreetName,
  house_num1 AS HouseNumber,
  house_num2 AS HouseNumberSupplementText,
  Building,
  Floor,
  RoomNumber,
  title AS FormOfAddress,
  Country,
  Region,
  taxjurcode AS TaxJurisdiction,
  transpzone AS TransportZone,
  cast(substring(replace(concat(name1, concat(' &', name2)), '&', ''),1,80) as adfullname ) AS FullName,
  city1 AS CityName,
  location AS AdditionalStreetSuffixName,
  chckstatus AS CityFileTestStatus,
  dont_use_s AS AddressStreetUnusable,
  dont_use_p AS AddressPostBoxUnusable,
  city2 AS DistrictName,
  city2 AS District,
  city_code AS CityNumber,
  city_code AS CityCode,
  home_city AS HomeCityName,
  str_suppl1 AS StreetPrefixName,
  str_suppl2 AS AdditionalStreetPrefixName,
  str_suppl3 AS StreetSuffixName,
  county AS SecondaryRegionName,
  County,
  county_code AS CountyCode,
  township_code AS TownshipCode,
  township AS TownshipName,
  name1 AS BusinessPartnerName1,
  name2 AS BusinessPartnerName2,
  sort1 AS SearchTerm1,
  sort2 AS SearchTerm2,
  mc_street AS StreetSearch,
  mc_city1 AS CitySearch,
  name3 AS BusinessPartnerName3,
  name4 AS BusinessPartnerName4,
  city_code2 AS AddressCityPostBoxCode,
  house_num3 AS InvgCsMAddrHouseNumberRange,
  cityp_code AS InvgCsMAddrDistrictCode,
  cityh_code AS InvgCsMAddrDiffntCityName,
  date_to AS InvgCsMAddrValidToDate,
  name_text AS InvgCsMAddrNameText,
  cast(name_co as crms4_icm_ad_name_co ) AS InvgCsMAddrNameCareOfText,
  regiogroup AS InvgCsMAddrRegionGroup,
  pcode1_ext AS InvgCsMAddrPostlCodeExtn,
  pcode2_ext AS InvgCsMAddrPOBoxCodeExtn,
  pcode3_ext AS InvgCsMAddrCustPostCodeExtn,
  postalarea AS InvgCsMAddrPostDelivDstrctCode,
  streetcode AS InvgCsMAddrStCode,
  streetabbr AS InvgCsMAddrStAbbrCode,
  sort_phn AS InvgCsMAddrSortPhone,
  addrorigin AS InvgCsMAddrOrigin,
  extension1 AS InvgCsMAddrExtn1Text,
  extension2 AS InvgCsMAddrExtn2Text,
  address_id AS InvgCsMAddressID,
  langu_crea AS InvgCsMAddrRecdLangCrtnCode,
  xpcpt AS InvgCsMAddrBizPrpsIsCmpltd,
  _AddressText.InvgCsMAddrRemarkText AS InvgCsMAddrRemarkText
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_CityCode AS _CityCode ON Country = _CityCode.Country AND Region = _CityCode.Region AND CityCode = _CityCode.CityCode  -- association [0..1]
LEFT OUTER JOIN I_SecondaryRegion AS _CountyCode ON Country = _CountyCode.Country AND Region = _CountyCode.Region  -- association [0..*]
;