|
<< Click to Display Table of Contents >> Navigation: All About ABAP Technique > English > ABAP Tutorial > ABAP Data Types > Built-in Elementary Data Types |
Character (text), Numerical character (number string), Date, Time Integer, Floating point number, Packed number, and HeX code).
|
Data Type |
Meaning |
Initial Value |
Standard Length |
Permitted Length |
Numeric |
|
|
|
|
|
|
P |
Packed Number |
0 |
8 |
1-16 |
|
I |
Integer |
0 |
4 |
4 |
|
F |
Floating point no. |
0.000… |
8 |
8 |
Alpha-numeric |
|
|
|
|
|
|
N |
Numeric text |
00…0 |
1 |
1-max. |
|
C |
Text |
blank |
1 |
1-max. |
|
D |
Date (yyyyMMdd) |
00000000 |
8 |
8 |
|
T |
Time (hhmmss) |
000000 |
6 |
6 |
|
X |
Hexadecimal |
X'00' |
1 |
1-max. |
|
|
|
|
|
Max : 65,535 bytes |
Example :
>> Source Code
Data : a TYPE i,
b TYPE i,
c TYPE p DECIMALS 2.
START-OF-SELECTION.
a = 10.
b = 100.
c = a / b.
WRITE : / 'Hitung : ', a, '/', b, '=', c.
>> Display :
![]()