Swx_Sddl_Formabsenc_Base
WF Demo: Leave Request Base (CDS)
Swx_Sddl_Formabsenc_Base 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 28 fields with key field leaveRequestId.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| swxformabs | leaveRequest | from |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | SWX_V_FORMABSBAS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | WF Demo: Leave Request Base (CDS) | view |
Fields (28)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | leaveRequestId | swxformabs | formnumber | Number |
| t_approvedTimestamp | ||||
| approvedBy | swxformabs | approvby | Approver | |
| t_createdTimestamp | ||||
| createdBy | swxformabs | createdby | User Name | |
| addressNumber | swxformabs | addrnumber | Address Number | |
| personalNumber | swxformabs | pernr | Personnel no. | |
| creatorNameText | swxformabs | name | Zone name | |
| creatorDepartment | swxformabs | department | Department | |
| costcenter | swxformabs | costcenter | Cost Center | |
| partOneFirstDay | swxformabs | firstday1 | Absent from (1st day) | |
| partOneLastDay | swxformabs | lastday1 | Absent to (last day) | |
| day1_timezoneendaspartOneTimezone | ||||
| partOneAbsenceHours | swxformabs | abshours1 | Hours absent | |
| partOneLeaveType | swxformabs | holidaytp1 | Leave Type | |
| partTwoFirstDay | swxformabs | firstday2 | Absent from (1st day) | |
| partTwoLastDay | swxformabs | lastday2 | Absent to (last day) | |
| day2_timezoneendaspartTwoTimezone | ||||
| partTwoAbsenceHours | swxformabs | abshours2 | Hours absent | |
| partTwoLeaveType | swxformabs | holidaytp2 | Leave Type | |
| partThreeFirstDay | swxformabs | firstday3 | Absent from (1st day) | |
| partThreeLastDay | swxformabs | lastday3 | Absent to (last day) | |
| day3_timezoneendaspartThreeTimezone | ||||
| partThreeAbsenceHours | swxformabs | abshours3 | Hours absent | |
| partThreeLeaveType | swxformabs | holidaytp3 | Leave Type | |
| reason | swxformabs | reason | Sp.Tax Code Reason | |
| contact | swxformabs | contact | Contact Persons | |
| leaveRequestState | 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 Swx_Sddl_Formabsenc_Base.
-- 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: SWX_V_FORMABSBAS
CREATE VIEW Swx_Sddl_Formabsenc_Base AS
SELECT
leaveRequest.formnumber AS leaveRequestId,
dats_tims_to_tstmp(approvdate, approvtime, approv_timezone, $session.client, 'NULL') AS t_approvedTimestamp,
leaveRequest.approvby AS approvedBy,
dats_tims_to_tstmp(createdate, createtime, create_timezone, $session.client, 'NULL') AS t_createdTimestamp,
leaveRequest.createdby AS createdBy,
leaveRequest.addrnumber AS addressNumber,
leaveRequest.pernr AS personalNumber,
leaveRequest.name AS creatorNameText,
leaveRequest.department AS creatorDepartment,
leaveRequest.costcenter AS costcenter,
leaveRequest.firstday1 AS partOneFirstDay,
leaveRequest.lastday1 AS partOneLastDay,
case when leaveRequest.day1_timezone = ' ' then 'UTC' else leaveRequest.day1_timezone end as partOneTimezone AS day1_timezoneendaspartOneTimezone,
leaveRequest.abshours1 AS partOneAbsenceHours,
leaveRequest.holidaytp1 AS partOneLeaveType,
leaveRequest.firstday2 AS partTwoFirstDay,
leaveRequest.lastday2 AS partTwoLastDay,
case when leaveRequest.day2_timezone = ' ' then 'UTC' else leaveRequest.day2_timezone end as partTwoTimezone AS day2_timezoneendaspartTwoTimezone,
leaveRequest.abshours2 AS partTwoAbsenceHours,
leaveRequest.holidaytp2 AS partTwoLeaveType,
leaveRequest.firstday3 AS partThreeFirstDay,
leaveRequest.lastday3 AS partThreeLastDay,
case when leaveRequest.day3_timezone = ' ' then 'UTC' else leaveRequest.day3_timezone end as partThreeTimezone AS day3_timezoneendaspartThreeTimezone,
leaveRequest.abshours3 AS partThreeAbsenceHours,
leaveRequest.holidaytp3 AS partThreeLeaveType,
leaveRequest.reason AS reason,
leaveRequest.contact AS contact,
leaveRequest.procstate AS leaveRequestState
FROM swxformabs AS leaveRequest
;
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