R_TimeSheetTP
Time Sheet - TP
R_TimeSheetTP is a Transactional CDS View that provides data about "Time Sheet - TP" in SAP S/4HANA. It reads from 1 data source (R_TimeSheet) and exposes 29 fields with key field TimeSheetRecordUUID. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_TimeSheet | TimeSheet | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_WorkAssgmtDetsDEX | _WorkAssgmtDets | $projection.WorkAssignment = _WorkAssgmtDets.WorkAssignment |
| [1..1] | I_BllbleCtrlBillgCtrlCatAssgmt | _BllbleCtrlBillgCtrlCatAssgmt | $projection.BillableControl = _BllbleCtrlBillgCtrlCatAssgmt.BillableControl |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Time Sheet - TP | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| ObjectModel.sapObjectNodeType.name | TimeSheet | view | |
| ObjectModel.representativeKey | TimeSheetRecordUUID | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TimeSheetRecordUUID | TimeSheetRecordUUID | GUID | |
| TimeSheetRecord | TimeSheetRecord | Counter | ||
| WorkAssignmentExternalID | _WorkAssgmtDets | WorkAssignmentExternalID | WFA Ext. ID | |
| Country2DigitISOCode | ||||
| WorkAssignment | WorkAssignment | WorkForce Assgmt ID | ||
| TimeSheetDate | TimeSheetDate | Date | ||
| RecordedHours | RecordedHours | Hours | ||
| HoursUnitOfMeasure | HoursUnitOfMeasure | Unit of Measure | ||
| TimeSheetRecordLongText | TimeSheetRecordLongText | Timesheet Long Text | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| ActivityType | ActivityType | Activity Type | ||
| WorkItem | WorkItem | Work Item ID | ||
| BillingControlCategory | _BllbleCtrlBillgCtrlCatAssgmt | BillingControlCategory | Billing Category | |
| BillableControl | BillableControl | Billable Control | ||
| TimeSheetStatus | TimeSheetStatus | Process status | ||
| TimeSheetRejectionReason | TimeSheetRejectionReason | Rejection reas. | ||
| TimeSheetPredecessorRecord | TimeSheetPredecessorRecord | Ref. counter | ||
| TimeSheetAccountingDocument | TimeSheetAccountingDocument | Document no. | ||
| WorkflowTaskInternalID | WorkflowTaskInternalID | Work Item ID | ||
| CreatedByUser | CreatedByUser | User Name | ||
| LastChangedByUser | LastChangedByUser | User Name | ||
| TimeSheetApprovedByUser | TimeSheetApprovedByUser | Approved by | ||
| TimeSheetApprovedDate | TimeSheetApprovedDate | Approval date | ||
| TimeSheetCreationDate | TimeSheetCreationDate | Created on | ||
| TimeSheetEntryTime | TimeSheetEntryTime | Time | ||
| TimeSheetLastChangedDate | TimeSheetLastChangedDate | Last Change | ||
| TimeSheetLastChangedTime | TimeSheetLastChangedTime | Time | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| TimeSheetLastChangeDateTime | TimeSheetLastChangeDateTime | Changed On |
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_TimeSheetTP.
-- 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_TimeSheetTP AS
SELECT
TimeSheetRecordUUID,
TimeSheetRecord,
_WorkAssgmtDets.WorkAssignmentExternalID AS WorkAssignmentExternalID,
cast(_WorkAssgmtDets.CountryOrRegion as intca ) AS Country2DigitISOCode,
WorkAssignment,
TimeSheetDate,
RecordedHours,
HoursUnitOfMeasure,
TimeSheetRecordLongText,
WBSElementInternalID,
ActivityType,
WorkItem,
_BllbleCtrlBillgCtrlCatAssgmt.BillingControlCategory AS BillingControlCategory,
BillableControl,
TimeSheetStatus,
TimeSheetRejectionReason,
TimeSheetPredecessorRecord,
TimeSheetAccountingDocument,
WorkflowTaskInternalID,
CreatedByUser,
LastChangedByUser,
TimeSheetApprovedByUser,
TimeSheetApprovedDate,
TimeSheetCreationDate,
TimeSheetEntryTime,
TimeSheetLastChangedDate,
TimeSheetLastChangedTime,
LastChangeDateTime,
TimeSheetLastChangeDateTime
FROM R_TimeSheet AS TimeSheet
LEFT OUTER JOIN I_WorkAssgmtDetsDEX AS _WorkAssgmtDets ON WorkAssignment = _WorkAssgmtDets.WorkAssignment -- association [1..1]
LEFT OUTER JOIN I_BllbleCtrlBillgCtrlCatAssgmt AS _BllbleCtrlBillgCtrlCatAssgmt ON BillableControl = _BllbleCtrlBillgCtrlCatAssgmt.BillableControl -- 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