I_WorkflowLatestTask

DDL: I_WORKFLOWLATESTTASK SQL: IWFLATESTTASK Type: view BASIC

workflow latest task

I_WorkflowLatestTask is a Basic CDS View that provides data about "workflow latest task" in SAP S/4HANA. It reads from 2 data sources (swwwihead, P_Facvd_Wf_Task_Max_Timestamp) and exposes 6 fields with key fields Workflow, WorkItem.

Data Sources (2)

SourceAliasJoin Type
swwwihead task inner
P_Facvd_Wf_Task_Max_Timestamp task_st from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IWFLATESTTASK view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey Workflow view
VDM.viewType #BASIC view
EndUserText.label workflow latest task view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY Workflow swwwihead top_wi_id Top Level Workflow
KEY WorkItem swwwihead wi_id WorkItem ID
TaskProcessingStatus wi_stat Status
WorkflowTaskDefinition swwwihead wi_rh_task Task
WorkflowTaskPriority wi_prio Priority
WorkflowTaskType wi_type Type

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_WorkflowLatestTask.
-- 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: IWFLATESTTASK

CREATE VIEW I_WorkflowLatestTask AS
SELECT
  task.top_wi_id AS Workflow,
  task.wi_id AS WorkItem,
  wi_stat AS TaskProcessingStatus,
  task.wi_rh_task AS WorkflowTaskDefinition,
  wi_prio AS WorkflowTaskPriority,
  wi_type AS WorkflowTaskType
FROM P_Facvd_Wf_Task_Max_Timestamp AS task_st
INNER JOIN swwwihead AS task ON /* join condition not captured in parsed metadata */
;