I_WorkAssignmentDetail_1

DDL: I_WORKASSIGNMENTDETAIL_1 Type: view_entity BASIC

Details for Work Assignment

I_WorkAssignmentDetail_1 is a Basic CDS View that provides data about "Details for Work Assignment" in SAP S/4HANA. It reads from 1 data source (wfd_d_assgmtdets) and exposes 21 fields with key fields WorkforceAssignment, WorkforceAssgmtStartDate. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
wfd_d_assgmtdets wfd_d_assgmtdets from

Associations (5)

CardinalityTargetAliasCondition
[1..1] I_WorkforceAssignment_1 _WorkforceAssignment $projection.WorkforceAssignment = _WorkforceAssignment.WorkforceAssignment
[0..1] I_WorkforceAssignmentStatus _WorkforceAssignmentStatus $projection.WorkforceAssignmentStatus = _WorkforceAssignmentStatus.WorkforceAssignmentStatus
[1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1] I_CostCenter _CostCenter $projection.CostCenter = _CostCenter.CostCenter and $projection.CompanyCode = _CostCenter.CompanyCode and _CostCenter.ValidityStartDate <= $projection.WorkforceAssgmtEndDate and _CostCenter.ValidityEndDate >= $projection.WorkforceAssgmtEndDate
[1] E_WorkforceAssignmentDetails _Extension $projection.WorkforceAssignment = _Extension.WorkforceAssignment and $projection.WorkforceAssgmtStartDate = _Extension.WorkforceAssgmtStartDate

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Details for Work Assignment view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY WorkforceAssignment workforce_assgmt_id WorkForce Assgmt ID
KEY WorkforceAssgmtStartDate start_date Valn start date
WorkforceAssgmtEndDate end_date Valn End date
WorkforceAssignmentStatus employment_status Employment Status
EmploymentPercent employment_percent Emplymt Percentage
CompanyCode company_code Company Code
CostCenter cost_center Posted Cost Center
ControllingArea controlling_area CO Area
WeeklyWorkingHours weekly_working_hours Working Hours
WeeklyWorkingDays weekly_working_days Working Days
WorkforcePersonJobTitle job_title Job Title
WorkforcePersonJobCode job_code Job Code
ManagerAssignmentID manager_work_assgmt Manager Assgmt ID
Country2DigitISOCode country Venue: Ctry/Reg
ManagerAssignmentExternalID manager_work_assignment_ext_id Manager External ID
WorkforceAssignmentIsPrimary main_employment_indicator Primary Emplymt Ind.
IsBlocked block_ind BlockingInd.
_CompanyCode _CompanyCode
_CostCenter _CostCenter
_WorkforceAssignment _WorkforceAssignment
_WorkforceAssignmentStatus _WorkforceAssignmentStatus

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_WorkAssignmentDetail_1.
-- 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.

CREATE VIEW I_WorkAssignmentDetail_1 AS
SELECT
  workforce_assgmt_id AS WorkforceAssignment,
  start_date AS WorkforceAssgmtStartDate,
  end_date AS WorkforceAssgmtEndDate,
  employment_status AS WorkforceAssignmentStatus,
  employment_percent AS EmploymentPercent,
  company_code AS CompanyCode,
  cost_center AS CostCenter,
  controlling_area AS ControllingArea,
  weekly_working_hours AS WeeklyWorkingHours,
  weekly_working_days AS WeeklyWorkingDays,
  job_title AS WorkforcePersonJobTitle,
  job_code AS WorkforcePersonJobCode,
  manager_work_assgmt AS ManagerAssignmentID,
  country AS Country2DigitISOCode,
  manager_work_assignment_ext_id AS ManagerAssignmentExternalID,
  main_employment_indicator AS WorkforceAssignmentIsPrimary,
  block_ind AS IsBlocked
FROM wfd_d_assgmtdets
LEFT OUTER JOIN I_WorkforceAssignment_1 AS _WorkforceAssignment ON WorkforceAssignment = _WorkforceAssignment.WorkforceAssignment  -- association [1..1]
LEFT OUTER JOIN I_WorkforceAssignmentStatus AS _WorkforceAssignmentStatus ON WorkforceAssignmentStatus = _WorkforceAssignmentStatus.WorkforceAssignmentStatus  -- association [0..1]
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 AND _CostCenter.ValidityStartDate <= WorkforceAssgmtEndDate AND _CostCenter.ValidityEndDate >= WorkforceAssgmtEndDate  -- association [1]
LEFT OUTER JOIN E_WorkforceAssignmentDetails AS _Extension ON WorkforceAssignment = _Extension.WorkforceAssignment AND WorkforceAssgmtStartDate = _Extension.WorkforceAssgmtStartDate  -- association [1]
;