SWW_DATAAGING_INCONSISTENT

DDL: SWW_DATAAGING_INCONSISTENT SQL: SWWAGING01 Type: view

Workflow: Work items inconsistent aging

SWW_DATAAGING_INCONSISTENT is a CDS View that provides data about "Workflow: Work items inconsistent aging" in SAP S/4HANA. It reads from 2 data sources (swwwihead, swwwihead) and exposes 17 fields with key field wi_id.

Data Sources (2)

SourceAliasJoin Type
swwwihead header from
swwwihead top_header left_outer

Parameters (1)

NameTypeDefault
timeZoneUpdate tznzone

Annotations (4)

NameValueLevelField
AbapCatalog.sqlViewName SWWAGING01 view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Workflow: Work items inconsistent aging view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY wi_id swwwihead wi_id WorkItem ID
wi_type swwwihead wi_type Type
wi_stat swwwihead wi_stat Status
aging_state swwwihead aging_state Data Aging Version
wi_rh_task swwwihead wi_rh_task Task
top_task swwwihead top_task Top Task
wi_text swwwihead wi_text Work item text
wi_lang swwwihead wi_lang Language
clientNULLascreatedDateZonlo
clientNULLascreatedTimeZonlo
crea_tmp swwwihead crea_tmp Created On
clientNULLascompletedDateZonlo
clientNULLascompletedTimeZonlo
clientNULLastopHeaderCreatedDateZonlo
clientNULLastopHeaderCreatedTimeZonlo
clientNULLastopHeaderCompletedDateZonlo
clientNULLastopHeaderCompletedTimeZonlo

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_DATAAGING_INCONSISTENT.
-- 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: SWWAGING01
-- Parameters: timeZoneUpdate : tznzone

CREATE VIEW SWW_DATAAGING_INCONSISTENT AS
SELECT
  header.wi_id AS wi_id,
  header.wi_type AS wi_type,
  header.wi_stat AS wi_stat,
  header.aging_state AS aging_state,
  header.wi_rh_task AS wi_rh_task,
  header.top_task AS top_task,
  header.wi_text AS wi_text,
  header.wi_lang AS wi_lang,
  tstmp_to_dats( header.crea_tmp, $parameters.timeZoneUpdate, $session.client, 'NULL' ) as createdDateZonlo AS clientNULLascreatedDateZonlo,
  tstmp_to_tims( header.crea_tmp, $parameters.timeZoneUpdate, $session.client, 'NULL' ) as createdTimeZonlo AS clientNULLascreatedTimeZonlo,
  header.crea_tmp AS crea_tmp,
  tstmp_to_dats( header.wi_aed_timestamp, $parameters.timeZoneUpdate, $session.client, 'NULL' ) as completedDateZonlo AS clientNULLascompletedDateZonlo,
  tstmp_to_tims( header.wi_aed_timestamp, $parameters.timeZoneUpdate, $session.client, 'NULL' ) as completedTimeZonlo AS clientNULLascompletedTimeZonlo,
  tstmp_to_dats( top_header.crea_tmp, $parameters.timeZoneUpdate, $session.client, 'NULL' ) as topHeaderCreatedDateZonlo AS clientNULLastopHeaderCreatedDateZonlo,
  tstmp_to_tims( top_header.crea_tmp, $parameters.timeZoneUpdate, $session.client, 'NULL' ) as topHeaderCreatedTimeZonlo AS clientNULLastopHeaderCreatedTimeZonlo,
  tstmp_to_dats( top_header.wi_aed_timestamp, $parameters.timeZoneUpdate, $session.client, 'NULL' ) as topHeaderCompletedDateZonlo AS clientNULLastopHeaderCompletedDateZonlo,
  tstmp_to_tims( top_header.wi_aed_timestamp, $parameters.timeZoneUpdate, $session.client, 'NULL' ) as topHeaderCompletedTimeZonlo AS clientNULLastopHeaderCompletedTimeZonlo
FROM swwwihead AS header
LEFT OUTER JOIN swwwihead AS top_header ON /* join condition not captured in parsed metadata */
;