I_WorkflowExternalStatus

DDL: I_WORKFLOWEXTERNALSTATUS SQL: IWRKFLWSTTS Type: view COMPOSITE

Workflow Status

I_WorkflowExternalStatus (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_WorkflowExternalStatus is a Composite CDS View that provides data about "Workflow Status" in SAP S/4HANA. It reads from 1 data source (I_WorkflowTaskStatus) and exposes 2 fields with key field WorkflowExternalStatus. It has 1 association to related views.

SAP Help Documentation

CategoryCDS Views for Flexible Workflow
StatusDisplay text for the technical status of a workflow instance (part of related text view, translated)
Purpose
This CDS view exposes the status of a workflow (e.g. READY, STARTED, COMPLETED). This CDS view provides the data to answer the following business questions: What are the technical states a workflow instance can have? 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 WorkflowExternalStatus Technical status of a workflow instance. Values are WAITING READY, SELECTED, STARTED, ERROR, COMMITTED, COMPLETED, CANCELLED, CHECKED, EXCPCAUGHT, EXCPHANDLR WorkflowExternalStatusDesc Display text for the technical status of a workflow instance (part of related text view, translated)

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessCross Applications
Application ComponentBC-BMT-WFM
CapabilitiesData Source in SQL Select, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities
PackageCross Applications for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
I_WorkflowTaskStatus I_WorkflowTaskStatus from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_WorkflowExternalStatusText _WorkflowExternalStatusText $projection.WorkflowExternalStatus = _WorkflowExternalStatusText.WorkflowExternalStatus

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IWRKFLWSTTS 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 #S view
ObjectModel.usageType.dataClass #MASTER view
EndUserText.label Workflow Status view
ObjectModel.representativeKey WorkflowExternalStatus view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY WorkflowExternalStatus WorkflowTaskStatus
_WorkflowExternalStatusText _WorkflowExternalStatusText

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_WorkflowExternalStatus.
-- 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: IWRKFLWSTTS

CREATE VIEW I_WorkflowExternalStatus AS
SELECT
  WorkflowTaskStatus AS WorkflowExternalStatus
FROM I_WorkflowTaskStatus
LEFT OUTER JOIN I_WorkflowExternalStatusText AS _WorkflowExternalStatusText ON WorkflowExternalStatus = _WorkflowExternalStatusText.WorkflowExternalStatus  -- association [0..*]
;