P_Emplprivpostaddr
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)
| Source | Alias | Join Type |
|---|---|---|
| adrc | postaladdress | from |
Associations (2)
Annotations (3)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| AbapCatalog.sqlViewName | PEMPLPRVPOSTADDR | view | |
| VDM.viewType | #BASIC | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA