I_WorkforceAvailability
Workforce Availability Header Details
I_WorkforceAvailability is a Basic CDS View that provides data about "Workforce Availability Header Details" in SAP S/4HANA. It reads from 1 data source (wfd_d_avail_hdr) and exposes 17 fields with key fields WorkAssignment, WorkforceAvailabilityDate, ExternalWorkAssignmentID. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| wfd_d_avail_hdr | AvailyHdr | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_WorkforceAvailabilitySuplmnt | _AvailabilitySupplement | $projection.WorkAssignment = _AvailabilitySupplement.WorkAssignment and $projection.WorkforceAvailabilityDate = _AvailabilitySupplement.WorkforceAvailabilityDate and $projection.ExternalWorkAssignmentID = _AvailabilitySupplement.ExternalWorkAssignmentID |
| [0..*] | I_WorkforceAvailabilityIntvl | _AvailabilityTimeInterval | $projection.WorkAssignment = _AvailabilityTimeInterval.WorkAssignment and $projection.WorkforceAvailabilityDate = _AvailabilityTimeInterval.WorkforceAvailabilityDate and $projection.ExternalWorkAssignmentID = _AvailabilityTimeInterval.ExternalWorkAssignmentID |
| [0..*] | I_WorkAssignmentDetsJobCodeFam | _WorkAssgmtDetsJobCodeFamily | $projection.WorkAssignment = _WorkAssgmtDetsJobCodeFamily.WorkAssignment |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| EndUserText.label | Workforce Availability Header Details | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkAssignment | wfd_d_avail_hdr | work_assignment_id | WorkForce Assgmt ID |
| KEY | WorkforceAvailabilityDate | wfd_d_avail_hdr | availability_date | Availability Date |
| KEY | ExternalWorkAssignmentID | wfd_d_avail_hdr | work_assignment_ext_id | WFA Ext. ID |
| WorkforceAvailabilityID | wfd_d_avail_hdr | workforce_availability_id | WFD Avail ID | |
| WorkforcePersonID | wfd_d_avail_hdr | workforce_person_id | Worker ID | |
| WrkfrcAvailyRecordDataSource | wfd_d_avail_hdr | data_source | Data Source | |
| NormalWorkingTimeVal | wfd_d_avail_hdr | normal_working_time | Working Time | |
| NormalWorkingTimeInHours | wfd_d_avail_hdr | normal_working_time_numeric | Time in numeric | |
| ScheduledWorkingTimeVal | wfd_d_avail_hdr | scheduled_time | Scheduled Time | |
| WorkingShiftCode | wfd_d_avail_hdr | shift_code | Shift Code | |
| WrkfrcAvailyHolidayCode | wfd_d_avail_hdr | holiday_code | Holiday Code | |
| BlockingIndicator | wfd_d_avail_hdr | block_ind | BlockingInd. | |
| LastChangeDateTime | wfd_d_avail_hdr | last_changed_at | Timestamp | |
| LastChangedByUser | wfd_d_avail_hdr | last_changed_by | Username | |
| _WorkAssgmtDetsJobCodeFamily | _WorkAssgmtDetsJobCodeFamily | |||
| _AvailabilitySupplement | _AvailabilitySupplement | |||
| _AvailabilityTimeInterval | _AvailabilityTimeInterval |
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_WorkforceAvailability.
-- 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_WorkforceAvailability AS
SELECT
AvailyHdr.work_assignment_id AS WorkAssignment,
AvailyHdr.availability_date AS WorkforceAvailabilityDate,
AvailyHdr.work_assignment_ext_id AS ExternalWorkAssignmentID,
AvailyHdr.workforce_availability_id AS WorkforceAvailabilityID,
AvailyHdr.workforce_person_id AS WorkforcePersonID,
AvailyHdr.data_source AS WrkfrcAvailyRecordDataSource,
AvailyHdr.normal_working_time AS NormalWorkingTimeVal,
AvailyHdr.normal_working_time_numeric AS NormalWorkingTimeInHours,
AvailyHdr.scheduled_time AS ScheduledWorkingTimeVal,
AvailyHdr.shift_code AS WorkingShiftCode,
AvailyHdr.holiday_code AS WrkfrcAvailyHolidayCode,
AvailyHdr.block_ind AS BlockingIndicator,
AvailyHdr.last_changed_at AS LastChangeDateTime,
AvailyHdr.last_changed_by AS LastChangedByUser
FROM wfd_d_avail_hdr AS AvailyHdr
LEFT OUTER JOIN I_WorkforceAvailabilitySuplmnt AS _AvailabilitySupplement ON WorkAssignment = _AvailabilitySupplement.WorkAssignment AND WorkforceAvailabilityDate = _AvailabilitySupplement.WorkforceAvailabilityDate AND ExternalWorkAssignmentID = _AvailabilitySupplement.ExternalWorkAssignmentID -- association [0..*]
LEFT OUTER JOIN I_WorkforceAvailabilityIntvl AS _AvailabilityTimeInterval ON WorkAssignment = _AvailabilityTimeInterval.WorkAssignment AND WorkforceAvailabilityDate = _AvailabilityTimeInterval.WorkforceAvailabilityDate AND ExternalWorkAssignmentID = _AvailabilityTimeInterval.ExternalWorkAssignmentID -- association [0..*]
LEFT OUTER JOIN I_WorkAssignmentDetsJobCodeFam AS _WorkAssgmtDetsJobCodeFamily ON WorkAssignment = _WorkAssgmtDetsJobCodeFamily.WorkAssignment -- association [0..*]
;
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