I_WorkflowTask
Workflow work items
I_WorkflowTask is a Basic CDS View that provides data about "Workflow work items" in SAP S/4HANA. It reads from 1 data source (swwwihead) and exposes 35 fields with key field WorkflowTaskInternalID. It has 16 associations to related views. It is exposed through 1 OData service (PLMI_PROCESS_ROUTE). It is used in 1 Fiori application: Process Routes.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| swwwihead | head | from |
Associations (16)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_WorkflowTaskResult | _WorkflowTaskResult | $projection.TopLevelWorkflowTask = _WorkflowTaskResult.WorkflowInternalID and $projection.WorkflowTaskInternalID = _WorkflowTaskResult.WorkflowTaskInternalID |
| [0..*] | I_WorkflowTaskTitle | _TaskTitle | $projection.WorkflowTaskInternalID = _TaskTitle.WorkflowTaskInternalID |
| [1..1] | I_WorkflowTaskType | _TaskType | $projection.WorkflowTaskType = _TaskType.WorkflowTaskType |
| [1..1] | I_WorkflowTaskPriority | _TaskPriority | $projection.WorkflowTaskPriority = _TaskPriority.WorkflowTaskPriority |
| [1..1] | I_WorkflowTaskStatus | _TaskStatus | $projection.WorkflowTaskStatus = _TaskStatus.WorkflowTaskStatus |
| [0..*] | I_WorkflowTaskApplObject | _TaskApplicationObject | $projection.WorkflowTaskInternalID = _TaskApplicationObject.WorkflowTaskInternalID |
| [0..1] | I_WorkflowTaskLeadingApplObj | _TaskApplicationLeadingObject | $projection.WorkflowTaskInternalID = _TaskApplicationLeadingObject.WorkflowTaskInternalID |
| [0..1] | I_WorkflowTaskStartEvent | _TaskStartEvent | $projection.WorkflowTaskInternalID = _TaskStartEvent.WorkflowTaskInternalID |
| [0..1] | I_WorkflowTaskDueDate | _TaskDueDate | $projection.WorkflowTaskInternalID = _TaskDueDate.WorkflowTaskInternalID |
| [0..*] | I_WorkflowTaskRecipient | _TaskRecipient | $projection.WorkflowTaskInternalID = _TaskRecipient.WorkflowTaskInternalID |
| [1..1] | I_WorkflowTaskDefinition | _TaskDefinition | $projection.WorkflowTaskDefinitionObjType = _TaskDefinition.WorkflowTaskDefinitionObjType and $projection.WorkflowTaskDefinitionObject = _TaskDefinition.WorkflowTaskDefinitionObject |
| [1..1] | I_WorkflowTaskDefinition | _TopLevelTaskDefinition | $projection.TopLevelWrkflwTskDefObjType = _TopLevelTaskDefinition.WorkflowTaskDefinitionObjType and $projection.TopLevelWrkflwTskDefObject = _TopLevelTaskDefinition.WorkflowTaskDefinitionObject |
| [0..1] | I_WorkflowStepType | _WorkflowStepType | $projection.WorkflowTaskStepType = _WorkflowStepType.WorkflowStepType and $projection.TopLevelWorkflowTaskDefinition = _WorkflowStepType.WrkflwScen and $projection.WorkflowTaskDefinitionVersion = _WorkflowStepType.WrkflwScenVers |
| [0..1] | I_WorkflowStepResult | _WorkflowTaskStepResult | $projection.TopLevelWorkflowTaskDefinition = _WorkflowTaskStepResult.WorkflowScenarioDefinition and $projection.WorkflowTaskDefinitionVersion = _WorkflowTaskStepResult.WorkflowScenarioDefinitionVers and $projection.WorkflowTaskStepType = _WorkflowTaskStepResult.WorkflowStepType and $projection.workflowtaskresult = _WorkflowTaskStepResult.WorkflowStepResult |
| [0..1] | I_WorkflowTaskCustomAttribute | _WorkflowTaskCustomAttribute | $projection.WorkflowTaskInternalID = _WorkflowTaskCustomAttribute.WorkflowTaskInternalID |
| [0..1] | I_WorkflowTaskTitleFallback | _WorkflowTaskTitleFallback | $projection.WorkflowTaskInternalID = _WorkflowTaskTitleFallback.WorkflowTaskInternalID |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IWORKFLOWTASK | view | |
| AbapCatalog.buffering.type | #NONE | view | |
| EndUserText.label | Workflow work items | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AbapCatalog.dbHints.hint | USE_HEX_PLAN | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| PLMI_PROCESS_ROUTE | PLMI_PROCESS_ROUTE | V2 | C1 | NOT_RELEASED |
Fiori Apps (1)
| App ID | App Name | Type | Description |
|---|---|---|---|
| F5070 | Process Routes | Transactional, Reuse Component | Process Routes is a reusable application component to provide workflow capabilities including parallel tasks, sequential tasks, ad-hoc tasks, and background tasks which can be loaded automatically into consumer apps based on business rule framework. |
Process Routes
Business Role: Development Manager - Discrete Industries
Users can manage process route tasks of the change record; setting processing times or deadlines, priorities and the recipients (agents) to each. Tasks can be parallel or sequential and can be added ad-hoc or via a template, executed by the user or in the background. Users can configure the change record to use the new advanced process route (based on BRFplus) for a change record type by selecting the Proc.Route checkbox in Customizing activity Define Engineering Change Record Types. In this case, no SAP Business Workflow scenario is required, as that is related to the simple workflow. Process route based on BRFplus will use the workflow template defined via Global Process Route Templates Workbench application. Power users can create global templates which can be used across change record types and transported across the landscape. Templates can have parallel or sequential tasks, either executed in the background or by the user.
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkflowTaskInternalID | swwwihead | wi_id | WorkItem ID |
| WorkflowTaskType | wi_type | Type | ||
| WorkflowTaskPriority | wi_prio | Priority | ||
| WorkflowTaskStatus | wi_stat | Status | ||
| WrkflwTskCreationUTCDateTime | crea_tmp | Created On | ||
| WrkflwTskCompletionUTCDateTime | wi_aed_timestamp | Completed | ||
| TopLevelWorkflowTask | top_wi_id | Top Level Workflow | ||
| ParentWorkflowTask | wi_chckwi | Workflow | ||
| WorkflowTaskCreatedByUser | wi_cruser | Creator | ||
| WorkflowTaskCurrentUser | wi_aagent | Agent | ||
| WorkflowTaskDefinition | wi_rh_task | Task | ||
| WorkflowTaskDefinitionObjType | ||||
| WorkflowTaskDefinitionObject | ||||
| TopLevelWorkflowTaskDefinition | top_task | Top Task | ||
| TopLevelWrkflwTskDefObjType | ||||
| TopLevelWrkflwTskDefObject | ||||
| WorkflowTaskStepType | step_id | WF Step ID | ||
| WorkflowTaskProcessorRole | agent_rule_id | Agent Rule Id | ||
| WorkflowTaskResult | _WorkflowTaskResult | WorkflowTaskResult | ||
| _TaskTitle | _TaskTitle | |||
| _TaskType | _TaskType | |||
| _TaskPriority | _TaskPriority | |||
| _TaskStatus | _TaskStatus | |||
| _TaskApplicationObject | _TaskApplicationObject | |||
| _TaskApplicationLeadingObject | _TaskApplicationLeadingObject | |||
| _TaskStartEvent | _TaskStartEvent | |||
| _TaskDueDate | _TaskDueDate | |||
| _TaskRecipient | _TaskRecipient | |||
| _TaskDefinition | _TaskDefinition | |||
| _TopLevelTaskDefinition | _TopLevelTaskDefinition | |||
| _WorkflowStepType | _WorkflowStepType | |||
| _WorkflowTaskStepResult | _WorkflowTaskStepResult | |||
| _WorkflowTaskCustomAttribute | _WorkflowTaskCustomAttribute | |||
| _WorkflowTaskTitleFallback | _WorkflowTaskTitleFallback | |||
| _WorkflowTaskResult | _WorkflowTaskResult |
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_WorkflowTask.
-- 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 I_WorkflowTask AS
SELECT
head.wi_id AS WorkflowTaskInternalID,
wi_type AS WorkflowTaskType,
wi_prio AS WorkflowTaskPriority,
wi_stat AS WorkflowTaskStatus,
crea_tmp AS WrkflwTskCreationUTCDateTime,
wi_aed_timestamp AS WrkflwTskCompletionUTCDateTime,
top_wi_id AS TopLevelWorkflowTask,
wi_chckwi AS ParentWorkflowTask,
wi_cruser AS WorkflowTaskCreatedByUser,
wi_aagent AS WorkflowTaskCurrentUser,
wi_rh_task AS WorkflowTaskDefinition,
cast( substring(wi_rh_task, 1, 2) as hr_sotype ) AS WorkflowTaskDefinitionObjType,
cast( substring(wi_rh_task, 3, 8) as hr_sobjid ) AS WorkflowTaskDefinitionObject,
top_task AS TopLevelWorkflowTaskDefinition,
cast( substring(top_task, 1, 2) as hr_sotype ) AS TopLevelWrkflwTskDefObjType,
cast( substring(top_task, 3, 8) as hr_sobjid ) AS TopLevelWrkflwTskDefObject,
step_id AS WorkflowTaskStepType,
agent_rule_id AS WorkflowTaskProcessorRole,
_WorkflowTaskResult.WorkflowTaskResult AS WorkflowTaskResult
FROM swwwihead AS head
LEFT OUTER JOIN I_WorkflowTaskResult AS _WorkflowTaskResult ON TopLevelWorkflowTask = _WorkflowTaskResult.WorkflowInternalID AND WorkflowTaskInternalID = _WorkflowTaskResult.WorkflowTaskInternalID -- association [0..1]
LEFT OUTER JOIN I_WorkflowTaskTitle AS _TaskTitle ON WorkflowTaskInternalID = _TaskTitle.WorkflowTaskInternalID -- association [0..*]
LEFT OUTER JOIN I_WorkflowTaskType AS _TaskType ON WorkflowTaskType = _TaskType.WorkflowTaskType -- association [1..1]
LEFT OUTER JOIN I_WorkflowTaskPriority AS _TaskPriority ON WorkflowTaskPriority = _TaskPriority.WorkflowTaskPriority -- association [1..1]
LEFT OUTER JOIN I_WorkflowTaskStatus AS _TaskStatus ON WorkflowTaskStatus = _TaskStatus.WorkflowTaskStatus -- association [1..1]
LEFT OUTER JOIN I_WorkflowTaskApplObject AS _TaskApplicationObject ON WorkflowTaskInternalID = _TaskApplicationObject.WorkflowTaskInternalID -- association [0..*]
LEFT OUTER JOIN I_WorkflowTaskLeadingApplObj AS _TaskApplicationLeadingObject ON WorkflowTaskInternalID = _TaskApplicationLeadingObject.WorkflowTaskInternalID -- association [0..1]
LEFT OUTER JOIN I_WorkflowTaskStartEvent AS _TaskStartEvent ON WorkflowTaskInternalID = _TaskStartEvent.WorkflowTaskInternalID -- association [0..1]
LEFT OUTER JOIN I_WorkflowTaskDueDate AS _TaskDueDate ON WorkflowTaskInternalID = _TaskDueDate.WorkflowTaskInternalID -- association [0..1]
LEFT OUTER JOIN I_WorkflowTaskRecipient AS _TaskRecipient ON WorkflowTaskInternalID = _TaskRecipient.WorkflowTaskInternalID -- association [0..*]
LEFT OUTER JOIN I_WorkflowTaskDefinition AS _TaskDefinition ON WorkflowTaskDefinitionObjType = _TaskDefinition.WorkflowTaskDefinitionObjType AND WorkflowTaskDefinitionObject = _TaskDefinition.WorkflowTaskDefinitionObject -- association [1..1]
LEFT OUTER JOIN I_WorkflowTaskDefinition AS _TopLevelTaskDefinition ON TopLevelWrkflwTskDefObjType = _TopLevelTaskDefinition.WorkflowTaskDefinitionObjType AND TopLevelWrkflwTskDefObject = _TopLevelTaskDefinition.WorkflowTaskDefinitionObject -- association [1..1]
LEFT OUTER JOIN I_WorkflowStepType AS _WorkflowStepType ON WorkflowTaskStepType = _WorkflowStepType.WorkflowStepType AND TopLevelWorkflowTaskDefinition = _WorkflowStepType.WrkflwScen AND WorkflowTaskDefinitionVersion = _WorkflowStepType.WrkflwScenVers -- association [0..1]
LEFT OUTER JOIN I_WorkflowStepResult AS _WorkflowTaskStepResult ON TopLevelWorkflowTaskDefinition = _WorkflowTaskStepResult.WorkflowScenarioDefinition AND WorkflowTaskDefinitionVersion = _WorkflowTaskStepResult.WorkflowScenarioDefinitionVers AND WorkflowTaskStepType = _WorkflowTaskStepResult.WorkflowStepType AND workflowtaskresult = _WorkflowTaskStepResult.WorkflowStepResult -- association [0..1]
LEFT OUTER JOIN I_WorkflowTaskCustomAttribute AS _WorkflowTaskCustomAttribute ON WorkflowTaskInternalID = _WorkflowTaskCustomAttribute.WorkflowTaskInternalID -- association [0..1]
LEFT OUTER JOIN I_WorkflowTaskTitleFallback AS _WorkflowTaskTitleFallback ON WorkflowTaskInternalID = _WorkflowTaskTitleFallback.WorkflowTaskInternalID -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- SAP Fiori Apps Architecture — How Fiori Apps Connect to Data
- 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