I_WorkAssignmentDEX_1

DDL: I_WORKASSIGNMENTDEX_1 Type: view_entity BASIC Package: VDM_WFD_WORK_FORCE

Work Assignments

I_WorkAssignmentDEX_1 (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

WorkAssignment · Human Resources

I_WorkAssignmentDEX_1 is a Basic CDS View that provides data about "Work Assignments" in SAP S/4HANA. It reads from 1 data source (I_WorkAssignmentKeyMapping) and exposes 10 fields with key field WorkAssignment. It has 2 associations to related views. Part of development package VDM_WFD_WORK_FORCE.

SAP Help Documentation

CategoryCDS Views for Data Products
Purpose
This CDS view is designed to extract data related to work assignments of a worker with details about assignment duration and its status. The view supports data extraction and change data capture, enabling efficient tracking and updating of work assignment information. Note This CDS view is released to provide data extraction for SAP Business Data Cloud data products only, and any other use is not supported. This CDS view provides the data to answer the following business questions: What are the details of each work assignment, including start and end dates? Which workforce person is associated with each work assignment? Are there any contingent workers within the current work assignments? What is the country code associated with each work assignment? Are there any blocked work assignments that need attention? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view don't need any special authorization.

Structure
Important Fields Important fields in this view include the following: Field Name Description WorkAssignmentExternalID External ID of Workforce Assignment Country2DigitISOCode Country/Region WorkforcePersonExternalID External Person ID IsContingentWorker Contingent Worker Flag WorkAssignmentStartDate Start Date WorkAssignmentEndDate End Date

Data Extraction
Data Extraction Type This CDS view is enabled for data extraction in full mode as well as in delta mode. Deltas are determined automatically by change data capture.

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessHuman Resources
Application ComponentCA-WFD-BL
CapabilitiesData Source for Data Extraction
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Not Released
PackageHuman Resources for SAP S/4HANA Cloud Public Edition
Description This CDS view is designed to extract data related to work assignments of a worker with details about assignment duration and its status. The view supports data extraction and change data capture, enabling efficient tracking and updating of work assignment information. <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>What are the details of each work assignment, including start and end dates?</p></li> <li><p>Which workforce person is associated with each work assignment?</p></li> <li><p>Are there any contingent workers within the current work assignments?</p></li> <li><p>What is the country code associated with each work assignment?</p></li> <li><p>Are there any blocked work assignments that need attention?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
I_WorkAssignmentKeyMapping WorkAssignmentKeymap from

Associations (2)

CardinalityTargetAliasCondition
[1..*] I_WorkAssgmtDetsDEX_1 _WorkAssignmentDetail WorkAssignmentKeymap.WorkAssignment = _WorkAssignmentDetail.WorkAssignment
[1] I_WorkforcePersonDEX_1 _WorkforcePerson $projection.WorkforcePersonExternalID = _WorkforcePerson.WorkforcePersonExternalID

Annotations (11)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
VDM.viewType #BASIC view
Analytics.dataExtraction.enabled true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #NONE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.sapObjectNodeType.name WorkAssignment view
EndUserText.label Work Assignments view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY WorkAssignment I_WorkAssignmentKeyMapping WorkAssignment Workforce Assignment ID
WorkAssignmentExternalID I_WorkAssignmentKeyMapping WorkAssignmentExternalID Workforce Assignment External ID
Country2DigitISOCode I_WorkAssignmentKeyMapping Country2DigitISOCode Workforce Country ISO Code
WorkforcePersonExternalID
WorkAssignmentStartDate I_WorkAssignmentKeyMapping WorkAssignmentStartDate Start Date
WorkAssignmentEndDate I_WorkAssignmentKeyMapping WorkAssignmentEndDate End Date
IsContingentWorker I_WorkAssignmentKeyMapping IsContingentWorker Contingent Worker Flag
IsBlocked I_WorkAssignmentKeyMapping IsBlocked Boolean Variable (X = True, - = False, Space = Unknown)
_WorkAssignmentDetail _WorkAssignmentDetail
_WorkforcePerson _WorkforcePerson

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_WorkAssignmentDEX_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_WorkAssignmentDEX_1 AS
SELECT
  WorkAssignmentKeymap.WorkAssignment AS WorkAssignment,
  WorkAssignmentKeymap.WorkAssignmentExternalID AS WorkAssignmentExternalID,
  WorkAssignmentKeymap.Country2DigitISOCode AS Country2DigitISOCode,
  upper( WorkAssignmentKeymap.WorkforcePersonExternalID ) AS WorkforcePersonExternalID,
  WorkAssignmentKeymap.WorkAssignmentStartDate AS WorkAssignmentStartDate,
  WorkAssignmentKeymap.WorkAssignmentEndDate AS WorkAssignmentEndDate,
  WorkAssignmentKeymap.IsContingentWorker AS IsContingentWorker,
  WorkAssignmentKeymap.IsBlocked AS IsBlocked
FROM I_WorkAssignmentKeyMapping AS WorkAssignmentKeymap
LEFT OUTER JOIN I_WorkAssgmtDetsDEX_1 AS _WorkAssignmentDetail ON WorkAssignmentKeymap.WorkAssignment = _WorkAssignmentDetail.WorkAssignment  -- association [1..*]
LEFT OUTER JOIN I_WorkforcePersonDEX_1 AS _WorkforcePerson ON WorkforcePersonExternalID = _WorkforcePerson.WorkforcePersonExternalID  -- association [1]
;