I_WorkflowLeaveRequest
WF Demo: Leave Request Base (CDS)
I_WorkflowLeaveRequest is a CDS View that provides data about "WF Demo: Leave Request Base (CDS)" in SAP S/4HANA. It reads from 1 data source (swxformabs) and exposes 27 fields with key field WorkflowLeaveRequest. Part of development package SWX.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| swxformabs | swxformabs | from |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IWFLEAVREQ | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | WF Demo: Leave Request Base (CDS) | view | |
| ObjectModel.sapObjectNodeType.name | WorkflowDemoLeaveRequest | view |
Fields (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkflowLeaveRequest | swxformabs | formnumber | Number |
| WFLeaveApprovedUTCDateTime | ||||
| WFLeaveApprovedBy | swxformabs | approvby | Approver | |
| WFLeaveCreatedUTCDateTime | ||||
| WFCreatedBy | swxformabs | createdby | User Name | |
| WFCreatorAddressNumber | swxformabs | addrnumber | Address Number | |
| WFCreatorPersonalNumber | swxformabs | pernr | Personnel no. | |
| WFCreatorNameText | swxformabs | name | Zone name | |
| WFCreatorDepartment | swxformabs | department | Department | |
| WFCreatorCostcenter | swxformabs | costcenter | Cost Center | |
| WFLeavePartOneFirstDay | swxformabs | firstday1 | Absent from (1st day) | |
| WFLeavePartOneLastDay | swxformabs | lastday1 | Absent to (last day) | |
| day1_timezoneendasWFLeavePartOneTimezone | ||||
| WFLeavePartOneAbsenceHours | swxformabs | abshours1 | Hours absent | |
| WFLeavePartOneLeaveType | swxformabs | holidaytp1 | Leave Type | |
| WFLeavePartTwoFirstDay | swxformabs | firstday2 | Absent from (1st day) | |
| WFLeavePartTwoLastDay | swxformabs | lastday2 | Absent to (last day) | |
| day2_timezoneendasWFLeavePartTwoTimezone | ||||
| WFLeavePartTwoAbsenceHours | swxformabs | abshours2 | Hours absent | |
| WFLeavePartTwoLeaveType | swxformabs | holidaytp2 | Leave Type | |
| WFLeavePartThreeFirstDay | swxformabs | firstday3 | Absent from (1st day) | |
| WFLeavePartThreeLastDay | swxformabs | lastday3 | Absent to (last day) | |
| WFLeavePartThreeAbsenceHours | swxformabs | abshours3 | Hours absent | |
| WFLeavePartThreeLeaveType | swxformabs | holidaytp3 | Leave Type | |
| WFLeaveReason | swxformabs | reason | Sp.Tax Code Reason | |
| WFLeaveContact | swxformabs | contact | Contact Persons | |
| WFLeaveProcessState | swxformabs | procstate | Editing State |
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_WorkflowLeaveRequest.
-- 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.
-- SQL view name: IWFLEAVREQ
CREATE VIEW I_WorkflowLeaveRequest AS
SELECT
swxformabs.formnumber AS WorkflowLeaveRequest,
dats_tims_to_tstmp(approvdate, approvtime, approv_timezone, $session.client, 'NULL') AS WFLeaveApprovedUTCDateTime,
swxformabs.approvby AS WFLeaveApprovedBy,
dats_tims_to_tstmp(createdate, createtime, create_timezone, $session.client, 'NULL') AS WFLeaveCreatedUTCDateTime,
swxformabs.createdby AS WFCreatedBy,
swxformabs.addrnumber AS WFCreatorAddressNumber,
swxformabs.pernr AS WFCreatorPersonalNumber,
swxformabs.name AS WFCreatorNameText,
swxformabs.department AS WFCreatorDepartment,
swxformabs.costcenter AS WFCreatorCostcenter,
swxformabs.firstday1 AS WFLeavePartOneFirstDay,
swxformabs.lastday1 AS WFLeavePartOneLastDay,
case when swxformabs.day1_timezone = ' ' then 'UTC' else swxformabs.day1_timezone end as WFLeavePartOneTimezone AS day1_timezoneendasWFLeavePartOneTimezone,
swxformabs.abshours1 AS WFLeavePartOneAbsenceHours,
swxformabs.holidaytp1 AS WFLeavePartOneLeaveType,
swxformabs.firstday2 AS WFLeavePartTwoFirstDay,
swxformabs.lastday2 AS WFLeavePartTwoLastDay,
case when swxformabs.day2_timezone = ' ' then 'UTC' else swxformabs.day2_timezone end as WFLeavePartTwoTimezone AS day2_timezoneendasWFLeavePartTwoTimezone,
swxformabs.abshours2 AS WFLeavePartTwoAbsenceHours,
swxformabs.holidaytp2 AS WFLeavePartTwoLeaveType,
swxformabs.firstday3 AS WFLeavePartThreeFirstDay,
swxformabs.lastday3 AS WFLeavePartThreeLastDay,
swxformabs.abshours3 AS WFLeavePartThreeAbsenceHours,
swxformabs.holidaytp3 AS WFLeavePartThreeLeaveType,
swxformabs.reason AS WFLeaveReason,
swxformabs.contact AS WFLeaveContact,
swxformabs.procstate AS WFLeaveProcessState
FROM swxformabs
;
Learn More
- CDS View Annotations — A Complete Guide
- 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 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