SWF_DAAG_PREVIEW

DDL: SWF_DAAG_PREVIEW SQL: SWFDAAGRUNPRV Type: view

daag stats

SWF_DAAG_PREVIEW is a CDS View that provides data about "daag stats" in SAP S/4HANA. It reads from 3 data sources (SWF_DAAG_EMPTY_TOP_WIID, SWF_DAAG_NON_FINAL_CHILDREN, SWF_DAAG_RELEVANCE) and exposes 4 fields with key field topLevelTask.

Data Sources (3)

SourceAliasJoin Type
SWF_DAAG_EMPTY_TOP_WIID etop left_outer
SWF_DAAG_NON_FINAL_CHILDREN nfin left_outer
SWF_DAAG_RELEVANCE rel from

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName SWFDAAGRUNPRV view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label daag stats view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY topLevelTask SWF_DAAG_RELEVANCE topLevelTask Task
relevantRetentionTimeInDays SWF_DAAG_RELEVANCE relevantRetentionTimeInDays
instancesAgingRelevant
nonAgableInstances

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 SWF_DAAG_PREVIEW.
-- 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: SWFDAAGRUNPRV

CREATE VIEW SWF_DAAG_PREVIEW AS
SELECT
  rel.topLevelTask AS topLevelTask,
  rel.relevantRetentionTimeInDays AS relevantRetentionTimeInDays,
  count( distinct rel.workflowInstance ) AS instancesAgingRelevant,
  cast( count( distinct etop.workflowInstance ) as abap.int4 ) + cast( count( distinct nfin.workflowInstance ) as abap.int4 ) AS nonAgableInstances
FROM SWF_DAAG_RELEVANCE AS rel
LEFT OUTER JOIN SWF_DAAG_EMPTY_TOP_WIID AS etop ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN SWF_DAAG_NON_FINAL_CHILDREN AS nfin ON /* join condition not captured in parsed metadata */
;