SMTGTemplateHeader
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)
| Source | Alias | Join Type |
|---|---|---|
| smtg_tmpl_hdr | Header | from |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | SMTG_V_TMPL_HDR | view | |
| EndUserText.label | Email Template Header | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientDependent | false | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA