SWW_WORKFLOW_STATISTIC

DDL: SWW_WORKFLOW_STATISTIC SQL: SWWVSTATISTIC Type: view

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)

SourceAliasJoin 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)

NameValueLevelField
AbapCatalog.sqlViewName SWWVSTATISTIC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Workflow Statistics view

Fields (5)

KeyFieldSource TableSource FieldDescription
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 */
;