I_WorkflowStatusDetails
Workflow Task
I_WorkflowStatusDetails (Composite)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Cross Applications
I_WorkflowStatusDetails is a Composite CDS View that provides data about "Workflow Task" in SAP S/4HANA. It reads from 2 data sources (I_WorkflowTask, I_WorkflowTaskResult) and exposes 20 fields with key field WorkflowTaskInternalID. It has 8 associations to related views.
SAP Help Documentation
| Category | CDS Views for Flexible Workflow |
|---|---|
| Status | Technical status of a workflow task instance. Values are WAITING, READY, SELECTED, STARTED, ERROR, COMMITTED, COMPLETED, CANCELLED, CHECKED, EXCPCAUGHT, EXCPHANDLR |
Purpose
This CDS view provides details for the task instances of a workflow instance. This CDS view provides the data to answer the following business questions: What is the state of the task instances of a workflow instance? Who is currently working on the tasks of a workflow instance? Are there erroneous tasks? Who has approved or rejected tasks of the workflow? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view don't need any special authorization.
Structure
Important Fields Important fields in this view include the following: Field Name Description WorkflowTaskInternalID Identifier of a workflow task instance WorkflowInternalID Identifier of a workflow instance WorkflowTaskExternalStatus Technical status of a workflow task instance. Values are WAITING, READY, SELECTED, STARTED, ERROR, COMMITTED, COMPLETED, CANCELLED, CHECKED, EXCPCAUGHT, EXCPHANDLR WorkflowTaskDefinition Identifier of a workflow task definition WorkflowTaskProcessor Identifier of the current processor of a task instance WorkflowTaskProcessorRole Identifier of the role for the recipient calculation WrkflwTskCreationUTCDateTime Timestamp of the creation of the workflow task instance WrkflwTskCompletionUTCDateTime Timestamp of the completion of the workflow task instance WorkflowTaskStepType Identifier of a workflow step WorkflowScenarioDefinition Identifier of a workflow scenario WorkflowScenarioDefinitionVers Version of a workflow scenario WorkflowTaskResult Identifier of the result of a workflow task instance
Constraints
Deprecated Elements Note At least one element of this CDS view is deprecated. We recommend that you switch to the following successor elements: Deprecated Element Successor Element _WorkflowRecipients _WorkflowRecipients_2 For more information about the deprecation process for CDS views, see Deprecated and Decommissioned CDS Views .
This CDS view provides details for the task instances of a workflow instance. This CDS view provides the data to answer the following business questions: What is the state of the task instances of a workflow instance? Who is currently working on the tasks of a workflow instance? Are there erroneous tasks? Who has approved or rejected tasks of the workflow? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view don't need any special authorization.
Structure
Important Fields Important fields in this view include the following: Field Name Description WorkflowTaskInternalID Identifier of a workflow task instance WorkflowInternalID Identifier of a workflow instance WorkflowTaskExternalStatus Technical status of a workflow task instance. Values are WAITING, READY, SELECTED, STARTED, ERROR, COMMITTED, COMPLETED, CANCELLED, CHECKED, EXCPCAUGHT, EXCPHANDLR WorkflowTaskDefinition Identifier of a workflow task definition WorkflowTaskProcessor Identifier of the current processor of a task instance WorkflowTaskProcessorRole Identifier of the role for the recipient calculation WrkflwTskCreationUTCDateTime Timestamp of the creation of the workflow task instance WrkflwTskCompletionUTCDateTime Timestamp of the completion of the workflow task instance WorkflowTaskStepType Identifier of a workflow step WorkflowScenarioDefinition Identifier of a workflow scenario WorkflowScenarioDefinitionVers Version of a workflow scenario WorkflowTaskResult Identifier of the result of a workflow task instance
Constraints
Deprecated Elements Note At least one element of this CDS view is deprecated. We recommend that you switch to the following successor elements: Deprecated Element Successor Element _WorkflowRecipients _WorkflowRecipients_2 For more information about the deprecation process for CDS views, see Deprecated and Decommissioned CDS Views .
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Cross Applications |
| Application Component | BC-BMT-WFM |
| Capabilities | Data Source for Defining CDS Entities, Data Source in SQL Select, Association Target for Defining CDS Entities |
| Package | Cross Applications for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_WorkflowTask | I_WorkflowTask | from |
| I_WorkflowTaskResult | WorkflowTaskResult | left_outer |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_WorkflowTaskExternalStatus | _WorkflowTaskExternalStatus | $projection.WorkflowTaskExternalStatus = _WorkflowTaskExternalStatus.WorkflowTaskExternalStatus |
| [0..1] | I_BusinessUser | _WorkflowTaskProcessor | $projection.WorkflowTaskProcessor = _WorkflowTaskProcessor.UserID |
| [0..1] | I_BusinessUserBasic | _WorkflowTaskProcessor_2 | $projection.WorkflowTaskProcessor = _WorkflowTaskProcessor_2.UserID |
| [0..1] | I_WorkflowStepType | _WorkflowTaskStepType | $projection.WorkflowScenarioDefinition = _WorkflowTaskStepType.WrkflwScen and $projection.WorkflowScenarioDefinitionVers = _WorkflowTaskStepType.WrkflwScenVers and $projection.WorkflowTaskStepType = _WorkflowTaskStepType.WorkflowStepType |
| [0..*] | I_WorkflowRecipients | _WorkflowRecipients | $projection.WorkflowInternalID = _WorkflowRecipients.WorkflowInternalID and $projection.WorkflowTaskInternalID = _WorkflowRecipients.WorkflowTaskInternalID |
| [0..*] | I_WORKFLOWRECIPIENTS_V2 | _WorkflowRecipients_2 | $projection.WorkflowInternalID = _WorkflowRecipients_2.WorkflowInternalID and $projection.WorkflowTaskInternalID = _WorkflowRecipients_2.WorkflowTaskInternalID |
| [0..1] | I_WorkflowStepResult | _WorkflowTaskStepResult | $projection.WorkflowScenarioDefinition = _WorkflowTaskStepResult.WorkflowScenarioDefinition and $projection.WorkflowScenarioDefinitionVers = _WorkflowTaskStepResult.WorkflowScenarioDefinitionVers and $projection.WorkflowTaskStepType = _WorkflowTaskStepResult.WorkflowStepType and $projection.WorkflowTaskResult = _WorkflowTaskStepResult.WorkflowStepResult |
| [0..1] | I_WorkflowAgentRule | _WorkflowAgentRule | $projection.WorkflowScenarioDefinition = _WorkflowAgentRule.WorkflowScenarioDefinition and $projection.WorkflowScenarioDefinitionVers = _WorkflowAgentRule.WorkflowScenarioDefinitionVers and $projection.WorkflowTaskProcessorRole = _WorkflowAgentRule.WorkflowAgentRule |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IWRKFLWSTTSDTLS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| EndUserText.label | Workflow Task | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkflowTaskInternalID | I_WorkflowTask | WorkflowTaskInternalID | Work Item ID |
| WorkflowInternalID | TopLevelWorkflowTask | Workflow: Unique ID of Top-Level Instance (6.1/get) | ||
| WorkflowTaskExternalStatus | WorkflowTaskStatus | Processing Status of a Work Item | ||
| _WorkflowTaskExternalStatus | _WorkflowTaskExternalStatus | |||
| WorkflowTaskDefinition | WorkflowTaskDefinition | Task ID | ||
| WorkflowTaskProcessor | WorkflowTaskCurrentUser | Actual Agent of Work Item | ||
| _WorkflowTaskProcessor | _WorkflowTaskProcessor | |||
| _WorkflowTaskProcessor_2 | _WorkflowTaskProcessor_2 | |||
| WorkflowTaskProcessorRole | WorkflowTaskProcessorRole | Workflow: Agent Rule Id | ||
| _WorkflowAgentRule | _WorkflowAgentRule | |||
| WrkflwTskCreationUTCDateTime | WrkflwTskCreationUTCDateTime | Workflow: Creation Time Stamp | ||
| WrkflwTskCompletionUTCDateTime | WrkflwTskCompletionUTCDateTime | Workflow: Timestamp completion | ||
| WorkflowTaskStepType | WorkflowTaskStepType | Workflow: Step Id | ||
| _WorkflowTaskStepType | _WorkflowTaskStepType | |||
| WorkflowScenarioDefinition | TopLevelWorkflowTaskDefinition | Task Identifier of Top-Level Task | ||
| WorkflowScenarioDefinitionVers | WorkflowTaskDefinitionVersion | Version | ||
| _WorkflowRecipients | _WorkflowRecipients | |||
| _WorkflowRecipients_2 | _WorkflowRecipients_2 | |||
| WorkflowTaskResult | I_WorkflowTaskResult | WorkflowTaskResult | Workflow: Returncode flexible workflow | |
| _WorkflowTaskStepResult | _WorkflowTaskStepResult |
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_WorkflowStatusDetails.
-- 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: IWRKFLWSTTSDTLS
CREATE VIEW I_WorkflowStatusDetails AS
SELECT
I_WorkflowTask.WorkflowTaskInternalID AS WorkflowTaskInternalID,
TopLevelWorkflowTask AS WorkflowInternalID,
WorkflowTaskStatus AS WorkflowTaskExternalStatus,
WorkflowTaskDefinition,
WorkflowTaskCurrentUser AS WorkflowTaskProcessor,
WorkflowTaskProcessorRole,
WrkflwTskCreationUTCDateTime,
WrkflwTskCompletionUTCDateTime,
WorkflowTaskStepType,
TopLevelWorkflowTaskDefinition AS WorkflowScenarioDefinition,
WorkflowTaskDefinitionVersion AS WorkflowScenarioDefinitionVers,
WorkflowTaskResult.WorkflowTaskResult AS WorkflowTaskResult
FROM I_WorkflowTask
LEFT OUTER JOIN I_WorkflowTaskResult AS WorkflowTaskResult ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_WorkflowTaskExternalStatus AS _WorkflowTaskExternalStatus ON WorkflowTaskExternalStatus = _WorkflowTaskExternalStatus.WorkflowTaskExternalStatus -- association [0..1]
LEFT OUTER JOIN I_BusinessUser AS _WorkflowTaskProcessor ON WorkflowTaskProcessor = _WorkflowTaskProcessor.UserID -- association [0..1]
LEFT OUTER JOIN I_BusinessUserBasic AS _WorkflowTaskProcessor_2 ON WorkflowTaskProcessor = _WorkflowTaskProcessor_2.UserID -- association [0..1]
LEFT OUTER JOIN I_WorkflowStepType AS _WorkflowTaskStepType ON WorkflowScenarioDefinition = _WorkflowTaskStepType.WrkflwScen AND WorkflowScenarioDefinitionVers = _WorkflowTaskStepType.WrkflwScenVers AND WorkflowTaskStepType = _WorkflowTaskStepType.WorkflowStepType -- association [0..1]
LEFT OUTER JOIN I_WorkflowRecipients AS _WorkflowRecipients ON WorkflowInternalID = _WorkflowRecipients.WorkflowInternalID AND WorkflowTaskInternalID = _WorkflowRecipients.WorkflowTaskInternalID -- association [0..*]
LEFT OUTER JOIN I_WORKFLOWRECIPIENTS_V2 AS _WorkflowRecipients_2 ON WorkflowInternalID = _WorkflowRecipients_2.WorkflowInternalID AND WorkflowTaskInternalID = _WorkflowRecipients_2.WorkflowTaskInternalID -- association [0..*]
LEFT OUTER JOIN I_WorkflowStepResult AS _WorkflowTaskStepResult ON WorkflowScenarioDefinition = _WorkflowTaskStepResult.WorkflowScenarioDefinition AND WorkflowScenarioDefinitionVers = _WorkflowTaskStepResult.WorkflowScenarioDefinitionVers AND WorkflowTaskStepType = _WorkflowTaskStepResult.WorkflowStepType AND WorkflowTaskResult = _WorkflowTaskStepResult.WorkflowStepResult -- association [0..1]
LEFT OUTER JOIN I_WorkflowAgentRule AS _WorkflowAgentRule ON WorkflowScenarioDefinition = _WorkflowAgentRule.WorkflowScenarioDefinition AND WorkflowScenarioDefinitionVers = _WorkflowAgentRule.WorkflowScenarioDefinitionVers AND WorkflowTaskProcessorRole = _WorkflowAgentRule.WorkflowAgentRule -- association [0..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