SMTGTemplateHeader

DDL: SMTG_TMPL_HEADER SQL: SMTG_V_TMPL_HDR Type: view

Email Template Header

SMTGTemplateHeader is a CDS View that provides data about "Email Template Header" in SAP S/4HANA. It reads from 1 data source (smtg_tmpl_hdr) and exposes 14 fields with key fields Id, Version.

Data Sources (1)

SourceAliasJoin Type
smtg_tmpl_hdr Header from

Annotations (4)

NameValueLevelField
AbapCatalog.sqlViewName SMTG_V_TMPL_HDR view
EndUserText.label Email Template Header view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientDependent false view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY Id smtg_tmpl_hdr id WorklistID
KEY Version smtg_tmpl_hdr version XML Vers.
OriginalId smtg_tmpl_hdr original_id UUID
SMTGVersion smtg_tmpl_hdr smtg_version SMTG Version
CDSView smtg_tmpl_hdr cds_view CDS View for SOT
IsPredelivered smtg_tmpl_hdr is_predelivered Predelivered
CreatedByUser smtg_tmpl_hdr crea_user_acct User Name
CreatedByUserDescription
CreationDateTime smtg_tmpl_hdr crea_date_time Time Stamp
LastChangedByUser smtg_tmpl_hdr lst_ch_user_acct User Name
LastChangedByUserDescription
LastChangeDateTime smtg_tmpl_hdr lst_ch_date_time Time Stamp
Texts Texts Text Key
Contents Contents

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 SMTGTemplateHeader.
-- 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: SMTG_V_TMPL_HDR

CREATE VIEW SMTGTemplateHeader AS
SELECT
  Header.id AS Id,
  Header.version AS Version,
  Header.original_id AS OriginalId,
  Header.smtg_version AS SMTGVersion,
  Header.cds_view AS CDSView,
  Header.is_predelivered AS IsPredelivered,
  Header.crea_user_acct AS CreatedByUser,
  cast( Header.crea_user_acct as abap.char( 80 ) ) AS CreatedByUserDescription,
  Header.crea_date_time AS CreationDateTime,
  Header.lst_ch_user_acct AS LastChangedByUser,
  cast( Header.lst_ch_user_acct as abap.char( 80 ) ) AS LastChangedByUserDescription,
  Header.lst_ch_date_time AS LastChangeDateTime,
  Texts,
  Contents
FROM smtg_tmpl_hdr AS Header
;