Data Types

Data types are a subtree of the ABAP type hierarchy. Data types are only type descriptions. Data types do not have any attached memory for storing working data, but they may require space for administration information. A data type characterizes the technical properties of all data objects that have this type. In ABAP, data objects occur as attributes of data objects, but they can also be defined as stand-alone data types.

The definition of stand-alone data types is based on a set of predefined data types. Stand-alone data types can either be defined internally in the program using the statement TYPES in the global declaration section of a program, in the declaration section of a class, locally in procedures, or for all programs in the ABAP Dictionary. Data types in the ABAP Dictionary are either created directly as repository objects or in a type group.

Predefined and self-defined data types can be used to generate data objects and for typing. For the latter in particular, predefined generic data types are available. A generic data type is a data type that does not determined all the properties of a data object. Generic data types can only be used for typing formal parameters and field symbols.

Data types can be divided into elementary, reference, and complex types.