SWF_FLEX_INTGR_LR
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)
| Source | Alias | Join Type |
|---|---|---|
| swxformabs | swxformabs | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | swf_flex_intgr_c | _Comment | $projection.WorkflowLeaveRequest = _Comment.formnumber |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | SWFFLEXINTGRLR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Leave Request for Integration Test | view |
Fields (28)
| 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 | |
| _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]
;
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