Search This Blog

Friday, June 29, 2012

Activating Trace Logging in SAP

  1. Activate trace logging by setting the parameter rdisp/TRACE_LOGGING to ON. Also specify the size at which, once reached, the trace file is logged and the trace level is reset to 1.
  2. You can dynamically change this parameter in transaction RZ11.

    The parameter values have the following syntax:

    rdisp/TRACE_LOGGING = on, <n> [k m] off


    The first part specifies that logging is active. The value here can be either ON or OFF. If logging is active, you can specify the file size in the second part.

    rdisp/TRACE_LOGGING = off : no trace logging

    rdisp/TRACE_LOGGING = on, 1000: trace is logged if the trace file contains more than 1000 bytes

    rdisp/TRACE_LOGGING = on, 20 k: trace is logged if the trace file contains more than 20 KB

    rdisp/TRACE_LOGGING = on, 30 m: trace is logged if the trace file is greater than 30 MB


  3. Use the parameter rdisp/TRACE_PATTERN_0 to specify a trace pattern for automatically switching off the SAP trace. This parameter takes effect only if trace logging is activated using rdisp/TRACE_LOGGING. In this case, the trace files are searched for the search pattern before being automatically reset. If the pattern is found, trace logging is deactivated and the trace level is reset to 1. The following trace files are included in the search:
  • Work process traces dev_w*
  • Dispatcher trace dev_disp
  • Gateway trace dev_rd
  • ICM trace dev_icm
  • Message server trace dev_ms

The search pattern can contain the special character * for any character string, and ? for any character. The parametersrdisp/TRACE_PATTERN_1 and rdisp/TRACE_PATTERN_2 can be used to define additional search patterns. All search patterns use the or operator; in other words, if one of the patterns is found, the trace level is reset.

No comments:

Post a Comment