I_WorkflowScenario

DDL: I_WORKFLOWSCENARIO SQL: IVWRKFLWSCEN Type: view BASIC Package: SWF_FLEX_APP_STAGE

Workflow Scenario

I_WorkflowScenario is a Basic CDS View that provides data about "Workflow Scenario" in SAP S/4HANA. It reads from 1 data source (swf_flex_screg) and exposes 9 fields with key field Wfd_Id. It has 4 associations to related views. Part of development package SWF_FLEX_APP_STAGE.

Data Sources (1)

SourceAliasJoin Type
swf_flex_screg Scenario from

Associations (4)

CardinalityTargetAliasCondition
[0..*] I_WorkflowStage _Stage $projection.Wfd_Id = _Stage.WrkflwScen
[0..*] I_WorkflowTaskDefinitionText _Text _Text.WorkflowTaskDefinitionObjType = 'WS' and _Text.WorkflowTaskDefinitionObject = $projection.WrkflwScenObject
[0..1] I_WorkflowScenarioType _Type _Type.WrkflwScenType = $projection.WrkflwScenType
[0..1] I_WorkflowScenarioApplComp _Component _Component.WrkflwScen = $projection.Wfd_Id

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName IVWRKFLWSCEN view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Workflow Scenario view
ObjectModel.modelCategory #BUSINESS_OBJECT view
ObjectModel.compositionRoot true view
ObjectModel.writeActivePersistence SWF_FLEX_SCREG view
ObjectModel.transactionalProcessingEnabled true view
ObjectModel.createEnabled false view
ObjectModel.updateEnabled false view
ObjectModel.deleteEnabled false view
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
ObjectModel.usageType.dataClass #META view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY Wfd_Id swf_flex_screg wfd_id Workflow definition
WrkflwScenType swf_flex_screg scenario_type Type
WrkflwScenObject
SAPApplicationComponent _Component SAPApplicationComponent
WrkflwScenIsActv Activation active Usage Active
_Stage _Stage
_Text _Text
_Type _Type
_Component _Component

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_WorkflowScenario.
-- 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: IVWRKFLWSCEN

CREATE VIEW I_WorkflowScenario AS
SELECT
  Scenario.wfd_id AS Wfd_Id,
  Scenario.scenario_type AS WrkflwScenType,
  substring(Scenario.wfd_id,3,8) AS WrkflwScenObject,
  _Component.SAPApplicationComponent AS SAPApplicationComponent,
  Activation.active AS WrkflwScenIsActv
FROM swf_flex_screg AS Scenario
LEFT OUTER JOIN I_WorkflowStage AS _Stage ON Wfd_Id = _Stage.WrkflwScen  -- association [0..*]
LEFT OUTER JOIN I_WorkflowTaskDefinitionText AS _Text ON _Text.WorkflowTaskDefinitionObjType = 'WS' AND _Text.WorkflowTaskDefinitionObject = WrkflwScenObject  -- association [0..*]
LEFT OUTER JOIN I_WorkflowScenarioType AS _Type ON _Type.WrkflwScenType = WrkflwScenType  -- association [0..1]
LEFT OUTER JOIN I_WorkflowScenarioApplComp AS _Component ON _Component.WrkflwScen = Wfd_Id  -- association [0..1]
;