SWF_DAAG_RELEVANCE

DDL: SWF_DAAG_RELEVANCE SQL: SWFDAAGDAGREL Type: view

Data aging relevant WF instances

SWF_DAAG_RELEVANCE is a CDS View that provides data about "Data aging relevant WF instances" in SAP S/4HANA. It reads from 1 data source (SWF_DAAG_RETENTION_TIME) and exposes 4 fields with key fields topLevelTask, workflowInstance.

Data Sources (1)

SourceAliasJoin Type
SWF_DAAG_RETENTION_TIME SWF_DAAG_RETENTION_TIME from

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName SWFDAAGDAGREL view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Data aging relevant WF instances view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY topLevelTask topLevelTask
KEY workflowInstance workflowInstance
relevantRetentionTimeInDays relevantRetentionTimeInDays
isAgingRelevant

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_RELEVANCE.
-- 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: SWFDAAGDAGREL

CREATE VIEW SWF_DAAG_RELEVANCE AS
SELECT
  topLevelTask,
  workflowInstance,
  relevantRetentionTimeInDays,
  case when retentionTimeEnd < tstmp_current_utctimestamp() then 'X' else '' end AS isAgingRelevant
FROM SWF_DAAG_RETENTION_TIME
;