Elementary Data Types: Type Keyword
Elementary Data Types: Type Keyword
Type Keyword
Byte field X
Text field C
Integer I
Floating point F
Packed number P
Some of the fields and numbers can be modified using one or more names
as the following −
byte
numeric
character-like
The following table shows the data type, how much memory it takes to store
the value in memory, and the minimum and maximum value that could be
stored in such type of variables.
C 1 character 1 to 65535
F 8 bytes 2.2250738585072014E-308 to
1.7976931348623157E+308
positive or negative
Example
REPORT YR_SEP_12.
Write / text_string.
d_date = SY-DATUM.
Write / d_date.
The DATE type is used for the storage of date information and can store eight
digits as shown above.
When the elementary types are grouped together, the data item can be
accessed as a grouped data item or the individual elementary type data items
(structure fields) can be accessed. The table types are better known as arrays
in other programming languages. Arrays can be simple or structure arrays.
In ABAP, arrays are called internal tables and they can be declared and
operated upon in many ways when compared to other programming
languages. The following table shows the parameters according to which
internal tables are characterized.
2 Key
3 Access method
Reference types are used to refer to instances of classes, interfaces, and run-
time data items. The ABAP OOP run-time type services (RTTS) enables
declaration of data items at run-time.