R_TimeSheet_2
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)
| Source | Alias | Join Type |
|---|---|---|
| timesheet | timesheet | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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