Show TOC

SYSTEM_INFO( )Locate this document in the navigation structure

Semantics

Returns system information according to the input parameters

Return type

ABAP type: STRING

Argument

This function can have only one argument of ABAP type C with length = 1. The argument may contain the following values:

‘A’ : Returns the name of the application server instance as it is given by the profile parameter rdisp/myname.

‘T’ : Returns the current UTC time stamp (long), according to the pattern: YYYYMMDDHHMMSS,mmmuuuun

‘t’ : Returns the current UTC time stamp (short), according to the pattern: YYYYMMDDHHMMSS

If no argument is specified, the ‘A’ value is assumed (default value).

If a value other than ‘A’, ‘T’ or ‘t‘ is specified, the string ’<INVALID_SYMBOL>’ is returned by the function.

If an argument type other than ABAP type C with length = 1 is specified, the string ’<INVALID_SYMBOL>’ is returned by the function.

For better code readability, usage of the built-in constants is recommended:

  • AppServName: ‘A’
  • TstmpS: ‘t’
  • TstmpL: ‘T’

Examples:

system_info( AppServName ) or system_info( TstmpL )

Note that these constants are defined in the scope of the parameter list of built-in functions that are used in dynamic logpoints only. This means they are not valid inside standard ABAP code, nor can they be used as normal variables in the condition, in the key definition, or in the field values of dynamic logpoints (outside the parameter list of built-in functions).