P_O_EmploymentManager

DDL: P_O_EMPLOYMENTMANAGER SQL: POEMPLOYMENTMGR Type: view BASIC

P_O_EmploymentManager is a Basic CDS View in SAP S/4HANA. It reads from 5 data sources (I_EmployeeLineManager, I_Employment, P_PDRELATION, P_EmploymentManager, P_PDRELATION) and exposes 12 fields with key field EmploymentInternalID. It has 2 associations to related views.

Data Sources (5)

SourceAliasJoin Type
I_EmployeeLineManager EmployeeLineManager left_outer
I_Employment Employment from
P_PDRELATION LineManagerCP left_outer
P_EmploymentManager ManagerRelation left_outer
P_PDRELATION ManagerRelationCP left_outer

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_Employee _Manager $projection.ManagerPersonnelNumber = _Manager.PersonnelNumber
[0..1] I_Employment _Employment $projection.EmploymentInternalID = _Employment.EmploymentInternalID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName POEMPLOYMENTMGR view
VDM.viewType #BASIC view
VDM.private true view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
AccessControl.personalData.blocking #REQUIRED view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY EmploymentInternalID I_Employment EmploymentInternalID WorkForce Assgmt ID
PersonnelNumber I_Employment PersonnelNumber Personnel No.
Employee
EmployeeFullName
PersonWorkAgrmtAuthznGrpg I_Employment PersonWorkAgrmtAuthznGrpg Org.key
ObjectIDendasManagerPersonnelNumber
EmployeeendasManagerEmployee
EmployeeFullNameendasManagerFullName
ValidityStartDateendasValidityStartDate
ValidityEndDateendasValidityEndDate
_Employment _Employment
_Manager _Manager

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_EmploymentManager.
-- 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: POEMPLOYMENTMGR

CREATE VIEW P_O_EmploymentManager AS
SELECT
  Employment.EmploymentInternalID AS EmploymentInternalID,
  Employment.PersonnelNumber AS PersonnelNumber,
  Employment._Employee.Employee AS Employee,
  Employment._Employee.EmployeeFullName AS EmployeeFullName,
  Employment.PersonWorkAgrmtAuthznGrpg AS PersonWorkAgrmtAuthznGrpg,
  case when ManagerRelation.ManagerPersonWorkAgreement is not null then ManagerRelationCP.ObjectID else LineManagerCP.ObjectID end as ManagerPersonnelNumber AS ObjectIDendasManagerPersonnelNumber,
  case when ManagerRelation.ManagerPersonWorkAgreement is not null then Manager.Employee else Employee.Employee end as ManagerEmployee AS EmployeeendasManagerEmployee,
  case when ManagerRelation.ManagerPersonWorkAgreement is not null then Manager.FullName else Employee.EmployeeFullName end as ManagerFullName AS EmployeeFullNameendasManagerFullName,
  case when ManagerRelation.ManagerPersonWorkAgreement is not null then ManagerRelation.ValidityStartDate else EmployeeLineManager.ValidityStartDate end as ValidityStartDate AS ValidityStartDateendasValidityStartDate,
  case when ManagerRelation.ManagerPersonWorkAgreement is not null then ManagerRelation.ValidityEndDate else EmployeeLineManager.ValidityEndDate end as ValidityEndDate AS ValidityEndDateendasValidityEndDate
FROM I_Employment AS Employment
LEFT OUTER JOIN P_EmploymentManager AS ManagerRelation ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_EmployeeLineManager AS EmployeeLineManager ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_PDRELATION AS ManagerRelationCP ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_PDRELATION AS LineManagerCP ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Employee AS _Manager ON ManagerPersonnelNumber = _Manager.PersonnelNumber  -- association [0..1]
LEFT OUTER JOIN I_Employment AS _Employment ON EmploymentInternalID = _Employment.EmploymentInternalID  -- association [0..1]
;