P_U_EmployOrgDetOp

DDL: P_U_EMPLOYORGDETOP SQL: PUEMPLOYORGDETOP Type: view BASIC

P_U_EmployOrgDetOp is a Basic CDS View in SAP S/4HANA. It reads from 4 data sources (P_N_EmployOrgDetOp, P_O_EmployOrgDetOp, wfd_d_new_pers, wfd_d_new_pers) and exposes 19 fields with key field EmploymentInternalID.

Data Sources (4)

SourceAliasJoin Type
P_N_EmployOrgDetOp new union_all
P_O_EmployOrgDetOp old from
wfd_d_new_pers switch left_outer
wfd_d_new_pers switch inner

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PUEMPLOYORGDETOP view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY EmploymentInternalID P_O_EmployOrgDetOp EmploymentInternalID WorkForce Assgmt ID
StartDate
EndDate
PersonnelNumber P_O_EmployOrgDetOp PersonnelNumber Personnel No.
IsMainEmployment P_O_EmployOrgDetOp IsMainEmployment
CompanyCode P_O_EmployOrgDetOp CompanyCode Receiver Company Code
CostCenter P_O_EmployOrgDetOp CostCenter Cost Center
Job P_O_EmployOrgDetOp Job Undefined range (can be used for patch levels)
OrganizationalUnit P_O_EmployOrgDetOp OrganizationalUnit Org. Unit ID
EmploymentInternalId
StartDate
EndDate
PersonnelNumber P_N_EmployOrgDetOp PersonnelNumber Personnel No.
IsMainEmployment P_N_EmployOrgDetOp IsMainEmployment
CompanyCode P_N_EmployOrgDetOp CompanyCode Receiver Company Code
CostCenter P_N_EmployOrgDetOp CostCenter Cost Center
Job P_N_EmployOrgDetOp Job Undefined range (can be used for patch levels)
OrganizationalUnit P_N_EmployOrgDetOp OrganizationalUnit Org. Unit ID
PersonWorkAgrmtAuthznGrpg P_N_EmployOrgDetOp PersonWorkAgrmtAuthznGrpg Org.key

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_U_EmployOrgDetOp.
-- 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: PUEMPLOYORGDETOP

CREATE VIEW P_U_EmployOrgDetOp AS
SELECT
  old.EmploymentInternalID AS EmploymentInternalID,
  /to key old.StartDate AS StartDate,
  /to old.EndDate AS EndDate,
  old.PersonnelNumber AS PersonnelNumber,
  old.IsMainEmployment AS IsMainEmployment,
  old.CompanyCode AS CompanyCode,
  old.CostCenter AS CostCenter,
  old.Job AS Job,
  old.OrganizationalUnit AS OrganizationalUnit,
  new.PersonWorkAgrmtAuthznGrpg AS PersonWorkAgrmtAuthznGrpg
FROM P_O_EmployOrgDetOp AS old
LEFT OUTER JOIN wfd_d_new_pers AS switch ON /* join condition not captured in parsed metadata */
INNER JOIN wfd_d_new_pers AS switch ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_N_EmployOrgDetOp
;