I_WorkAssignmentDetail_1
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)
| Source | Alias | Join Type |
|---|---|---|
| wfd_d_assgmtdets | wfd_d_assgmtdets | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkforceAssignment | workforce_assgmt_id | ||
| KEY | WorkforceAssgmtStartDate | start_date | ||
| WorkforceAssgmtEndDate | end_date | |||
| WorkforceAssignmentStatus | employment_status | |||
| EmploymentPercent | employment_percent | |||
| CompanyCode | company_code | |||
| CostCenter | cost_center | |||
| ControllingArea | controlling_area | |||
| WeeklyWorkingHours | weekly_working_hours | |||
| WeeklyWorkingDays | weekly_working_days | |||
| WorkforcePersonJobTitle | job_title | |||
| WorkforcePersonJobCode | job_code | |||
| ManagerAssignmentID | manager_work_assgmt | |||
| Country2DigitISOCode | country | |||
| ManagerAssignmentExternalID | manager_work_assignment_ext_id | |||
| WorkforceAssignmentIsPrimary | main_employment_indicator | |||
| IsBlocked | block_ind | |||
| _CompanyCode | _CompanyCode | |||
| _CostCenter | _CostCenter | |||
| _WorkforceAssignment | _WorkforceAssignment | |||
| _WorkforceAssignmentStatus | _WorkforceAssignmentStatus |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Details for Work Assignment'
@Metadata.ignorePropagatedAnnotations: true
@VDM: {
viewType: #BASIC,
lifecycle.contract.type: #SAP_INTERNAL_API
}
@ObjectModel: {
semanticKey: ['WorkforceAssignment', 'WorkforceAssgmtStartDate'],
usageType: {
dataClass: #TRANSACTIONAL,
serviceQuality: #A,
sizeCategory: #M
}
}
//............................................................................................................................
// This CDS view is meant for private consumption in Worker Overview ONLY ---- Do not use it for for other applications
//............................................................................................................................
define view entity I_WorkAssignmentDetail_1
as select from wfd_d_assgmtdets
association [1..1] to I_WorkforceAssignment_1 as _WorkforceAssignment on $projection.WorkforceAssignment = _WorkforceAssignment.WorkforceAssignment
association [0..1] to I_WorkforceAssignmentStatus as _WorkforceAssignmentStatus on $projection.WorkforceAssignmentStatus = _WorkforceAssignmentStatus.WorkforceAssignmentStatus
association [1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode = _CompanyCode.CompanyCode
association [1] to I_CostCenter as _CostCenter on $projection.CostCenter = _CostCenter.CostCenter
and $projection.CompanyCode = _CostCenter.CompanyCode
and _CostCenter.ValidityStartDate <= $projection.WorkforceAssgmtEndDate
and _CostCenter.ValidityEndDate >= $projection.WorkforceAssgmtEndDate
association [1] to E_WorkforceAssignmentDetails as _Extension on $projection.WorkforceAssignment = _Extension.WorkforceAssignment
and $projection.WorkforceAssgmtStartDate = _Extension.WorkforceAssgmtStartDate
{
key workforce_assgmt_id as WorkforceAssignment,
key start_date as WorkforceAssgmtStartDate,
end_date as WorkforceAssgmtEndDate,
@ObjectModel.foreignKey.association: '_WorkforceAssignmentStatus'
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,
@Semantics.booleanIndicator: true
main_employment_indicator as WorkforceAssignmentIsPrimary,
block_ind as IsBlocked,
_CompanyCode,
_CostCenter,
@ObjectModel.association.type: [#TO_COMPOSITION_PARENT,
#TO_COMPOSITION_ROOT]
_WorkforceAssignment,
_WorkforceAssignmentStatus
}
//where
//workforce_assgmt_id is not null
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"WFD_D_ASSGMTDETS"
],
"ASSOCIATED":
[
"I_COMPANYCODE",
"I_COSTCENTER",
"I_WORKFORCEASSIGNMENTSTATUS",
"I_WORKFORCEASSIGNMENT_1"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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