I_EmploymentDetailsCurrent
Current Employment Details
I_EmploymentDetailsCurrent is a Basic CDS View that provides data about "Current Employment Details" in SAP S/4HANA. It reads from 1 data source (P_EmploymentDetailsCurrent) and exposes 23 fields with key field EmploymentInternalID. It has 7 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_EmploymentDetailsCurrent | EmploymentDetails | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [1] | I_CostCenter | _CostCenter | $projection.CostCenter = _CostCenter.CostCenter and $projection.CompanyCode = _CostCenter.CompanyCode |
| [1] | I_JobText | _JobName | $projection.Job = _JobName.Job and _JobName.EndDate >= $session.system_date and _JobName.StartDate <= $session.system_date |
| [0..1] | I_OrgUnitText | _OrganizationalUnitName | $projection.OrganizationalUnit = _OrganizationalUnitName.OrganizationalUnit association[0..1] to P_PDOBJECT as _OrgUnitCode on $projection.OrganizationalUnit = _OrgUnitCode.ObjectID and _OrgUnitCode.EndDate >= $session.system_date and _OrgUnitCode.StartDate <= $session.system_date and _OrgUnitCode.ObjectType = 'O' association[1] to P_J_PDOBJECT as _JobCode on $projection.Job = _JobCode.ObjectID and _JobCode.EndDate >= $session.system_date and _JobCode.StartDate <= $session.system_date and _JobCode.ObjectType = 'C' |
| [0..*] | I_EmploymentStatusText | _EmploymentStatusText | $projection.EmploymentStatus = _EmploymentStatusText.EmploymentStatus |
| [0..1] | I_Employment | _Employment | $projection.EmploymentInternalID = _Employment.EmploymentInternalID and $projection.StartDate <= _Employment.EndDate and $projection.EndDate >= _Employment.StartDate |
| [0..1] | I_Employmentcostlevel | _ServiceCostLevel | $projection.EmploymentInternalID = _ServiceCostLevel.EmploymentInternalID and _ServiceCostLevel.EndDate >= $session.system_date and _ServiceCostLevel.StartDate <= $session.system_date |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IEMPLOYDETCUR | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Current Employment Details | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EmploymentInternalID | P_EmploymentDetailsCurrent | EmploymentInternalID | WorkForce Assgmt ID |
| StartDate | P_EmploymentDetailsCurrent | StartDate | Valid From | |
| EndDate | P_EmploymentDetailsCurrent | EndDate | Term to | |
| EmploymentStatus | P_EmploymentDetailsCurrent | EmploymentStatus | ||
| CompanyCode | P_EmploymentDetailsCurrent | CompanyCode | Receiver Company Code | |
| CostCenter | P_EmploymentDetailsCurrent | CostCenter | Cost Center | |
| EmploymentPercent | P_EmploymentDetailsCurrent | EmploymentPercent | Emplymt Percentage | |
| WeeklyWorkingHours | P_EmploymentDetailsCurrent | WeeklyWorkingHours | Working Hours | |
| WeeklyWorkdays | P_EmploymentDetailsCurrent | WeeklyWorkdays | ||
| Job | P_EmploymentDetailsCurrent | Job | Undefined range (can be used for patch levels) | |
| JobCode | _JobCode | Name | Zone name | |
| JobName | P_EmploymentDetailsCurrent | JobName | Name of Send Process | |
| OrganizationalUnit | P_EmploymentDetailsCurrent | OrganizationalUnit | Org. Unit ID | |
| OrganizationalUnitCode | _OrgUnitCode | Name | Zone name | |
| OrganizationalUnitName | P_EmploymentDetailsCurrent | OrganizationalUnitName | ||
| PersonWorkAgrmtAuthznGrpg | P_EmploymentDetailsCurrent | PersonWorkAgrmtAuthznGrpg | Org.key | |
| _ServiceCostLevel | _ServiceCostLevel | |||
| _Employment | _Employment | |||
| _EmploymentStatusText | _EmploymentStatusText | |||
| _JobName | _JobName | |||
| _OrganizationalUnitName | _OrganizationalUnitName | |||
| _CompanyCode | _CompanyCode | |||
| _CostCenter | _CostCenter |
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 I_EmploymentDetailsCurrent.
-- 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: IEMPLOYDETCUR
CREATE VIEW I_EmploymentDetailsCurrent AS
SELECT
EmploymentDetails.EmploymentInternalID AS EmploymentInternalID,
EmploymentDetails.StartDate AS StartDate,
EmploymentDetails.EndDate AS EndDate,
EmploymentDetails.EmploymentStatus AS EmploymentStatus,
EmploymentDetails.CompanyCode AS CompanyCode,
EmploymentDetails.CostCenter AS CostCenter,
EmploymentDetails.EmploymentPercent AS EmploymentPercent,
EmploymentDetails.WeeklyWorkingHours AS WeeklyWorkingHours,
EmploymentDetails.WeeklyWorkdays AS WeeklyWorkdays,
EmploymentDetails.Job AS Job,
_JobCode.Name AS JobCode,
EmploymentDetails.JobName AS JobName,
EmploymentDetails.OrganizationalUnit AS OrganizationalUnit,
_OrgUnitCode.Name AS OrganizationalUnitCode,
EmploymentDetails.OrganizationalUnitName AS OrganizationalUnitName,
EmploymentDetails.PersonWorkAgrmtAuthznGrpg AS PersonWorkAgrmtAuthznGrpg
FROM P_EmploymentDetailsCurrent AS EmploymentDetails
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [1]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON CostCenter = _CostCenter.CostCenter AND CompanyCode = _CostCenter.CompanyCode -- association [1]
LEFT OUTER JOIN I_JobText AS _JobName ON Job = _JobName.Job AND _JobName.EndDate >= $session.system_date AND _JobName.StartDate <= $session.system_date -- association [1]
LEFT OUTER JOIN I_OrgUnitText AS _OrganizationalUnitName ON OrganizationalUnit = _OrganizationalUnitName.OrganizationalUnit association[0..1] to P_PDOBJECT as _OrgUnitCode on OrganizationalUnit = _OrgUnitCode.ObjectID AND _OrgUnitCode.EndDate >= $session.system_date AND _OrgUnitCode.StartDate <= $session.system_date AND _OrgUnitCode.ObjectType = 'O' association[1] to P_J_PDOBJECT as _JobCode on Job = _JobCode.ObjectID AND _JobCode.EndDate >= $session.system_date AND _JobCode.StartDate <= $session.system_date AND _JobCode.ObjectType = 'C' -- association [0..1]
LEFT OUTER JOIN I_EmploymentStatusText AS _EmploymentStatusText ON EmploymentStatus = _EmploymentStatusText.EmploymentStatus -- association [0..*]
LEFT OUTER JOIN I_Employment AS _Employment ON EmploymentInternalID = _Employment.EmploymentInternalID AND StartDate <= _Employment.EndDate AND EndDate >= _Employment.StartDate -- association [0..1]
LEFT OUTER JOIN I_Employmentcostlevel AS _ServiceCostLevel ON EmploymentInternalID = _ServiceCostLevel.EmploymentInternalID AND _ServiceCostLevel.EndDate >= $session.system_date AND _ServiceCostLevel.StartDate <= $session.system_date -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA