P_WFD_EMPLOYMENT

DDL: P_WFD_EMPLOYMENT Type: view_entity COMPOSITE Package: VDM_WFD_WORK_FORCE

Get minimum Active employment

P_WFD_EMPLOYMENT is a Composite CDS View that provides data about "Get minimum Active employment" in SAP S/4HANA. It reads from 3 data sources (I_WorkAssignmentDetailsAll, I_WorkforcePersonKeyMap, P_WFD_GET_MINEPERNR) and exposes 5 fields with key field EmploymentInternalID. Part of development package VDM_WFD_WORK_FORCE.

Data Sources (3)

SourceAliasJoin Type
I_WorkAssignmentDetailsAll dets inner
I_WorkforcePersonKeyMap map from
P_WFD_GET_MINEPERNR minpernr inner

Annotations (7)

NameValueLevelField
VDM.viewType #COMPOSITE view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MASTER view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY EmploymentInternalID I_WorkAssignmentDetailsAll WorkAssignment WorkForce Assgmt ID
StartDate I_WorkAssignmentDetailsAll WorkAssignmentStartDate Start Date
EndDate I_WorkAssignmentDetailsAll WorkAssignmentEndDate End Date
PersonnelNumber I_WorkforcePersonKeyMap CentralPerson WorkForce Master ID
PersonWorkAgrmtAuthznGrpg

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_WFD_EMPLOYMENT.
-- 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.

CREATE VIEW P_WFD_EMPLOYMENT AS
SELECT
  dets.WorkAssignment AS EmploymentInternalID,
  dets.WorkAssignmentStartDate AS StartDate,
  dets.WorkAssignmentEndDate AS EndDate,
  map.CentralPerson AS PersonnelNumber,
  cast( '' as vdsk1 ) AS PersonWorkAgrmtAuthznGrpg
FROM I_WorkforcePersonKeyMap AS map
INNER JOIN I_WorkAssignmentDetailsAll AS dets ON /* join condition not captured in parsed metadata */
INNER JOIN P_WFD_GET_MINEPERNR AS minpernr ON /* join condition not captured in parsed metadata */
;