Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Obsolete Language Elements →  Obsolete Declarations →  Data Types and Data Objects 

TYPES - implicit

Short Reference

Other versions: 7.31 | 7.40 | 7.54

Obsolete Syntax

TYPES { dtype }
    | { dtype(len) }
    | { dtype LENGTH len }
    | { dtype TYPE c|n|p|x }
    | { dtype(len) TYPE p}
    | { dtype TYPE p LENGTH len}
    | { dtype TYPE p DECIMALS dec}.


Obsolete short forms of the statement TYPES with reference to a predefined elementary type abap_type.

  • If TYPE abap_type is not specified, the type is set implicitly to the standard type c.
  • If len or dec is not specified for the ABAP types c, n, p, and x, the length is set to the type-compliant standard length. No decimal places are set for p. This is only permitted outside of classes or interfaces.


All additions should be specified in full, to make them easier to read.

Bad example

TYPES: t1, 
       t2 TYPE p.

Good example

       t2 TYPE p LENGTH 8 DECIMALS 0.