C_MyInboxTimeShtApprvl

DDL: C_MYINBOXTIMESHTAPPRVL SQL: CTMESHTAPPRVL Type: view CONSUMPTION

Consumption view for My Inbox - Timesheet Approval App

C_MyInboxTimeShtApprvl is a Consumption CDS View that provides data about "Consumption view for My Inbox - Timesheet Approval App" in SAP S/4HANA. It reads from 1 data source (I_TimeShtEntriesForApprvl) and exposes 42 fields with key field TimeSheetRecord. It has 11 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_TimeShtEntriesForApprvl I_TimeShtEntriesForApprvl from

Parameters (1)

NameTypeDefault
P_WorkflowTaskInternalID sww_wiid

Associations (11)

CardinalityTargetAliasCondition
[0..1] I_PersonWorkAgreement_1 _PersonWorkAgreement Cats.PersonWorkAgreement = _PersonWorkAgreement.PersonWorkAgreement
[0..1] I_WorkPackageWorkItem _WorkItem Cats.WorkItem = _WorkItem.WorkItem and Cats.WorkPackage = _WorkItem.WorkPackage
[0..1] I_CostCenterActivityTypeText _CostCenterActivityTypeText Cats.ControllingArea = _CostCenterActivityTypeText.ControllingArea and Cats.ActivityType = _CostCenterActivityTypeText.CostCtrActivityType and _CostCenterActivityTypeText.ValidityEndDate >= $session.system_date and _CostCenterActivityTypeText.Language = $session.system_language
[0..1] I_BillingControlCategoryText _BillingControlCategoryText Cats.BillingControlCategory = _BillingControlCategoryText.BillingControlCategory and _BillingControlCategoryText.Language = $session.system_language
[1..1] I_TimeSheetRecord _TimeSheetPredecessorRecord Cats.TimeSheetPredecessorRecord = _TimeSheetPredecessorRecord.TimeSheetRecord
[1..1] I_Customer_VH _CustomerVH _CustomerVH.Customer = Cats.Customer
[0..1] I_PurchaseOrderItem _PurchaseOrderItem Cats.PurchaseOrder = _PurchaseOrderItem.PurchaseOrder and Cats.PurchaseOrderItem = _PurchaseOrderItem.PurchaseOrderItem
[0..1] I_TimeSheetTaskTypeText _TimeSheetTaskTypeText Cats.TimeSheetTaskType = _TimeSheetTaskTypeText.TimeSheetTaskType and _TimeSheetTaskTypeText.Language = $session.system_language
[0..1] E_TimeSheetRecord _TimeSheetRecordExtention $projection.TimeSheetRecord = _TimeSheetRecordExtention.TimeSheetRecord
[0..1] I_EntProjElmntBlockFunc _WPFunctionValue Cats.WBSElementInternalID = _WPFunctionValue.WBSElementInternalID and Cats.EntProjElementFunctionID = _WPFunctionValue.EntProjElementFunctionID
[0..1] I_CostCenterText _CostCenterText Cats.ReceiverCostCenter = _CostCenterText.CostCenter and Cats.ControllingArea = _CostCenterText.ControllingArea and _CostCenterText.Language = $session.system_language and Cats.TimeSheetLastChangedDate <= _CostCenterText.ValidityEndDate and Cats.TimeSheetLastChangedDate >= _CostCenterText.ValidityStartDate

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CTMESHTAPPRVL view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Consumption view for My Inbox - Timesheet Approval App view
VDM.viewType #CONSUMPTION view
Search.searchable true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #NOT_REQUIRED view
Metadata.allowExtensions true view

Fields (42)

KeyFieldSource TableSource FieldDescription
KEY TimeSheetRecord Cats TimeSheetRecord Counter
PersonWorkAgreement Cats PersonWorkAgreement Personnel No.
PersonExternalID
WebsiteURL
PersonFullName
AuthorizationGroup _PersonWorkAgreement AuthorizationGroup AuthorizGroup
TimeSheetDate Cats TimeSheetDate Date
EngagementProject Cats EngagementProject Engmnt Project ID
EngagementProjectendasEngmntProjURL
EngagementProjectName Cats EngagementProjectName
Customer Cats Customer Sold-to Party
CustomerName _CustomerVH CustomerName Name of Customer
PurchaseOrder Cats PurchaseOrder Purchasing Document
WorkPackage Cats WorkPackage Plan Item
WorkPackageName Cats WorkPackageName Plan Item Desc.
WorkItem Cats WorkItem Work Item ID
WorkItemName _WorkItem WorkItemName
ActivityType Cats ActivityType Activity Type
EngagementProjResourceText _CostCenterActivityTypeText CostCtrActivityTypeName
PurchaseOrderItemText _PurchaseOrderItem PurchaseOrderItemText Short Text
BillingControlCategoryText _BillingControlCategoryText BillingControlCategoryText
TimeSheetTaskTypeText _TimeSheetTaskTypeText TimeSheetTaskTypeText
WBSElementInternalID Cats WBSElementInternalID WBS Internal ID
WBSDescription Cats WBSDescription WBS Element Name
WBSElementExternalID Cats WBSElementExternalID WBS Element External ID
CostCenterName _CostCenterText CostCenterName Name
ReceiverCostCenter Cats ReceiverCostCenter
InternalOrder Cats InternalOrder Order
TimeSheetNote Cats TimeSheetNote
TimeSheetLongText Cats TimeSheetLongText
TimeSheetPredecessorRecord Cats TimeSheetPredecessorRecord Ref. counter
PreviousRecordedHours _TimeSheetPredecessorRecord RecordedHours Hours
PrevTimeSheetNote _TimeSheetPredecessorRecord TimeSheetNote
TimeSheetWrkLocCode Cats TimeSheetWrkLocCode
TimeSheetWrkLocCodeName Cats TimeSheetWrkLocCodeName
TimeSheetOvertimeCategory Cats TimeSheetOvertimeCategory
TimeSheetOvertimeCategoryText Cats TimeSheetOvertimeCategoryText
PlndEffortQty
RecordedHours Cats RecordedHours Hours
TotalApprovedHours Cats TotalApprovedHours
TotalRejectedHours Cats TotalRejectedHours
TimeSheetLastChangedDate Cats TimeSheetLastChangedDate Last Change

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 C_MyInboxTimeShtApprvl.
-- 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: CTMESHTAPPRVL
-- Parameters: P_WorkflowTaskInternalID : sww_wiid

CREATE VIEW C_MyInboxTimeShtApprvl AS
SELECT
  Cats.TimeSheetRecord AS TimeSheetRecord,
  Cats.PersonWorkAgreement AS PersonWorkAgreement,
  _PersonWorkAgreement._WorkforcePerson.PersonExternalID AS PersonExternalID,
  concat( '#Employee-displayFactSheet?EmployeeExtID=', _PersonWorkAgreement._WorkforcePerson.PersonExternalID ) AS WebsiteURL,
  _PersonWorkAgreement._WorkforcePerson.PersonFullName AS PersonFullName,
  _PersonWorkAgreement.AuthorizationGroup AS AuthorizationGroup,
  Cats.TimeSheetDate AS TimeSheetDate,
  Cats.EngagementProject AS EngagementProject,
  case Cats.EngagementProjectCategory when 'C' then concat( '#CustomerProject-displayFactSheet?CustomerProject=', Cats.EngagementProject) when 'I' then concat( '#InternalProject-displayFactSheet?InternalProject=', Cats.EngagementProject) end as EngmntProjURL AS EngagementProjectendasEngmntProjURL,
  Cats.EngagementProjectName AS EngagementProjectName,
  Cats.Customer AS Customer,
  _CustomerVH.CustomerName AS CustomerName,
  Cats.PurchaseOrder AS PurchaseOrder,
  Cats.WorkPackage AS WorkPackage,
  Cats.WorkPackageName AS WorkPackageName,
  Cats.WorkItem AS WorkItem,
  _WorkItem.WorkItemName AS WorkItemName,
  Cats.ActivityType AS ActivityType,
  _CostCenterActivityTypeText.CostCtrActivityTypeName AS EngagementProjResourceText,
  _PurchaseOrderItem.PurchaseOrderItemText AS PurchaseOrderItemText,
  _BillingControlCategoryText.BillingControlCategoryText AS BillingControlCategoryText,
  _TimeSheetTaskTypeText.TimeSheetTaskTypeText AS TimeSheetTaskTypeText,
  Cats.WBSElementInternalID AS WBSElementInternalID,
  Cats.WBSDescription AS WBSDescription,
  Cats.WBSElementExternalID AS WBSElementExternalID,
  _CostCenterText.CostCenterName AS CostCenterName,
  Cats.ReceiverCostCenter AS ReceiverCostCenter,
  Cats.InternalOrder AS InternalOrder,
  Cats.TimeSheetNote AS TimeSheetNote,
  Cats.TimeSheetLongText AS TimeSheetLongText,
  Cats.TimeSheetPredecessorRecord AS TimeSheetPredecessorRecord,
  _TimeSheetPredecessorRecord.RecordedHours AS PreviousRecordedHours,
  _TimeSheetPredecessorRecord.TimeSheetNote AS PrevTimeSheetNote,
  Cats.TimeSheetWrkLocCode AS TimeSheetWrkLocCode,
  Cats.TimeSheetWrkLocCodeName AS TimeSheetWrkLocCodeName,
  Cats.TimeSheetOvertimeCategory AS TimeSheetOvertimeCategory,
  Cats.TimeSheetOvertimeCategoryText AS TimeSheetOvertimeCategoryText,
  cast(Cats.PlndEffortQty as abap.dec( 15, 2 )) AS PlndEffortQty,
  Cats.RecordedHours AS RecordedHours,
  Cats.TotalApprovedHours AS TotalApprovedHours,
  Cats.TotalRejectedHours AS TotalRejectedHours,
  Cats.TimeSheetLastChangedDate AS TimeSheetLastChangedDate
FROM I_TimeShtEntriesForApprvl
LEFT OUTER JOIN I_PersonWorkAgreement_1 AS _PersonWorkAgreement ON Cats.PersonWorkAgreement = _PersonWorkAgreement.PersonWorkAgreement  -- association [0..1]
LEFT OUTER JOIN I_WorkPackageWorkItem AS _WorkItem ON Cats.WorkItem = _WorkItem.WorkItem AND Cats.WorkPackage = _WorkItem.WorkPackage  -- association [0..1]
LEFT OUTER JOIN I_CostCenterActivityTypeText AS _CostCenterActivityTypeText ON Cats.ControllingArea = _CostCenterActivityTypeText.ControllingArea AND Cats.ActivityType = _CostCenterActivityTypeText.CostCtrActivityType AND _CostCenterActivityTypeText.ValidityEndDate >= $session.system_date AND _CostCenterActivityTypeText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_BillingControlCategoryText AS _BillingControlCategoryText ON Cats.BillingControlCategory = _BillingControlCategoryText.BillingControlCategory AND _BillingControlCategoryText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_TimeSheetRecord AS _TimeSheetPredecessorRecord ON Cats.TimeSheetPredecessorRecord = _TimeSheetPredecessorRecord.TimeSheetRecord  -- association [1..1]
LEFT OUTER JOIN I_Customer_VH AS _CustomerVH ON _CustomerVH.Customer = Cats.Customer  -- association [1..1]
LEFT OUTER JOIN I_PurchaseOrderItem AS _PurchaseOrderItem ON Cats.PurchaseOrder = _PurchaseOrderItem.PurchaseOrder AND Cats.PurchaseOrderItem = _PurchaseOrderItem.PurchaseOrderItem  -- association [0..1]
LEFT OUTER JOIN I_TimeSheetTaskTypeText AS _TimeSheetTaskTypeText ON Cats.TimeSheetTaskType = _TimeSheetTaskTypeText.TimeSheetTaskType AND _TimeSheetTaskTypeText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN E_TimeSheetRecord AS _TimeSheetRecordExtention ON TimeSheetRecord = _TimeSheetRecordExtention.TimeSheetRecord  -- association [0..1]
LEFT OUTER JOIN I_EntProjElmntBlockFunc AS _WPFunctionValue ON Cats.WBSElementInternalID = _WPFunctionValue.WBSElementInternalID AND Cats.EntProjElementFunctionID = _WPFunctionValue.EntProjElementFunctionID  -- association [0..1]
LEFT OUTER JOIN I_CostCenterText AS _CostCenterText ON Cats.ReceiverCostCenter = _CostCenterText.CostCenter AND Cats.ControllingArea = _CostCenterText.ControllingArea AND _CostCenterText.Language = $session.system_language AND Cats.TimeSheetLastChangedDate <= _CostCenterText.ValidityEndDate AND Cats.TimeSheetLastChangedDate >= _CostCenterText.ValidityStartDate  -- association [0..1]
;