C_SWF_SWD_LeavReq_UT

DDL: C_SWF_SWD_LEAVREQ_UT Type: view_entity

CDS Based Custom Attributes: Unit Test - Keys Match

C_SWF_SWD_LeavReq_UT is a CDS View that provides data about "CDS Based Custom Attributes: Unit Test - Keys Match" in SAP S/4HANA. It reads from 1 data source (swxformabs) and exposes 27 fields with key field WorkflowLeaveRequest.

Data Sources (1)

SourceAliasJoin Type
swxformabs swxformabs from

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label CDS Based Custom Attributes: Unit Test - Keys Match view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED 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 C_SWF_SWD_LeavReq_UT.
-- 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 C_SWF_SWD_LeavReq_UT 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
;