P_EmployStatDet

DDL: P_EMPLOYSTATDET SQL: PEMPLOYSTATDET Type: view BASIC

P_EmployStatDet is a Basic CDS View in SAP S/4HANA. It reads from 6 data sources and exposes 11 fields with key field EmploymentInternalID. It has 1 association to related views.

Data Sources (6)

SourceAliasJoin Type
wfd_d_assgmt assgmt inner
wfd_d_assgmtdets assgmtdets union_all
pa0000 it0000 from
pa0001 it0001 inner
wfd_d_new_pers switch left_outer
wfd_d_new_pers switch inner

Associations (1)

CardinalityTargetAliasCondition
[0..1] P_EmploymentOp Employment it0000.pernr = Employment.EmploymentInternalID

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PEMPLOYSTATDET 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 (11)

KeyFieldSource TableSource FieldDescription
KEY EmploymentInternalID pa0000 pernr Personnel no.
begdaasStartDate
enddaasEndDate
PersonnelNumber Employment PersonnelNumber Personnel No.
IsMainEmployment Employment IsMainEmployment
start_dateasStartDate
end_dateasEndDate
PersonnelNumber Employment PersonnelNumber Personnel No.
IsMainEmployment Employment IsMainEmployment
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_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: PEMPLOYSTATDET

CREATE VIEW P_EmployStatDet AS
SELECT
  it0000.pernr AS EmploymentInternalID,
  /to key it0000.begda as StartDate AS begdaasStartDate,
  /to it0000.endda as EndDate AS enddaasEndDate,
  Employment.PersonnelNumber AS PersonnelNumber,
  Employment.IsMainEmployment AS IsMainEmployment,
  /to key assgmtdets.start_date as StartDate AS start_dateasStartDate,
  /to key assgmtdets.end_date as EndDate AS end_dateasEndDate,
  assgmtdets.employment_status AS EmploymentStatus,
  '' AS PersonWorkAgrmtAuthznGrpg
FROM pa0000 AS it0000
INNER JOIN pa0001 AS it0001 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN wfd_d_new_pers AS switch ON /* join condition not captured in parsed metadata */
INNER JOIN wfd_d_assgmt AS assgmt ON /* join condition not captured in parsed metadata */
INNER JOIN wfd_d_new_pers AS switch ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_EmploymentOp AS Employment ON it0000.pernr = Employment.EmploymentInternalID  -- association [0..1]
-- UNION ALL with additional select branch(es): wfd_d_assgmtdets
;