I_WFI_INST
Application Objects with WF Instances
I_WFI_INST is a CDS View that provides data about "Application Objects with WF Instances" in SAP S/4HANA. It reads from 3 data sources (I_WorkflowTaskApplObject, swwwihead, R_FLEXWORKFLOWINSTANCE) and exposes 8 fields with key field WorkflowInstanceID. It has 1 association to related views. Part of development package SWF_FLEX_WFI.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_WorkflowTaskApplObject | applObject | from |
| swwwihead | head | inner |
| R_FLEXWORKFLOWINSTANCE | R_FLEXWORKFLOWINSTANCE | union |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_WFI_SCENARIO | _Scenario | $projection.ScenarioDefinitionID = _Scenario.ScenarioId |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Application Objects with WF Instances | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkflowInstanceID | swwwihead | wi_id | WorkItem ID |
| ApplicationObjectID | I_WorkflowTaskApplObject | TechnicalWrkflwObject | ||
| ScenarioDefinitionID | swwwihead | wi_rh_task | ||
| ModificationDateTime | swwwihead | wi_mod_timestamp | ||
| ApplicationObjectID | WorkflowLeadingObject | |||
| ScenarioDefinitionID | WorkflowScenarioDefinition | |||
| ModificationDateTime | WorkflowInstanceChangedAt | |||
| SAPApplicationComponent | SAPApplicationComponent |
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_WFI_INST.
-- 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.
CREATE VIEW I_WFI_INST AS
SELECT
head.wi_id AS WorkflowInstanceID,
applObject.TechnicalWrkflwObject AS ApplicationObjectID,
head.wi_rh_task AS ScenarioDefinitionID,
head.wi_mod_timestamp AS ModificationDateTime,
SAPApplicationComponent
FROM I_WorkflowTaskApplObject AS applObject
INNER JOIN swwwihead AS head ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_WFI_SCENARIO AS _Scenario ON ScenarioDefinitionID = _Scenario.ScenarioId -- association [0..1]
-- UNION with additional select branch(es): R_FLEXWORKFLOWINSTANCE
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA