ABAP Keyword Documentation →  ABAP − Reference →  Program structure →  Introductory Statements for Programs → 

TYPE-POOL  Syntax Diagram

Short Reference

Syntax

TYPE-POOL tpool.

Effect

The TYPE-POOL statement introduces a type group. It must be the first statement of a type group following the triggering of any include programs. You can maintain type groups only in ABAP Dictionary in ABAP Workbench, whereby an ABAP program is automatically generated including the TYPE-POOL statement. The actual name of the program of a type group in the repository does not completely match the name of the type group and is of internal relevance only.

Type groups can only contain the statements

and the declared data types, constants, and macros must be prefixed with the name tpool of the type group. The elements declared in a type group can be addressed statically or dynamically by name in every ABAP program in which the type group can be used. This is loaded when an element of a type group is first accessed.

Notes

Example

Type groups with the definition of a table type.

TYPE-POOL mytgr.
TYPES mytgr_spfli_tab TYPE HASHED TABLE
                      OF spfli
                      WITH UNIQUE KEY carrid connid.