P_O_Employee
P_O_Employee is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (P_EmployeeUnion) and exposes 45 fields with key field PersonnelNumber. It has 15 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_EmployeeUnion | Employee | from |
Associations (15)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PersonFormOfAddress | _FormOfAddress | $projection.FormOfAddress = _FormOfAddress.FormOfAddress |
| [0..1] | I_Gender | _Gender | $projection.GenderCode = _Gender.GenderCode |
| [0..1] | I_AcademicTitle | _AcademicTitle | $projection.AcademicTitle = _AcademicTitle.AcademicTitle |
| [0..1] | I_Language | _Language | $projection.CorrespondenceLanguage = _Language.Language |
| [0..1] | I_Familynameprefixtext | _FamilyNamePrefix | $projection.FamilyNamePrefix = _FamilyNamePrefix.FamilyNamePrefix |
| [0..*] | I_EmployeeHomeAddress | _HomeAddress | $projection.Person = _HomeAddress.Person |
| [0..1] | I_WorkplaceAddress | _WorkplaceAddress | $projection.BusinessPartnerUUID = _WorkplaceAddress.BusinessPartnerUUID |
| [0..*] | I_Employment | _Employment | $projection.PersonnelNumber = _Employment.PersonnelNumber |
| [0..1] | I_Employment | _MainEmployment | $projection.PersonnelNumber = _MainEmployment.PersonnelNumber and _MainEmployment.IsMainEmployment = 'X' |
| [0..*] | I_EmployeePayment | _Payment | $projection.PersonnelNumber = _Payment.PersonnelNumber |
| [0..*] | I_EmployeeskillTags | _EmployeeSkillTags | $projection.PersonnelNumber = _EmployeeSkillTags.PersonnelNumber |
| [0..*] | I_BPRoleText | _BPRoleText | $projection.BusinessPartnerRole = _BPRoleText.BusinessPartnerRole |
| [0..1] | I_ServicePerformerFor | _IsServicePerformerFor | $projection.EmployeeInternalID = _IsServicePerformerFor.BusinessPartner and _IsServicePerformerFor.RoleRelationType = 'BUR025' |
| [0..1] | I_User | _User | $projection.BusinessPartnerUUID = _User.BusinessPartnerUUID |
| [0..1] | /shcm/hrp5092 | _EmployeeImageURL | _EmployeeImageURL.otype = 'CP' and $projection.PersonnelNumber = _EmployeeImageURL.objid |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | POEMPLOYE | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.representativeKey | PersonnelNumber | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (45)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PersonnelNumber | P_EmployeeUnion | PersonnelNumber | Personnel No. |
| EmployeeInternalID | EmployeeInternalID | Busn. Partner | ||
| Employee | Employee | Object ID | ||
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| FormOfAddress | FormOfAddress | Title Key | ||
| FamilyName | FamilyName | |||
| FirstName | FirstName | First Name | ||
| GivenName | GivenName | |||
| MiddleName | MiddleName | Middle Name | ||
| AdditionalFamilyName | AdditionalFamilyName | |||
| AcademicTitle | AcademicTitle | Academic Title | ||
| FamilyNamePrefix | FamilyNamePrefix | |||
| Initials | Initials | Initials | ||
| FullName | FullName | Name | ||
| EmployeeFullName | EmployeeFullName | |||
| CorrespondenceLanguage | CorrespondenceLanguage | Language | ||
| GenderCode | GenderCode | |||
| BusinessPartnerRole | BusinessPartnerRole | BP Role | ||
| Person | Person | Person/ Farm/ Field | ||
| BusinessPartnerUUID | BusinessPartnerUUID | UUID | ||
| BusinessUser | _User | UserID | User Name | |
| UserID | _User | UserID | User Name | |
| EmployeeImageURL | _EmployeeImageURL | employee_image_url | Image URL | |
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDate | CreationDate | Time Stamp | ||
| CreationTime | CreationTime | Time of Change | ||
| LastChangedByUser | LastChangedByUser | User Name | ||
| LastChangeDate | LastChangeDate | Time Stamp | ||
| LastChangeTime | LastChangeTime | Time changed | ||
| AuthorizationGroup | AuthorizationGroup | AuthorizGroup | ||
| IsBusinessPurposeCompleted | IsBusinessPurposeCompleted | Purpose Completed | ||
| _FormOfAddress | _FormOfAddress | |||
| _Gender | _Gender | |||
| _AcademicTitle | _AcademicTitle | |||
| _Language | _Language | |||
| _FamilyNamePrefix | _FamilyNamePrefix | |||
| _HomeAddress | _HomeAddress | |||
| _WorkplaceAddress | _WorkplaceAddress | |||
| _Employment | _Employment | |||
| _MainEmployment | _MainEmployment | |||
| _Payment | _Payment | |||
| _EmployeeSkillTags | _EmployeeSkillTags | |||
| _BPRoleText | _BPRoleText | |||
| _IsServicePerformerFor | _IsServicePerformerFor |
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_O_Employee.
-- 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: POEMPLOYE
CREATE VIEW P_O_Employee AS
SELECT
Employee.PersonnelNumber AS PersonnelNumber,
EmployeeInternalID,
Employee,
ValidityStartDate,
ValidityEndDate,
FormOfAddress,
FamilyName,
FirstName,
GivenName,
MiddleName,
AdditionalFamilyName,
AcademicTitle,
FamilyNamePrefix,
Initials,
FullName,
EmployeeFullName,
CorrespondenceLanguage,
GenderCode,
BusinessPartnerRole,
Person,
BusinessPartnerUUID,
_User.UserID AS BusinessUser,
_User.UserID AS UserID,
_EmployeeImageURL.employee_image_url AS EmployeeImageURL,
CreatedByUser,
CreationDate,
CreationTime,
LastChangedByUser,
LastChangeDate,
LastChangeTime,
AuthorizationGroup,
IsBusinessPurposeCompleted
FROM P_EmployeeUnion AS Employee
LEFT OUTER JOIN I_PersonFormOfAddress AS _FormOfAddress ON FormOfAddress = _FormOfAddress.FormOfAddress -- association [0..1]
LEFT OUTER JOIN I_Gender AS _Gender ON GenderCode = _Gender.GenderCode -- association [0..1]
LEFT OUTER JOIN I_AcademicTitle AS _AcademicTitle ON AcademicTitle = _AcademicTitle.AcademicTitle -- association [0..1]
LEFT OUTER JOIN I_Language AS _Language ON CorrespondenceLanguage = _Language.Language -- association [0..1]
LEFT OUTER JOIN I_Familynameprefixtext AS _FamilyNamePrefix ON FamilyNamePrefix = _FamilyNamePrefix.FamilyNamePrefix -- association [0..1]
LEFT OUTER JOIN I_EmployeeHomeAddress AS _HomeAddress ON Person = _HomeAddress.Person -- association [0..*]
LEFT OUTER JOIN I_WorkplaceAddress AS _WorkplaceAddress ON BusinessPartnerUUID = _WorkplaceAddress.BusinessPartnerUUID -- association [0..1]
LEFT OUTER JOIN I_Employment AS _Employment ON PersonnelNumber = _Employment.PersonnelNumber -- association [0..*]
LEFT OUTER JOIN I_Employment AS _MainEmployment ON PersonnelNumber = _MainEmployment.PersonnelNumber AND _MainEmployment.IsMainEmployment = 'X' -- association [0..1]
LEFT OUTER JOIN I_EmployeePayment AS _Payment ON PersonnelNumber = _Payment.PersonnelNumber -- association [0..*]
LEFT OUTER JOIN I_EmployeeskillTags AS _EmployeeSkillTags ON PersonnelNumber = _EmployeeSkillTags.PersonnelNumber -- association [0..*]
LEFT OUTER JOIN I_BPRoleText AS _BPRoleText ON BusinessPartnerRole = _BPRoleText.BusinessPartnerRole -- association [0..*]
LEFT OUTER JOIN I_ServicePerformerFor AS _IsServicePerformerFor ON EmployeeInternalID = _IsServicePerformerFor.BusinessPartner AND _IsServicePerformerFor.RoleRelationType = 'BUR025' -- association [0..1]
LEFT OUTER JOIN I_User AS _User ON BusinessPartnerUUID = _User.BusinessPartnerUUID -- association [0..1]
LEFT OUTER JOIN /shcm/hrp5092 AS _EmployeeImageURL ON _EmployeeImageURL.otype = 'CP' AND PersonnelNumber = _EmployeeImageURL.objid -- 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