I_WorkflowAgentRule

DDL: I_WORKFLOWAGENTRULE SQL: IWRKFLWAGNT Type: view BASIC

Workflow Definition Agent Rule

I_WorkflowAgentRule (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Cross Applications

I_WorkflowAgentRule is a Basic CDS View that provides data about "Workflow Definition Agent Rule" in SAP S/4HANA. It reads from 1 data source (swd_flxruse) and exposes 4 fields with key fields WorkflowScenarioDefinition, WorkflowScenarioDefinitionVers, WorkflowAgentRule. It has 1 association to related views.

SAP Help Documentation

CategoryCDS Views for Flexible Workflow
Purpose
This CDS view exposes agent rules of a workflow scenario definition. Please note that the view will only return the agent rules that are defined directly within the workflow scenario. This CDS view provides the data to answer the following business questions: Which agent rule is defined for the workflow scenario? 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 WorkflowScenarioDefinition Identifier of a workflow scenario WorkflowScenarioDefinitionVers Version of a workflow scenario WorkflowAgentRule Identifier of an agent rule WorkflowAgentRuleText Name of an agent rule (part of related text view, translated)

Constraints
Agent rules that are defined within Responsibility Management will not be returned by the view.

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
swd_flxruse swd_flxruse from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_WorkflowAgentRuleText _WorkflowAgentRuleText $projection.WorkflowScenarioDefinition = _WorkflowAgentRuleText.WorkflowScenarioDefinition and $projection.WorkflowScenarioDefinitionVers = _WorkflowAgentRuleText.WorkflowScenarioDefinitionVers and $projection.WorkflowAgentRule = _WorkflowAgentRuleText.WorkflowAgentRule

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IWRKFLWAGNT view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #BASIC view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
EndUserText.label Workflow Definition Agent Rule view
ObjectModel.representativeKey WorkflowAgentRule view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY WorkflowScenarioDefinition wfd_id Number of workflow definition
KEY WorkflowScenarioDefinitionVers version XML Vers.
KEY WorkflowAgentRule ruse_label Workflow : Label
_WorkflowAgentRuleText _WorkflowAgentRuleText

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_WorkflowAgentRule.
-- 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: IWRKFLWAGNT

CREATE VIEW I_WorkflowAgentRule AS
SELECT
  wfd_id AS WorkflowScenarioDefinition,
  version AS WorkflowScenarioDefinitionVers,
  ruse_label AS WorkflowAgentRule
FROM swd_flxruse
LEFT OUTER JOIN I_WorkflowAgentRuleText AS _WorkflowAgentRuleText ON WorkflowScenarioDefinition = _WorkflowAgentRuleText.WorkflowScenarioDefinition AND WorkflowScenarioDefinitionVers = _WorkflowAgentRuleText.WorkflowScenarioDefinitionVers AND WorkflowAgentRule = _WorkflowAgentRuleText.WorkflowAgentRule  -- association [0..*]
;