I_WorkflowStatusOverview

DDL: I_WORKFLOWSTATUSOVERVIEW SQL: IWRKFLWSTTSVW Type: view COMPOSITE Package: SWF_FLEX_IFS_DEV_PUBLISHED

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

CategoryCDS Views for Flexible Workflow
StatusWorkflow Instance Technical Status
Purpose
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

View on SAP Help Portal →

SAP API Hub

CategoryComposite
StateC1
Line of BusinessCross Applications
Application ComponentBC-BMT-WFM
CapabilitiesData 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
PackageCross 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

Data Sources (3)

SourceAliasJoin Type
I_WorkflowTaskCount Tasks left_outer
I_WorkflowTask WorkflowHeader from
I_WorkflowTaskApplObject WorkflowTaskApplObject inner

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;