The COMT_TEMPLATEH table in SAP ERP or S/4HANA stores Set Type History Template data. There are total 5 fields in COMT_TEMPLATEH table. The Set Type History Template table is available in all major SAP S/4HANA versions, is implemented as a Column Store table within the SAP HANA database. Additionally we provide an overview of the structure and fields of COMT_TEMPLATEH table. It is in Templates for Generating Set Types (COM_SETTYPE_TEMPLATES) ABAP package and is part of the Set Types and Attributes (AP-MD-PRO-SET) module.
SAP COMT_TEMPLATEH Table Fields
Following is the list of fields that are available in SAP COMT_TEMPLATEH table. The primary key fields of the table are CLIENT (Client), FRG_GUID (Set GUID), VALID_TO (Valid To (Time Stamp)).
| Field | Description | Data Element | Check Table | Data Type |
|---|---|---|---|---|
| CLIENT | Client | MANDT | * | CLNT (3) |
| FRG_GUID | Set GUID | COMT_FRG_GUID | RAW (16) | |
| VALID_TO | Valid To (Time Stamp) | COMT_VALID_TO | DEC (15) | |
| VALID_FROM | Valid From (Time Stamp) | COMT_VALID_FROM | DEC (15) | |
| UPNAME | Name of the User Who Last Changed the Set | COMT_UPNAME | CHAR (12) |


