I_WorkflowStatusOverview
Workflow
I_WorkflowStatusOverview (Composite)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
Cross Applications
I_WorkflowStatusOverview is a Composite CDS View that provides data about "Workflow" in SAP S/4HANA. It reads from 3 data sources (I_WorkflowTaskCount, I_WorkflowTask, I_WorkflowTaskApplObject) and exposes 17 fields with key field WorkflowInternalID. It has 4 associations to related views. Part of development package SWF_FLEX_IFS_DEV_PUBLISHED.
SAP Help Documentation
| Category | CDS Views for Flexible Workflow |
|---|---|
| Status | Workflow Instance Technical Status |
This CDS view exposes the status of workflow instances. If information on the details of the tasks within a workflow instance is needed please refer to Workflow Task . This CDS view provides the data to answer the following business questions: What is the status of a workflow instance? Are there erroneous workflow instances? How many tasks are there in a workflow instance? 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 WorkflowInternalID Workflow Instance Internal Identifier WorkflowExternalStatus Workflow Instance Technical Status WorkflowScenarioDefinition Identifies a workflow scenario. For example: "WS00800157", which is the scenario for the approval of a purchase requisition WorkflowScenarioDefinitionVers Version of Workflow Scenario Definition SAPObjectNodeRepresentation The representation of the business object node type SAPBusinessObjectNodeKey... Value of key field ... of the given business object node instance
SAP API Hub
| Category | Composite |
|---|---|
| State | C1 |
| Line of Business | Cross Applications |
| Application Component | BC-BMT-WFM |
| Capabilities | Data Source in SQL Select,Association Target for Defining CDS Entities,Data Source for Defining CDS Entities |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Released |
| Package | Cross Applications for SAP S/4HANA Cloud Public Edition |
| Description | <p>This CDS view exposes the status of workflow instances. If information on the details of the tasks within a workflow instance is needed, see Workflow Task.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>What is the status of a workflow instance?</p></li> <li><p>Are there erroneous workflow instances?</p></li> <li><p>How many tasks are there in a workflow instance?</p></li> </ul> <p>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.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_WorkflowTaskCount | Tasks | left_outer |
| I_WorkflowTask | WorkflowHeader | from |
| I_WorkflowTaskApplObject | WorkflowTaskApplObject | inner |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_WorkflowExternalStatus | _WorkflowExternalStatus | $projection.WorkflowExternalStatus = _WorkflowExternalStatus.WorkflowExternalStatus |
| [0..1] | I_WorkflowScenarioDefinition | _WorkflowScenarioDefinition | $projection.WorkflowScenarioDefinition = _WorkflowScenarioDefinition.WorkflowScenarioDefinition |
| [0..*] | I_WorkflowStatusDetails | _WorkflowStatusDetails | $projection.WorkflowInternalID = _WorkflowStatusDetails.WorkflowInternalID |
| [0..1] | I_WorkflowResult | _WorkflowResult | $projection.WorkflowInternalID = _WorkflowResult.WorkflowInternalID |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IWRKFLWSTTSVW | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Workflow | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkflowInternalID | I_WorkflowTask | WorkflowTaskInternalID | Work Item ID |
| WorkflowExternalStatus | WorkflowTaskStatus | Processing Status of a Work Item | ||
| _WorkflowExternalStatus | _WorkflowExternalStatus | |||
| WorkflowScenarioDefinition | WorkflowTaskDefinition | Task ID | ||
| _WorkflowScenarioDefinition | _WorkflowScenarioDefinition | |||
| WorkflowScenarioDefinitionVers | WorkflowTaskDefinitionVersion | Version | ||
| WrkflwTskCreationUTCDateTime | WrkflwTskCreationUTCDateTime | Workflow: Creation Time Stamp | ||
| WrkflwTskCompletionUTCDateTime | WrkflwTskCompletionUTCDateTime | Workflow: Timestamp completion | ||
| SAPObjectNodeRepresentation | I_WorkflowTaskApplObject | SAPObjectNodeRepresentation | SAP Object Node Type | |
| SAPBusinessObjectNodeKey1 | I_WorkflowTaskApplObject | SAPBusinessObjectNodeKey1 | Workflow SONT partial key 1 | |
| SAPBusinessObjectNodeKey2 | I_WorkflowTaskApplObject | SAPBusinessObjectNodeKey2 | Workflow SONT partial key 2 | |
| SAPBusinessObjectNodeKey3 | I_WorkflowTaskApplObject | SAPBusinessObjectNodeKey3 | Workflow SONT partial key 3 | |
| SAPBusinessObjectNodeKey4 | I_WorkflowTaskApplObject | SAPBusinessObjectNodeKey4 | Workflow SONT partial key 4 | |
| SAPBusinessObjectNodeKey5 | I_WorkflowTaskApplObject | SAPBusinessObjectNodeKey5 | Workflow SONT partial key 5 | |
| SAPBusinessObjectNodeKey6 | I_WorkflowTaskApplObject | SAPBusinessObjectNodeKey6 | Workflow SONT partial key 6 | |
| _WorkflowStatusDetails | _WorkflowStatusDetails | |||
| _WorkflowResult | _WorkflowResult |
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_WorkflowStatusOverview.
-- 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: IWRKFLWSTTSVW
CREATE VIEW I_WorkflowStatusOverview AS
SELECT
WorkflowHeader.WorkflowTaskInternalID AS WorkflowInternalID,
WorkflowTaskStatus AS WorkflowExternalStatus,
WorkflowTaskDefinition AS WorkflowScenarioDefinition,
WorkflowTaskDefinitionVersion AS WorkflowScenarioDefinitionVers,
WrkflwTskCreationUTCDateTime,
WrkflwTskCompletionUTCDateTime,
WorkflowTaskApplObject.SAPObjectNodeRepresentation AS SAPObjectNodeRepresentation,
WorkflowTaskApplObject.SAPBusinessObjectNodeKey1 AS SAPBusinessObjectNodeKey1,
WorkflowTaskApplObject.SAPBusinessObjectNodeKey2 AS SAPBusinessObjectNodeKey2,
WorkflowTaskApplObject.SAPBusinessObjectNodeKey3 AS SAPBusinessObjectNodeKey3,
WorkflowTaskApplObject.SAPBusinessObjectNodeKey4 AS SAPBusinessObjectNodeKey4,
WorkflowTaskApplObject.SAPBusinessObjectNodeKey5 AS SAPBusinessObjectNodeKey5,
WorkflowTaskApplObject.SAPBusinessObjectNodeKey6 AS SAPBusinessObjectNodeKey6
FROM I_WorkflowTask AS WorkflowHeader
INNER JOIN I_WorkflowTaskApplObject AS WorkflowTaskApplObject ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_WorkflowTaskCount AS Tasks ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_WorkflowExternalStatus AS _WorkflowExternalStatus ON WorkflowExternalStatus = _WorkflowExternalStatus.WorkflowExternalStatus -- association [0..1]
LEFT OUTER JOIN I_WorkflowScenarioDefinition AS _WorkflowScenarioDefinition ON WorkflowScenarioDefinition = _WorkflowScenarioDefinition.WorkflowScenarioDefinition -- association [0..1]
LEFT OUTER JOIN I_WorkflowStatusDetails AS _WorkflowStatusDetails ON WorkflowInternalID = _WorkflowStatusDetails.WorkflowInternalID -- association [0..*]
LEFT OUTER JOIN I_WorkflowResult AS _WorkflowResult ON WorkflowInternalID = _WorkflowResult.WorkflowInternalID -- 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