I_TimeSheetHoursExcludingDraft

DDL: I_TIMESHEETHOURSEXCLUDINGDRAFT Type: view_entity BASIC Package: VDM_TIMESHEET_CORE

Timesheet active hours

I_TimeSheetHoursExcludingDraft is a Basic CDS View that provides data about "Timesheet active hours" in SAP S/4HANA. It reads from 1 data source (I_TimeSheet_2) and exposes 6 fields with key field TimeSheetUUID. Part of development package VDM_TIMESHEET_CORE.

Data Sources (1)

SourceAliasJoin Type
I_TimeSheet_2 TimeSheet from

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Timesheet active hours view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY TimeSheetUUID I_TimeSheet_2 TimeSheetUUID
WorkAssignmentExternalID I_TimeSheet_2 WorkAssignmentExternalID WFA Ext. ID
TimeSheetDate I_TimeSheet_2 TimeSheetDate Date
HoursUnitOfMeasure I_TimeSheet_2 HoursUnitOfMeasure Unit of Measure
TimeSheetProcessingStatus I_TimeSheet_2 TimeSheetProcessingStatus
dec52endasRecordedHours

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_TimeSheetHoursExcludingDraft.
-- 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 I_TimeSheetHoursExcludingDraft AS
SELECT
  TimeSheet.TimeSheetUUID AS TimeSheetUUID,
  TimeSheet.WorkAssignmentExternalID AS WorkAssignmentExternalID,
  TimeSheet.TimeSheetDate AS TimeSheetDate,
  TimeSheet.HoursUnitOfMeasure AS HoursUnitOfMeasure,
  TimeSheet.TimeSheetProcessingStatus AS TimeSheetProcessingStatus,
  case when TimeSheetDraft.TimeSheetUUID is null then cast(TimeSheet.RecordedHours as abap.dec(5,2)) else cast(0 as abap.dec(5,2)) end as RecordedHours AS dec52endasRecordedHours
FROM I_TimeSheet_2 AS TimeSheet
;