I_WorkflowRecipients_V2

DDL: I_WORKFLOWRECIPIENTS_V2 SQL: IWRKFLWREC_V2 Type: view COMPOSITE

Workflow Task Recipient

I_WorkflowRecipients_V2 (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_WorkflowRecipients_V2 is a Composite CDS View that provides data about "Workflow Task Recipient" in SAP S/4HANA. It reads from 1 data source (swwwihead) and exposes 7 fields with key fields WorkflowTaskInternalID, WorkflowTaskRecipient, WorkflowTaskSubstitutedUser. It has 1 association to related views.

SAP Help Documentation

CategoryCDS Views for Flexible Workflow
Purpose
This CDS view exposes the recipient of a workflow task instance. This CDS view provides the data to answer the following business questions: Who is the recipient of a workflow task instance? Who is the substituted user of a workflow task instance? Is the workflow task instance forwarded? Is the workflow task instance visible in the inbox? 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 WorkflowTaskRecipient Identifier for the recipient of a workflow task WorkflowTaskSubstitutedUser Identifier for the user that is being substituted WorkflowInternalID Identifier of a workflow instance WorkflowTaskIsForwarded Indicator that the workflow task instance is forwarded WorkflowTaskIsVisibleInInbox Indicator if the task instance is visible int the inbox of the user

View on SAP Help Portal →

SAP API Hub

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

Documentation

Data Sources (1)

SourceAliasJoin Type
swwwihead TaskHeader inner

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_BusinessUserBasic _WorkflowTaskRecipient $projection.WorkflowTaskRecipient = _WorkflowTaskRecipient.UserID

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName IWRKFLWREC_V2 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 Recipient view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY WorkflowTaskInternalID TaskRecipient WorkflowTaskInternalID Work Item ID
KEY WorkflowTaskRecipient TaskRecipient WorkflowTaskRecipient Workflow: Recipient of Work Item
KEY WorkflowTaskSubstitutedUser TaskRecipient WorkflowTaskSubstitutedUser Workflow: Recipient of Work Item
WorkflowInternalID swwwihead top_wi_id Workflow: Unique ID of Top-Level Instance (6.1/get)
_WorkflowTaskRecipient _WorkflowTaskRecipient
WorkflowTaskIsForwarded TaskRecipient WorkflowTaskIsForwarded Indicator: Work Item was Forwarded
WorkflowTaskIsVisibleInInbox TaskRecipient WorkflowTaskIsVisibleInInbox Work item is in inbox

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_WorkflowRecipients_V2.
-- 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: IWRKFLWREC_V2

CREATE VIEW I_WorkflowRecipients_V2 AS
SELECT
  TaskRecipient.WorkflowTaskInternalID AS WorkflowTaskInternalID,
  TaskRecipient.WorkflowTaskRecipient AS WorkflowTaskRecipient,
  TaskRecipient.WorkflowTaskSubstitutedUser AS WorkflowTaskSubstitutedUser,
  TaskHeader.top_wi_id AS WorkflowInternalID,
  TaskRecipient.WorkflowTaskIsForwarded AS WorkflowTaskIsForwarded,
  TaskRecipient.WorkflowTaskIsVisibleInInbox AS WorkflowTaskIsVisibleInInbox
INNER JOIN swwwihead AS TaskHeader ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_BusinessUserBasic AS _WorkflowTaskRecipient ON WorkflowTaskRecipient = _WorkflowTaskRecipient.UserID  -- association [0..1]
;