SWF_FLEX_TEXT_LAST_CHG

DDL: SWF_FLEX_TEXT_LAST_CHG SQL: SWFFLEXTEXTLCH Type: view

Last change of original texts

SWF_FLEX_TEXT_LAST_CHG is a CDS View that provides data about "Last change of original texts" in SAP S/4HANA. It reads from 3 data sources (swf_flex_text, swf_flex_text_hd, swf_flex_text_wf) and exposes 3 fields with key field wf_id.

Data Sources (3)

SourceAliasJoin Type
swf_flex_text text inner
swf_flex_text_hd textHd inner
swf_flex_text_wf textWf from

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName SWFFLEXTEXTLCH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Last change of original texts view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY wf_id swf_flex_text_wf wf_id Workflow ID
LastChangedOn
waitingSince

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_FLEX_TEXT_LAST_CHG.
-- 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: SWFFLEXTEXTLCH

CREATE VIEW SWF_FLEX_TEXT_LAST_CHG AS
SELECT
  textWf.wf_id AS wf_id,
  max( text.change_ts ) AS LastChangedOn,
  cast( min( text.change_ts ) as swf_flex_text_waiting_since preserving type ) AS waitingSince
FROM swf_flex_text_wf AS textWf
INNER JOIN swf_flex_text_hd AS textHd ON /* join condition not captured in parsed metadata */
INNER JOIN swf_flex_text AS text ON /* join condition not captured in parsed metadata */
;