P_Emplprivpostaddr

DDL: P_EMPLPRIVPOSTADDR SQL: PEMPLPRVPOSTADDR Type: view BASIC

P_Emplprivpostaddr is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (adrc) and exposes 17 fields with key field AddressID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
adrc postaladdress from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_Region _Region $projection.Region = _Region.Region and $projection.Country = _Region.Country
[0..1] I_Country _Country $projection.Country = _Country.Country

Annotations (3)

NameValueLevelField
VDM.private true view
AbapCatalog.sqlViewName PEMPLPRVPOSTADDR view
VDM.viewType #BASIC view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY AddressID adrc addrnumber Address Number
Country adrc country Venue: Ctry/Reg
Region adrc region Venue Region
CityName adrc city1 City
HomeCityName adrc home_city Different City
District adrc city2 District
PostalCode adrc post_code1 Postal Code
StreetName adrc street Street Code
StreetPrefixName adrc str_suppl1 Street 2
StreetSuffixName adrc str_suppl3 Street 4
AdditionalStreetPrefixName adrc str_suppl2 Street 3
AdditionalStreetSuffixName adrc location Text
HouseNumber adrc house_num1 House Number
HouseNumberSupplementText adrc house_num2 Supplement
CareOfName adrc name_co c/o
_Region _Region
_Country _Country

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 P_Emplprivpostaddr.
-- 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: PEMPLPRVPOSTADDR

CREATE VIEW P_Emplprivpostaddr AS
SELECT
  postaladdress.addrnumber AS AddressID,
  postaladdress.country AS Country,
  postaladdress.region AS Region,
  postaladdress.city1 AS CityName,
  postaladdress.home_city AS HomeCityName,
  postaladdress.city2 AS District,
  postaladdress.post_code1 AS PostalCode,
  postaladdress.street AS StreetName,
  postaladdress.str_suppl1 AS StreetPrefixName,
  postaladdress.str_suppl3 AS StreetSuffixName,
  postaladdress.str_suppl2 AS AdditionalStreetPrefixName,
  postaladdress.location AS AdditionalStreetSuffixName,
  postaladdress.house_num1 AS HouseNumber,
  postaladdress.house_num2 AS HouseNumberSupplementText,
  postaladdress.name_co AS CareOfName
FROM adrc AS postaladdress
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]
;