I_WorkflowLeaveRequest

DDL: I_WORKFLOWLEAVEREQUEST SQL: IWFLEAVREQ Type: view Package: SWX

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)

SourceAliasJoin Type
swxformabs swxformabs from

Annotations (5)

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

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