Tipe Data Elemen Standar di SAP

<< Click to Display Table of Contents >>

Navigation:  All About ABAP Technique > Indonesia > ABAP Tutorial > Tipe Data ABAP >

Tipe Data Elemen Standar di SAP

Character (text), Numerical character (number string), Date, Time Integer, Floating point number, Packed number, dan HeX code).

 

Tipe Data

Artinya

Nilai Awal

Panjang Digit

Digit diperbolehkan

Numerik

 

 

 

 

 

P

Packed Number

0

8

1-16

 

I

Integer

0

4

4

 

F

Floating point no.

0.000…

8

8

Alfa-numerik

 

 

 

 

 

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

Hexadesimal

X'00'

1

1-max.

 

 

 

 

 

Max : 65,535 bytes

Contoh :

>> Kode Sintak

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.

 

 

>> Tampilan :

abap_tutorial0001