Show TOC

Predefined ABAP TypesLocate this document in the navigation structure

Syntax Form
... abap.name[(n)|(n,m)]
Definition

Elementary components can be typed with a user-defined data element or directly with a predefined data type. In the latter case, you have to add the leading prefix abap., followed by the name of the predefined dictionary type in a component definition. If the chosen type requires additional information on length and decimal places, you will need to add this information in brackets.

Notes

You will find a list of the available predefined dictionary types and their technical attributes in the ABAP Keyword Documentation that is linked below.

Example

Both components are assigned to the predefined data types that begin with abap. as leading prefix. After the value, the length and decimals places follow in brackets.

...
  has_graduated : abap.char(1);
  cost_factor   : abap.dec(2,1);
...