Show TOC

Function documentationICM Tracing Locate this document in the navigation structure

 

When developing a Web application, you will want to test parts of your application and analyze the coding’s dynamic behavior. Sometimes errors may occur that may not be able to be solved even with the help of the debugger.

To analyze the cause of the error, you need to be able to record the data streams to and from the Application Server ABAP. AS-ABAP provides this with its Tracing function.

The component, Internet Communication Manager, (ICM), regulates the HTTP data traffic. You can use Transaction SMICM to manage and trace this SAP kernel component.

Note Note

For more information about the ICM, see Internet Communication Manager (ICM).

End of the note.

The following information explains how you can use ICM tracing.

Prerequisites

You have basic knowledge about creating Web applications and the Internet Communication Manager.

Activities

  1. Call transaction SMICM.

  2. Choose   GotoTrace file   Display File   or   Display Start.

    This displays the trace file.

    Each trace has several levels. The trace level is set to 1 by default. In this setting only the most important system events and errors are logged in brief. This level is usually not sufficient for a more precise error search. This is why you can easily change the trace level.

  3. To increase the trace level, in the SMICM    initial screen choose   GotoTrace Level   Increase  .

    You can set the level directly or increase/decrease it by one level. 1 is the lowest level, 3 is the highest level with the greatest level of detail for the trace entries. The entire data traffic is recorded in the highest level.

    Caution Caution

    As all the data traffic is recorded at trace level 3, you should only set this level if you want to correct an error. Immediately after the recording has ended, you should reset the level to the standard level 1. If you do not do this, very large data volumes will be written to the file system, which could cause your hard disk partition to overrun.

    End of the caution.

For more information about managing the ICM process, see Monitoring the ICM with the ICM Monitor.