R_TimeSheet_2

DDL: R_TIMESHEET_2 Type: view_entity BASIC Package: VDM_TIMESHEET_CORE

TimeSheet

R_TimeSheet_2 is a Basic CDS View that provides data about "TimeSheet" in SAP S/4HANA. It reads from 1 data source (timesheet) and exposes 59 fields with key field TimeSheetUUID. It has 8 associations to related views. Part of development package VDM_TIMESHEET_CORE.

Data Sources (1)

SourceAliasJoin Type
timesheet timesheet from

Associations (8)

CardinalityTargetAliasCondition
[1..1] I_WorkAssignment_1 _WorkAssignment $projection.WorkAssignmentExternalID = _WorkAssignment.WorkAssignmentExternalID and $projection.Country2DigitISOCode = _WorkAssignment.Country2DigitISOCode
[1..1] I_TimeSheetTask _TimeSheetTask $projection.TimeSheetTaskUUID = _TimeSheetTask.TimeSheetTaskUUID
[1..1] I_CostCenterActivityType _CostCenterActivityType $projection.ActivityType = _CostCenterActivityType.CostCtrActivityType and _CostCenterActivityType.ValidityEndDate >= $session.system_date and _CostCenterActivityType.ValidityStartDate <= $session.system_date
[0..1] I_TimeSheetWrkLoc _TimeSheetWrkLoc $projection.TimeSheetWrkLocCode = _TimeSheetWrkLoc.TimeSheetWrkLocCode and _TimeSheetWrkLoc.TimeSheetWrkLocEndDate >= $session.system_date and _TimeSheetWrkLoc.TimeSheetWrkLocStartDate <= $session.system_date
[0..1] I_TimeSheetOvertimeCat _TimeSheetOvertimeCat $projection.TimeSheetOvertimeCategory = _TimeSheetOvertimeCat.TimeSheetOvertimeCategory
[0..1] I_TimeSheetTaskType _TimeSheetTaskType $projection.TimeSheetTaskType = _TimeSheetTaskType.TimeSheetTaskType
[0..1] I_TimeSheetRejectionReason _TimeSheetRejectionReason $projection.TimeSheetRejectionReason = _TimeSheetRejectionReason.TimeSheetRejectionReason
[1..1] I_TimeSheetProcgStatus _TimeSheetProcessingStatus $projection.TimeSheetProcessingStatus = _TimeSheetProcessingStatus.TimeSheetProcessingStatus

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
EndUserText.label TimeSheet view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (59)

KeyFieldSource TableSource FieldDescription
KEY TimeSheetUUID timesheetuuid
WorkforcePersonID workforcepersonid Worker ID
WorkforcePersonExternalID workforcepersonexternalid External Person ID
BusinessPartner businesspartner Issuing Authority
WorkAssignmentExternalID workassignmentexternalid WFA Ext. ID
Country2DigitISOCode country2digitisocode Country/Region
WorkAssignment workassignment WorkForce Assgmt ID
TimeSheetDate timesheetdate Date
RecordedHours recordedhours Hours
HoursUnitOfMeasure hoursunitofmeasure Unit of Measure
TimeSheetStartTime timesheetstarttime
TimeSheetEndTime timesheetendtime
TimeSheetLongText timesheetlongtext
TimeSheetTaskUUID timesheettaskuuid
SenderCostCenter sendercostcenter Sender Cost Center
ReceiverCostCenter receivercostcenter
ProjectUUID projectuuid Project UUID
ProjectElementUUID projectelementuuid Obj Link Entity GUID
ActivityType activitytype Activity Type
EntProjElmntWorkItemUUID entprojelmntworkitemuuid Entity GUID
BillableControl billablecontrol Billable Control
TimeSheetOvertimeCategory timesheetovertimecategory
TimeSheetWrkLocCode timesheetwrkloccode
PurchaseOrder purchaseorder Purchasing Document
PurchaseOrderItem purchaseorderitem Purchasing Document Item
ReceiverPubSecFund receiverpubsecfund
ReceiverPubSecFuncnlArea receiverpubsecfuncnlarea
ReceiverPubSecGrant receiverpubsecgrant
ReceiverPubSecBudgetPeriod receiverpubsecbudgetperiod
SenderPubSecFund senderpubsecfund
SendingPubSecFunctionalArea sendingpubsecfunctionalarea
SenderPubSecGrant senderpubsecgrant
SenderPubSecBudgetPeriod senderpubsecbudgetperiod
ServiceDocumentType servicedocumenttype Transaction Type
ServiceDocument servicedocument Transaction ID
ServiceDocumentItem servicedocumentitem Service Document
TimeSheetTaskType timesheettasktype Task Type
TimeSheetTaskLevel timesheettasklevel
TimeSheetTaskComponent timesheettaskcomponent
StatisticalKeyFigure statisticalkeyfigure Statistical Key Figure
TimeSheetProcessingStatus timesheetprocessingstatus
TimeSheetRejectionReason timesheetrejectionreason Rejection reas.
WorkflowTaskInternalID workflowtaskinternalid Work Item ID
TimeSheetAccountingDocument timesheetaccountingdocument Document no.
TimeSheetIsChangedAfterApprvl timesheetischangedafterapprvl
TimeSheetLastUpdatedSource timesheetlastupdatedsource
CreatedByUser createdbyuser User Name
LastChangedByUser lastchangedbyuser User Name
CreationDateTime creationdatetime Timestamp
LastChangeDateTime lastchangedatetime Timestamp
TimeSheetLastChangeDateTime timesheetlastchangedatetime Changed On
_WorkAssignment _WorkAssignment
_TimeSheetTask _TimeSheetTask
_CostCenterActivityType _CostCenterActivityType
_TimeSheetWrkLoc _TimeSheetWrkLoc
_TimeSheetOvertimeCat _TimeSheetOvertimeCat
_TimeSheetTaskType _TimeSheetTaskType
_TimeSheetRejectionReason _TimeSheetRejectionReason
_TimeSheetProcessingStatus _TimeSheetProcessingStatus

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 R_TimeSheet_2.
-- 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 R_TimeSheet_2 AS
SELECT
  TimeSheetUUID,
  WorkforcePersonID,
  WorkforcePersonExternalID,
  BusinessPartner,
  WorkAssignmentExternalID,
  Country2DigitISOCode,
  WorkAssignment,
  TimeSheetDate,
  RecordedHours,
  HoursUnitOfMeasure,
  TimeSheetStartTime,
  TimeSheetEndTime,
  TimeSheetLongText,
  TimeSheetTaskUUID,
  SenderCostCenter,
  ReceiverCostCenter,
  ProjectUUID,
  ProjectElementUUID,
  ActivityType,
  EntProjElmntWorkItemUUID,
  BillableControl,
  TimeSheetOvertimeCategory,
  TimeSheetWrkLocCode,
  PurchaseOrder,
  PurchaseOrderItem,
  ReceiverPubSecFund,
  ReceiverPubSecFuncnlArea,
  ReceiverPubSecGrant,
  ReceiverPubSecBudgetPeriod,
  SenderPubSecFund,
  SendingPubSecFunctionalArea,
  SenderPubSecGrant,
  SenderPubSecBudgetPeriod,
  ServiceDocumentType,
  ServiceDocument,
  ServiceDocumentItem,
  TimeSheetTaskType,
  TimeSheetTaskLevel,
  TimeSheetTaskComponent,
  StatisticalKeyFigure,
  TimeSheetProcessingStatus,
  TimeSheetRejectionReason,
  WorkflowTaskInternalID,
  TimeSheetAccountingDocument,
  TimeSheetIsChangedAfterApprvl,
  TimeSheetLastUpdatedSource,
  CreatedByUser,
  LastChangedByUser,
  CreationDateTime,
  LastChangeDateTime,
  TimeSheetLastChangeDateTime
FROM timesheet
LEFT OUTER JOIN I_WorkAssignment_1 AS _WorkAssignment ON WorkAssignmentExternalID = _WorkAssignment.WorkAssignmentExternalID AND Country2DigitISOCode = _WorkAssignment.Country2DigitISOCode  -- association [1..1]
LEFT OUTER JOIN I_TimeSheetTask AS _TimeSheetTask ON TimeSheetTaskUUID = _TimeSheetTask.TimeSheetTaskUUID  -- association [1..1]
LEFT OUTER JOIN I_CostCenterActivityType AS _CostCenterActivityType ON ActivityType = _CostCenterActivityType.CostCtrActivityType AND _CostCenterActivityType.ValidityEndDate >= $session.system_date AND _CostCenterActivityType.ValidityStartDate <= $session.system_date  -- association [1..1]
LEFT OUTER JOIN I_TimeSheetWrkLoc AS _TimeSheetWrkLoc ON TimeSheetWrkLocCode = _TimeSheetWrkLoc.TimeSheetWrkLocCode AND _TimeSheetWrkLoc.TimeSheetWrkLocEndDate >= $session.system_date AND _TimeSheetWrkLoc.TimeSheetWrkLocStartDate <= $session.system_date  -- association [0..1]
LEFT OUTER JOIN I_TimeSheetOvertimeCat AS _TimeSheetOvertimeCat ON TimeSheetOvertimeCategory = _TimeSheetOvertimeCat.TimeSheetOvertimeCategory  -- association [0..1]
LEFT OUTER JOIN I_TimeSheetTaskType AS _TimeSheetTaskType ON TimeSheetTaskType = _TimeSheetTaskType.TimeSheetTaskType  -- association [0..1]
LEFT OUTER JOIN I_TimeSheetRejectionReason AS _TimeSheetRejectionReason ON TimeSheetRejectionReason = _TimeSheetRejectionReason.TimeSheetRejectionReason  -- association [0..1]
LEFT OUTER JOIN I_TimeSheetProcgStatus AS _TimeSheetProcessingStatus ON TimeSheetProcessingStatus = _TimeSheetProcessingStatus.TimeSheetProcessingStatus  -- association [1..1]
;