Start of Content Area

Procedure documentation Exercise 1: Activating the Trace Mode   Locate the document in its SAP Library structure

Usage

To keep track of the method calls added to the Automation Queue, you can use the trace mode. All Automation calls are written to a file with their parameters and result values and displayed on a dialog box. For example, this helps you analyze which queue method called has caused an error.

Procedure

  1. Choose Options in the configuration menu:
  2. This graphic is explained in the accompanying text

     

    The system displays a screen with tabs for the general options.

  3. Choose the Trace tab.
  4. To set the trace mode, choose Disable first.
  5. Select the Automation checkbox, and choose a display level using one of the Trace Level radio buttons.
  6. Note

    If you choose level 1, the system displays all Automation calls including parameters and result values. If you choose level 2, the tables of the Automation Queue are additionally displayed.

     

  7. Enter a name for the trace file where you want to save the information.
  8. Note

    The file is created on your local PC in directory C:\sappcadm .

     

  9. To track trace information during program execution, select Show Window.
  10. Choose Enable.
  11. The system opens an additional window to display Automation calls.

  12. Save your data by choosing OK.

Check Your Work

Start your program. In the trace window, you see how your method calls are passed on via the Automation Queue to the Automation Controller. If you have specified a file name, you can find the same text there.

Note

Transfer of the methods listed is indicated by a horizontal line in the trace run. This means that a flush has been triggered for these methods. You can also use the trace run for flush optimization.