I_Empfactsheet_Contrinfo

DDL: I_EMPFACTSHEET_CONTRINFO SQL: IEMPFSCI Type: view BASIC

Employee Factsheet CDS - Controlling Information

I_Empfactsheet_Contrinfo is a Basic CDS View that provides data about "Employee Factsheet CDS - Controlling Information" in SAP S/4HANA. It reads from 1 data source (P_EmploymentDetailsCurrent) and exposes 21 fields with key field EmploymentInternalID. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_EmploymentDetailsCurrent EmploymentDetails from

Associations (6)

CardinalityTargetAliasCondition
[1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1] I_CostCenter _CostCenter $projection.CostCenter = _CostCenter.CostCenter and $projection.CompanyCode = _CostCenter.CompanyCode
[0..1] I_JobText _JobName $projection.Job = _JobName.Job and _JobName.StartDate <= $projection.StartDate and _JobName.EndDate >= $projection.EndDate association[1] to P_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

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName IEMPFSCI view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Employee Factsheet CDS - Controlling Information view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view

Fields (21)

KeyFieldSource TableSource FieldDescription
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
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
OrganizationalUnitName P_EmploymentDetailsCurrent OrganizationalUnitName
_ServiceCostLevel _ServiceCostLevel
_Employment _Employment
_EmploymentStatusText _EmploymentStatusText
_JobName _JobName
_CompanyCode _CompanyCode
_CostCenter _CostCenter
ValidityStartDate _ServiceCostLevel StartDate Valid From
ValidityEndDate _ServiceCostLevel EndDate Term to

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_Empfactsheet_Contrinfo.
-- 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: IEMPFSCI

CREATE VIEW I_Empfactsheet_Contrinfo 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.Job AS Job,
  _JobCode.Name AS JobCode,
  EmploymentDetails.JobName AS JobName,
  EmploymentDetails.OrganizationalUnit AS OrganizationalUnit,
  EmploymentDetails.OrganizationalUnitName AS OrganizationalUnitName,
  _ServiceCostLevel.StartDate AS ValidityStartDate,
  _ServiceCostLevel.EndDate AS ValidityEndDate
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.StartDate <= StartDate AND _JobName.EndDate >= EndDate association[1] to P_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  -- association [0..1]
;