Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Language Environment →  Formatting Settings →  Country-Specific Formats 

Number Formats

The format of numbers is specified by the column XDEZP of the database table T005X. The options in the table below are available for displaying decimal separators and thousands separators:

XDEZP Decimal Separator Thousands Separator
" " "," "."
X "." ","
Y "," " "

The setting for the decimal separator also affects the formatting of time stamps in time stamp fields.

Other versions: 7.31 | 7.40 | 7.54


Example

Output of a number and time stamp with different separators.

DATA pack TYPE p DECIMALS 2 VALUE '1234.56'. 
DATA(utcl) =  utclong_current( ). 

cl_demo_output=>display( 
  |{ pack COUNTRY = 'DE ' }\n{ 
     pack COUNTRY = 'US ' }\n{ 
     utcl COUNTRY = 'DE ' }\n{ 
     utcl COUNTRY = 'US ' }| ). 

Executable Example

To see the display of a number in all possible formats, see the respective example with character string templates.