I_EMPLOYSTATDET
Employment status
I_EMPLOYSTATDET is a CDS View in S/4HANA. Employment status. It contains 2 fields. 4 CDS views read from this table.
CDS Views using this table (4)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| C_ChgRecdWorkflowRecipientVH | view | inner | CONSUMPTION | People Picker for Change Record task processor |
| I_Employeeshlp | view | left_outer | BASIC | Search Help for Employee |
| I_Employmentshlp | view | inner | BASIC | Search Help for Personnel Assignments of Employee |
| P_EmploymentDetailsCurrent | view | left_outer | BASIC |
Fields (2)
| Key | Field | CDS Fields | Used in Views |
|---|---|---|---|
| KEY | PersonnelNumber | PersonnelNumber | 1 |
| EmploymentStatus | EmploymentStatus | 1 |
@AbapCatalog.sqlViewName: 'IEMPLOYSTATDET'
@VDM.viewType: #BASIC
@EndUserText.label: 'Employment status'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #L
define view I_EmployStatDet
//as select from wfd_tf_EmployStatDet( p_client : $session.client ) "MGD#3392113 remove usage of table functions
as select from pa0000 as it0000
inner join pa0001 as it0001 on it0000.pernr = it0001.pernr
and it0001.sprps <> 'X'
and it0000.endda between it0001.begda and it0001.endda
association[0..1] to P_EmploymentOp as Employment on it0000.pernr = Employment.EmploymentInternalID
{
key it0000.pernr as EmploymentInternalID,
@Semantics.businessDate.from
key it0000.begda as StartDate,
@Semantics.businessDate.to
it0000.endda as EndDate,
Employment.PersonnelNumber as PersonnelNumber,
Employment.IsMainEmployment as IsMainEmployment,
case it0000.stat2
when '3' then '1'
else '0'
end as EmploymentStatus,
it0001.vdsk1 as PersonWorkAgrmtAuthznGrpg
}