SWW_WORKFLOW_STATISTIC
Workflow Statistics
SWW_WORKFLOW_STATISTIC is a CDS View that provides data about "Workflow Statistics" in SAP S/4HANA. It reads from 5 data sources (SWW_WORKFLOW_STATISTIC_AGENT, SWW_WORKFLOW_STATISTIC_DIALOG, SWW_WORKFLOW_STATISTIC_SYSTEM, SWW_WORKFLOW_STATISTIC_TASK, SWW_SWWWIHEAD_TOP) and exposes 5 fields with key field top_wi_id.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| SWW_WORKFLOW_STATISTIC_AGENT | statistic_agent | left_outer |
| SWW_WORKFLOW_STATISTIC_DIALOG | statistic_dialog | left_outer |
| SWW_WORKFLOW_STATISTIC_SYSTEM | statistic_system | left_outer |
| SWW_WORKFLOW_STATISTIC_TASK | statistic_task | left_outer |
| SWW_SWWWIHEAD_TOP | top_header | from |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | SWWVSTATISTIC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Workflow Statistics | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | top_wi_id | SWW_SWWWIHEAD_TOP | wi_id | WorkItem ID |
| top_wi_type | SWW_SWWWIHEAD_TOP | wi_type | Type | |
| top_wi_stat | SWW_SWWWIHEAD_TOP | wi_stat | Status | |
| top_crea_tmp | SWW_SWWWIHEAD_TOP | crea_tmp | Created On | |
| count_task | SWW_WORKFLOW_STATISTIC_TASK | count_task |
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 SWW_WORKFLOW_STATISTIC.
-- 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: SWWVSTATISTIC
CREATE VIEW SWW_WORKFLOW_STATISTIC AS
SELECT
top_header.wi_id AS top_wi_id,
top_header.wi_type AS top_wi_type,
top_header.wi_stat AS top_wi_stat,
top_header.crea_tmp AS top_crea_tmp,
statistic_task.count_task AS count_task
FROM SWW_SWWWIHEAD_TOP AS top_header
LEFT OUTER JOIN SWW_WORKFLOW_STATISTIC_DIALOG AS statistic_dialog ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN SWW_WORKFLOW_STATISTIC_SYSTEM AS statistic_system ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN SWW_WORKFLOW_STATISTIC_TASK AS statistic_task ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN SWW_WORKFLOW_STATISTIC_AGENT AS statistic_agent ON /* join condition not captured in parsed metadata */
;
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