I_WorkAssgmtDetsDEX
Workforce Person Assignment Details
I_WorkAssgmtDetsDEX (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
WorkAssignmentDetails · Human Resources
I_WorkAssgmtDetsDEX is a Basic CDS View that provides data about "Workforce Person Assignment Details" in SAP S/4HANA. It reads from 2 data sources (wfd_d_assgmtdets, wfd_d_keymap) and exposes 21 fields with key fields WorkAssignment, WorkAssignmentStartDate. It has 3 associations to related views.
SAP Help Documentation
| Category | CDS Views for Human Resources |
|---|---|
| Status | Employment Status of Work Assignment |
You can use this CDS view to retrieve the data related to the work assignment details of a workforce person. This CDS view is enabled for data extraction. This CDS view provides the data to answer the following business questions: How can I retrieve the data related to the work assignment details of the workforce person? What is the validity of the work assignments? What are the planned working hours of the work assignment? How can I retrieve the job details of the work assignment? How can I retrieve the supervisor details? How can I retrieve the organization details of the work assignment? 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 To use this CDS view, the following business catalogs need to be assigned to a user: SAP_WFD_BC_WRK_DSP_PC (Worker – Display) SAP_CMD_BC_BP_DISP_PC (is dependent catalog)
Structure
Further Important Fields Important fields in this view include: Field Name Description WorkAssignment ID for Work Assignment WorkAssignmentStartDate Start Date of Work Assignment WorkAssignmentEndDate End Date of Work Assignment WorkforcePersonExternalID External ID of Workforce Person BusinessPartner Business Partner Number WorkAssignmentIsPrimary Main Employment Indicator WorkAssignmentExternalID External ID of Work Assignment SupervisorWorkAssignmentID Work Assignment ID of Manager SupervisorWorkAssignmentExtID External ID of Manager WorkforcePersonJobTitle Job Title of Workforce Person WorkforcePersonJobCode Job Code of Workforce Person WorkingHoursPerWeek Working Hours in a Week WorkingDaysPerWeek Working Days in a Week WorkAssignmentStatus Employment Status of Work Assignment CompanyCode Company Code of Work Assignment CostCenter Cost Center of Work Assignment CountryOrRegion Country/Region of Work Assignment
SAP Business Warehouse (SAP BW) Extraction
Data Extraction Type Full Delta (Delta-enabled with change data capture)
Data Integration and Extraction
Extracting data from SAP S/4HANA Cloud Public Edition to data consumers is supported via CDS views that are enabled for data extraction based on ABAP CDS technology. These extraction views are part of the virtual data model (VDM) and provide a stable and consistent interface to the data. The data extraction capabilities of the ABAP CDS views are organized by specific CDS annotations. These determine whether a CDS view is enabled for data extraction and which type of data extraction it supports (full or delta). For more information, see Data Integration .
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Human Resources |
| Application Component | CA-WFD-BL |
| Capabilities | Data Source for Data Extraction |
| Package | Human Resources for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| wfd_d_assgmtdets | assgmtdets | from |
| wfd_d_keymap | keymap | inner |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_WorkforcePersonDEX | _WorkforcePerson | $projection.BusinessPartner = _WorkforcePerson.BusinessPartner |
| [1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [1] | I_CostCenter | _CostCenter | $projection.CostCenter = _CostCenter.CostCenter |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| VDM.viewType | #BASIC | view | |
| Analytics.dataExtraction.enabled | true | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.sapObjectNodeType.name | WorkAssignmentDetails | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Workforce Person Assignment Details | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkAssignment | wfd_d_assgmtdets | workforce_assgmt_id | WorkForce Assignment ID |
| KEY | WorkAssignmentStartDate | wfd_d_assgmtdets | start_date | Valn start date |
| WorkAssignmentEndDate | wfd_d_assgmtdets | end_date | Valn End date | |
| WorkforcePersonExternalID | wfd_d_keymap | person_id_external | External Person ID | |
| BusinessPartner | wfd_d_keymap | business_partner_id | Business Partner Number | |
| WorkAssignmentIsPrimary | wfd_d_assgmtdets | main_employment_indicator | Primary Employment Indicator | |
| WorkAssignmentExternalID | wfd_d_keymap | user_id | User Scope | |
| SupervisorWorkAssignmentID | wfd_d_assgmtdets | manager_work_assgmt | Manager Assignment ID | |
| SupervisorWorkAssignmentExtID | wfd_d_assgmtdets | manager_work_assignment_ext_id | Manager External ID | |
| WorkforcePersonJobTitle | wfd_d_assgmtdets | job_title | Job Title | |
| WorkforcePersonJobCode | wfd_d_assgmtdets | job_code | Job Code | |
| WorkingHoursPerWeek | wfd_d_assgmtdets | weekly_working_hours | Working Hours in a Week | |
| EmploymentPercent | wfd_d_assgmtdets | employment_percent | Employment Percentage | |
| WorkingDaysPerWeek | wfd_d_assgmtdets | weekly_working_days | Working Days in a Week | |
| WorkAssignmentStatus | wfd_d_assgmtdets | employment_status | Employment Status | |
| CompanyCode | wfd_d_assgmtdets | company_code | Company Code | |
| CostCenter | wfd_d_assgmtdets | cost_center | Posted Cost Center | |
| CountryOrRegion | Country/Region Key | |||
| _WorkforcePerson | _WorkforcePerson | |||
| _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_WorkAssgmtDetsDEX.
-- 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_WorkAssgmtDetsDEX AS
SELECT
assgmtdets.workforce_assgmt_id AS WorkAssignment,
assgmtdets.start_date AS WorkAssignmentStartDate,
assgmtdets.end_date AS WorkAssignmentEndDate,
keymap.person_id_external AS WorkforcePersonExternalID,
keymap.business_partner_id AS BusinessPartner,
assgmtdets.main_employment_indicator AS WorkAssignmentIsPrimary,
keymap.user_id AS WorkAssignmentExternalID,
assgmtdets.manager_work_assgmt AS SupervisorWorkAssignmentID,
assgmtdets.manager_work_assignment_ext_id AS SupervisorWorkAssignmentExtID,
assgmtdets.job_title AS WorkforcePersonJobTitle,
assgmtdets.job_code AS WorkforcePersonJobCode,
assgmtdets.weekly_working_hours AS WorkingHoursPerWeek,
assgmtdets.employment_percent AS EmploymentPercent,
assgmtdets.weekly_working_days AS WorkingDaysPerWeek,
assgmtdets.employment_status AS WorkAssignmentStatus,
assgmtdets.company_code AS CompanyCode,
assgmtdets.cost_center AS CostCenter,
cast( assgmtdets.country as land1 ) AS CountryOrRegion
FROM wfd_d_assgmtdets AS assgmtdets
INNER JOIN wfd_d_keymap AS keymap ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_WorkforcePersonDEX AS _WorkforcePerson ON BusinessPartner = _WorkforcePerson.BusinessPartner -- association [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 -- 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