I_WorkAssgmtDetsDEX

DDL: I_WORKASSGMTDETSDEX Type: view_entity BASIC

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

CategoryCDS Views for Human Resources
StatusEmployment Status of Work Assignment
Purpose
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 .

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessHuman Resources
Application ComponentCA-WFD-BL
CapabilitiesData Source for Data Extraction
PackageHuman Resources for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (2)

SourceAliasJoin Type
wfd_d_assgmtdets assgmtdets from
wfd_d_keymap keymap inner

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;