I_EmployOrgDet
Employment organization details
I_EmployOrgDet is a Basic CDS View that provides data about "Employment organization details" in SAP S/4HANA. It reads from 1 data source (I_EmployOrgDetOp) and exposes 19 fields with key fields EmploymentInternalID, StartDate. It has 5 associations to related views. Part of development package VDM_SHCM_EMPLOYEE.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_EmployOrgDetOp | org | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_CompanyCode | _CompanyCode | org.CompanyCode = _CompanyCode.CompanyCode |
| [1] | I_CostCenter | _CostCenter | org.CostCenter = _CostCenter.CostCenter and org.CompanyCode = _CostCenter.CompanyCode and _CostCenter.ValidityStartDate <= $session.system_date and _CostCenter.ValidityEndDate >= $session.system_date |
| [1] | I_JobText | _JobName | org.Job = _JobName.Job and _JobName.StartDate <= org.StartDate and _JobName.EndDate >= org.EndDate |
| [0..1] | I_OrgUnitText | _OrganizationalUnitName | $projection.OrganizationalUnit = _OrganizationalUnitName.OrganizationalUnit |
| [1] | P_J_PDOBJECT | _JobCode | org.Job = _JobCode.ObjectID and org.StartDate <= _JobCode.EndDate and org.EndDate >= _JobCode.StartDate and _JobCode.ObjectType = 'C' and _JobCode.Language = $session.system_language |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IEMPLOYORGDET | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Employment organization details | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EmploymentInternalID | EmploymentInternalID | WorkForce Assgmt ID | |
| KEY | StartDate | StartDate | Valid From | |
| EndDate | EndDate | Term to | ||
| PersonnelNumber | PersonnelNumber | Personnel No. | ||
| IsMainEmployment | IsMainEmployment | |||
| EmploymentStatus | EmploymentStatus | Employment Status | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CostCenter | CostCenter | Cost Center | ||
| PersonWorkAgrmtAuthznGrpg | PersonWorkAgrmtAuthznGrpg | Org.key | ||
| Job | Job | Undefined range (can be used for patch levels) | ||
| JobCode | _JobCode | Name | Zone name | |
| JobName | ||||
| OrganizationalUnit | OrganizationalUnit | Org. Unit ID | ||
| OrganizationalUnitCode | ||||
| OrganizationalUnitName | ||||
| _CompanyCode | _CompanyCode | |||
| _CostCenter | _CostCenter | |||
| _JobName | _JobName | |||
| _OrganizationalUnitName | _OrganizationalUnitName |
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_EmployOrgDet.
-- 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: IEMPLOYORGDET
CREATE VIEW I_EmployOrgDet AS
SELECT
EmploymentInternalID,
StartDate,
EndDate,
PersonnelNumber,
IsMainEmployment,
EmploymentStatus,
CompanyCode,
CostCenter,
PersonWorkAgrmtAuthznGrpg,
Job,
_JobCode.Name AS JobCode,
_JobName[1: Language = 'E' ].JobName AS JobName,
OrganizationalUnit,
cast('' as short_d ) AS OrganizationalUnitCode,
cast( '' as orgtx ) AS OrganizationalUnitName
FROM I_EmployOrgDetOp AS org
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON org.CompanyCode = _CompanyCode.CompanyCode -- association [1]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON org.CostCenter = _CostCenter.CostCenter AND org.CompanyCode = _CostCenter.CompanyCode AND _CostCenter.ValidityStartDate <= $session.system_date AND _CostCenter.ValidityEndDate >= $session.system_date -- association [1]
LEFT OUTER JOIN I_JobText AS _JobName ON org.Job = _JobName.Job AND _JobName.StartDate <= org.StartDate AND _JobName.EndDate >= org.EndDate -- association [1]
LEFT OUTER JOIN I_OrgUnitText AS _OrganizationalUnitName ON OrganizationalUnit = _OrganizationalUnitName.OrganizationalUnit -- association [0..1]
LEFT OUTER JOIN P_J_PDOBJECT AS _JobCode ON org.Job = _JobCode.ObjectID AND org.StartDate <= _JobCode.EndDate AND org.EndDate >= _JobCode.StartDate AND _JobCode.ObjectType = 'C' AND _JobCode.Language = $session.system_language -- association [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