Mapping of the ABAP Data Types

The ABAP processor uses ABAP data types in the work areas for data.

Possible ABAP data types:

C: Character

D: Date, format YYYYMMDD

F: Floating-point number in DOUBLE PRECISION (8 bytes)

I: Integer

N: Numerical character string of arbitrary length

P: Amount or counter field (packed; implementation depends on hardware platform)

S: Time stamp YYYYMMDDHHMMSS

T: Time of day HHMMSS

V: Character string of variable length, length is given in the first two bytes

X: Hexadecimal (binary) storage

The data types defined in the ABAP Dictionary for the fields of a structure (or of a table or view) are converted into the corresponding ABAP data types when this structure is used in ABAP programs.

Mapping of the ABAP Dictionary and ABAP Processor Data Types

ABAP Dictionary type

ABAP type

ACCP

N(6)

CHAR n

C(n)

CLNT

C(3)

CUKY

C(5)

CURR n,m

P((n+1)/2) DECIMAL m

DEC n,m

P((n+1)/2) DECIMAL m

DATS

D(8)

FLTP

F(8)

INT1

X(1)

INT2

X(2)

INT4

X(4)

LANG

C(1)

NUMC n

N(n)

PREC

X(2)

QUAN n,m

P((n+1)/2) DECIMAL m

RAW n

X(n)

TIMS

T(6)

UNIT

C(n)

VARC n

C(n)

LRAW

X(n)

LCHR

C(n)

 

 

The characters used in the table have the following significance:

n: number of places of the field in the ABAP Dictionary

m: number of decimal places of the field in the ABAP Dictionary