Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Program Parameters →  Language Environment 

Formatting Settings

Other versions: 7.31 | 7.40 | 7.54


The formatting settings of the language environment determine

  • the number format (decimal and thousand separators)
  • the date format (separators and order)
  • and the time format (24 hour or 12 hour format)

for formatted output.


The formatting settings are set as follows:


The formatting settings affect the following ABAP language elements:

  • Assignments with the statement WRITE TO
  • Output in lists with the statement WRITE

The formatting setting set in the user master record also affect the preparation of numbers, dates, and times specified on the screens of dynpros.

Handling Invalid Values

Preparing the content of data object of the types d or t normally takes place independently from their content. Invalid values are also compiled as date or time entries. For time output in the 12 hour format, the separators are inserted at the respective points for invalid values and the output of the AM/am or PM/pm abbreviation is undefined for the following exception.

Dynpros do not support any invalid values in the time fields with the 24 hour format with the exception of the value "24:00:00". This value is saved here as "240000" when passed to an ABAP field of type t. To support this value in time fields in 12 hour format too, it is formatted as "24:00:00 PM/pm".


The class CL_ABAP_TIMEFM contains a helper method for dealing with time formats.


Country-Specific Formats