P_N_EmployStatDet

DDL: P_N_EMPLOYSTATDET SQL: PNEMPLOYSTATDET Type: view BASIC Package: VDM_WFD_WORK_FORCE

Employment status

P_N_EmployStatDet is a Basic CDS View that provides data about "Employment status" in SAP S/4HANA. It reads from 4 data sources (wfd_d_assgmt, wfd_d_assgmtdets, P_N_EmploymentMinPernr, wfd_d_keymap) and exposes 6 fields with key field EmploymentInternalID. Part of development package VDM_WFD_WORK_FORCE.

Data Sources (4)

SourceAliasJoin Type
wfd_d_assgmt assgmt inner
wfd_d_assgmtdets assgmtdets from
P_N_EmploymentMinPernr mainEmployment inner
wfd_d_keymap wfd_d_keymap inner

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PNEMPLOYSTATDET view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED 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 (6)

KeyFieldSource TableSource FieldDescription
KEY EmploymentInternalID wfd_d_assgmtdets workforce_assgmt_id WorkForce Assgmt ID
start_dateasStartDate
end_dateasEndDate
PersonnelNumber wfd_d_keymap central_person WorkForce Master ID
EmploymentStatus wfd_d_assgmtdets employment_status Employment Status
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_N_EmployStatDet.
-- 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: PNEMPLOYSTATDET

CREATE VIEW P_N_EmployStatDet AS
SELECT
  assgmtdets.workforce_assgmt_id AS EmploymentInternalID,
  /to key assgmtdets.start_date as StartDate AS start_dateasStartDate,
  /to key assgmtdets.end_date as EndDate AS end_dateasEndDate,
  wfd_d_keymap.central_person AS PersonnelNumber,
  assgmtdets.employment_status AS EmploymentStatus,
  '' AS PersonWorkAgrmtAuthznGrpg
FROM wfd_d_assgmtdets AS assgmtdets
INNER JOIN wfd_d_assgmt AS assgmt ON /* join condition not captured in parsed metadata */
INNER JOIN wfd_d_keymap ON /* join condition not captured in parsed metadata */
INNER JOIN P_N_EmploymentMinPernr AS mainEmployment ON /* join condition not captured in parsed metadata */
;