Get Example source ABAP code based on a different SAP table
Formatting Settings
Formats The formatting settings of the language environment> determine
the number format (decimal and thousands separators)
The date format (separators and order)
The time format (24 hour or 12 hour format)
The time stamp format (composed of date format and time format) for formatted output.
Definition The formatting settings are set as follows:
At the start of an ABAP_ISESS > , they are determined by the corresponding Defaults> in the user master record > of the current user.
Using the statement SET COUNTRY>>, this default setting for the current ABAP_ISESS can be overwritten using country-specific formats>.
Effect The formatting settings affect the following ABAP language elements:
Assignments with the statement WRITE TO>>
Output in lists with the statement WRITE>>
Specifies the parameter ENVIRONMENT>> for the formatting options NUMBER>>, DATE>>, TIME>>, and TIMESTAMP>> for embedded expressions> in string templates>. The formatting settings defined in the user master record also affect the formatting of numbers, dates, times, and time stamps specified on the screens of dynpros.
Handling Invalid Values The content of data object of the types d> or t> is normally formatted independently from their content. Invalid values> are also interpreted as date or time specifications. 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 with 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 stored here as 240000> when passed to an ABAP field of type t>. To be able to support this value in time fields in 12 hour format too, it is formatted as 24:00:00 PM/pm>. Time stamp fields of the type utclong> must contain valid values to be able to be represented as dynpro fields on dynpros and only valid values can be entered. Invalid values can be produced by castings.
Latest notes:
The classes CL_ABAP_DATFM>> and CL_ABAP_TIMEFM>> contain helper methods for handling date and time formats.
The Defaults> of the user master record> for each user are stored in DDIC database table USR01>>. ABAP_HINT_END