I_EmployeeHomeAddress
Employee Home Address
I_EmployeeHomeAddress is a Basic CDS View that provides data about "Employee Home Address" in SAP S/4HANA. It reads from 3 data sources (I_Address, but020, adcp) and exposes 32 fields with key fields PersonnelNumber, ValidityStartDate. It has 3 associations to related views. Part of development package WFD_OBSOLETE.
Data Sources (3)
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | P_EmplPrivCommData | commdata | Address.AddressID = commdata.AddressID and AddrPointer.persnumber = commdata.Person |
| [0..1] | I_Region | _Region | $projection.Region = _Region.Region and $projection.Country = _Region.Country |
| [0..1] | I_Country | _Country | $projection.Country = _Country.Country association[0..1] to I_Employee as _Employee on $projection.Person = _Employee.Person association[0..1] to I_BusinessPartner as _BusinessPartner on AddressAdmin.partner = _BusinessPartner.BusinessPartner |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IEMPLHOMEADDRSS | view | |
| EndUserText.label | Employee Home Address | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| AccessControl.authorizationCheck | #CHECK | view |
Fields (32)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PersonnelNumber | _Employee | PersonnelNumber | Personnel No. |
| KEY | ValidityStartDate | but020 | addr_valid_from | Valid From |
| EmployeeInternalID | _Employee | EmployeeInternalID | Busn. Partner | |
| BusinessPartner | but020 | partner | With Partner | |
| Employee | _Employee | Employee | Object ID | |
| FullName | _Employee | FullName | Name | |
| ValidityEndDate | but020 | addr_valid_to | Valid To | |
| Country | I_Address | Country | Venue: Ctry/Reg | |
| Region | I_Address | Region | Venue Region | |
| CityName | I_Address | CityName | Name | |
| HomeCityName | I_Address | HomeCityName | Different City | |
| District | I_Address | District | District Court | |
| PostalCode | I_Address | PostalCode | Postal Code | |
| StreetName | I_Address | StreetName | Text | |
| StreetPrefixName | I_Address | StreetPrefixName | Street 2 | |
| StreetSuffixName | I_Address | StreetSuffixName | Street 4 | |
| AdditionalStreetPrefixName | I_Address | AdditionalStreetPrefixName | Street 3 | |
| AdditionalStreetSuffixName | I_Address | AdditionalStreetSuffixName | Street 5 | |
| HouseNumber | I_Address | HouseNumber | House Number | |
| HouseNumberSupplementText | I_Address | HouseNumberSupplementText | Supplement | |
| CareOfName | I_Address | CareOfName | c/o | |
| Person | adcp | persnumber | Person Number | |
| DestinationLocationCountry | commdata | DestinationLocationCountry | Country/Region | |
| PhoneNumber | commdata | PhoneNumber | Telephone no. | |
| PhoneNumberExtension | commdata | PhoneNumberExtension | Extension | |
| MblPhoneDestinationLocCountry | commdata | MblPhoneDestinationLocCountry | ||
| MobilePhoneNumber | commdata | MobilePhoneNumber | Telephone | |
| DefaultEmailAddress | commdata | DefaultEmailAddress | ||
| _Region | _Region | |||
| _Country | _Country | |||
| AuthorizationGroup | ||||
| _BusinessPartner | _BusinessPartner |
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_EmployeeHomeAddress.
-- 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: IEMPLHOMEADDRSS
CREATE VIEW I_EmployeeHomeAddress AS
SELECT
_Employee.PersonnelNumber AS PersonnelNumber,
AddressAdmin.addr_valid_from AS ValidityStartDate,
_Employee.EmployeeInternalID AS EmployeeInternalID,
AddressAdmin.partner AS BusinessPartner,
_Employee.Employee AS Employee,
_Employee.FullName AS FullName,
AddressAdmin.addr_valid_to AS ValidityEndDate,
Address.Country AS Country,
Address.Region AS Region,
Address.CityName AS CityName,
Address.HomeCityName AS HomeCityName,
Address.District AS District,
Address.PostalCode AS PostalCode,
Address.StreetName AS StreetName,
Address.StreetPrefixName AS StreetPrefixName,
Address.StreetSuffixName AS StreetSuffixName,
Address.AdditionalStreetPrefixName AS AdditionalStreetPrefixName,
Address.AdditionalStreetSuffixName AS AdditionalStreetSuffixName,
Address.HouseNumber AS HouseNumber,
Address.HouseNumberSupplementText AS HouseNumberSupplementText,
Address.CareOfName AS CareOfName,
AddrPointer.persnumber AS Person,
commdata.DestinationLocationCountry AS DestinationLocationCountry,
commdata.PhoneNumber AS PhoneNumber,
commdata.PhoneNumberExtension AS PhoneNumberExtension,
commdata.MblPhoneDestinationLocCountry AS MblPhoneDestinationLocCountry,
commdata.MobilePhoneNumber AS MobilePhoneNumber,
commdata.DefaultEmailAddress AS DefaultEmailAddress,
'0060' AS AuthorizationGroup
FROM adcp AS AddrPointer
INNER JOIN I_Address AS Address ON /* join condition not captured in parsed metadata */
INNER JOIN but020 AS AddressAdmin ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_EmplPrivCommData AS commdata ON Address.AddressID = commdata.AddressID AND AddrPointer.persnumber = commdata.Person -- association [0..1]
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] to I_Employee as _Employee on Person = _Employee.Person association[0..1] to I_BusinessPartner as _BusinessPartner on AddressAdmin.partner = _BusinessPartner.BusinessPartner -- 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