Declares a structure with
the same data type and the same name as a database table, a view, or a structure
from the ABAP Dictionary. Structures in main programs and subroutines declared
using TABLES use a common data area.
TOP-OF-PAGE
Event keywords for
defining event blocks for list events.
Syntax
TOP-OF-PAGE [DURING
LINE-SELECTION].
Whenever a new page begins
while a standard list is being created, the runtime environment triggers the
TOP-OF-PAGE event and the corresponding event block is executed. The addition
DURING LINE-SELECTION has the same function, but for detail lists.
TRANSFER
Writes to a file.
Syntax
TRANSFER <f> TO [LENGTH
<len>].
Writes the field <f> to
the file <dsn> on the application server. You can specify the length of the data
you want to transfer using the LENGTH addition.
TRANSLATE
Converts characters to
strings.
Syntax
TRANSLATE <c> TO
UPPER|LOWER CASE
|USING <r>.
The characters of the
string <c> are converted into upper- or lowercase, or according to a
substitution rule specified in <r>.
TRY
Introduces a TRY block.
Syntax
TRY.
Class-based exceptions can
be handled using the CATCH statement, within the block ended with ENDTRY.
TYPE-POOL
Introduces a type group.
Syntax
TYPE-POOL <tpool>.
The first statement in a
type group. This statement is not entered in the ABAP Editor, but is
automatically generated by the Dictionary in the ABAP Workbench. A type group is
an ABAP program that contains type definitions and constant declarations that
can be used in several programs.
TYPE-POOLS
Declares the types and
constants of a type group to a program.
Syntax
TYPE-POOLS <tpool>.
This statement allows you
to use all the data types and constants defined in the type group <tpool> in
your program.
Defines the internal data
type <t> in the program with length <len>, reference to the ABAP Dictionary type
<type> or a data object <obj>, and, where appropriate, with <dec> decimal
places.
Syntax
TYPES <t> TYPE REF TO
<class>|<interface>.
Defines the internal data
type <t> in the program with reference to the class <class> or the interface
<interface>.
Syntax
TYPES <t> TYPE REF TO
DATA|<type>.
Defines the internal data
type <t> as a data reference to a data object.
TYPES for Complex Types
Defines complex types.
Syntax
TYPES: BEGIN OF
<structure>,
�
<ti>�,
�
END OF <structure>.
Combines the data types <ti>
to form the structure <structure>. You can address the individual components of
a structure in a program using a hyphen between the structure name and the
component name as follows: <structure>-<t i>.
Syntax
TYPES <t> TYPE|LIKE
<tabkind> OF <linetype> [WITH <key>].
Defines the local data
type <t> in the program as an internal table with the access type <tabkind>, the
line type <linetype>, and the key <key>.
Syntax
TYPES <t> TYPE|LIKE RANGE
OF <type>|<obj>.
Defines the internal data
type <t> as a RANGES table. A RANGES table has the same data type as a selection
table, but is not linked to input fields on a selection screen.