SWF_FLEX_INTGR_LR

DDL: SWF_FLEX_INTGR_LR SQL: SWFFLEXINTGRLR Type: view

Leave Request for Integration Test

SWF_FLEX_INTGR_LR is a CDS View that provides data about "Leave Request for Integration Test" in SAP S/4HANA. It reads from 1 data source (swxformabs) and exposes 28 fields with key field WorkflowLeaveRequest. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
swxformabs swxformabs from

Associations (1)

CardinalityTargetAliasCondition
[0..1] swf_flex_intgr_c _Comment $projection.WorkflowLeaveRequest = _Comment.formnumber

Annotations (4)

NameValueLevelField
AbapCatalog.sqlViewName SWFFLEXINTGRLR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Leave Request for Integration Test view

Fields (28)

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
_Comment _Comment

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 SWF_FLEX_INTGR_LR.
-- 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: SWFFLEXINTGRLR

CREATE VIEW SWF_FLEX_INTGR_LR 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
LEFT OUTER JOIN swf_flex_intgr_c AS _Comment ON WorkflowLeaveRequest = _Comment.formnumber  -- association [0..1]
;