Show TOC

Reexecution of Logged User ActionsLocate this document in the navigation structure

Use

In the trace tool environment, you can replay the program objects recorded in a trace, using the same transfer parameters that were saved in the system during recording.

You can use this function to inform an employee working in support about an error.

You can also play a trace for the purpose of regression tests: This compares current test data with reference data that has been saved and verified as correct in order to check the correctness of the software (seeCAT Tool).

Prerequisites
Features

The trace tool supports different process flows when executing a trace:

  • You can directly execute a trace. This option is suitable for regression tests, for example.
  • You can cause the play of the trace to be interrupted before particular program objects. This option is particularly useful if you want to analyze errors. The ABAP Debugger appears directly before the selected program object is called.

    Since the trace tool only plays those program objects that belong to the application layer that is currently chosen, you can only select to play these objects.

On the Execution of Traces screen, the system in the Trace screen area shows the standard information for the trace (Trace GUID, Trace(ID), Description).

In the Process screen area you can select a Process Mode. This specifies how the trace is to be handled when it is played:

  • The Play Mode (Play Trace) mode causes the trace to be played. For standard traces, this is the only possible selection.
  • The Check Mode (Test Trace) mode starts the regression test. This mode is only available for CATT traces.

The following tab pages are displayed in the lower screen area:

  • On the Display Settings tab page, you can set the display mode. You still have the following options:
    • Debugging at Call Position: The system interrupts the execution of a trace at a recorded program object.
    • Debugging at Check Position: The system interrupts the execution of a trace at a checked program object.
  • On the Play Settings tab page, you can select from trace-type-dependent settings that influence the execution of a trace.
    Tip

    For traces from the application area Reporting, Planning and OLAP Technology, the following settings are made:

    • Read Mode: Read All, Read During Navigation, Read During Hierarchy/Navigation. For more information, seeRead Mode.
    • Cache Mode: Without Cache, With Cache (Initial), With Cache (Filled). More information:Cache Mode
    • Aggregation Mode: Without Aggregate, With ROLAP Aggregates, with BI Accelerator Index. More information:Creating and Managing BWA Indexes in the BW System andPerformance Optimization with Aggregates.

Use Execute to start the execution of a trace. The system documents the process flow step by step, using corresponding messages. The messages are displayed in a window in the lower screen area.

Activities
  1. You can play a trace from the Trace or Trace Collection areas of the Trace Tool functional area. Follow these steps:
    1. In the navigation window, under Trace Tool, you can choose the Tracesarea. This allows you either to enter the name of the trace to be played in the Trace (ID)field, to select it from the input help, or to select it from the appropriate line in the History of Last Tracestable to transfer it.
    2. In the navigation window, under Trace Tool, you can choose Trace Collection. This allows you to display a selection of traces that are restricted by user, application layer, and trace type. Once you have specified the selection criteria, press Enter. The system displays all traces that meet the selection criteria. Select the required trace.
  2. You can call the Execution of Tracesscreen as follows:
    1. Choosing Execute takes you directly to the Execution of Traces screen.
    2. Choosing Display or Change takes you to the Trace Attributes screen that is used to maintain traces. Choosing Execute takes you directly to the Execution of Traces screen.

    Define the settings for executing a trace as described in the features section.

  3. To execute the chosen trace, you have the following options:
    1. On the Execution of Tracesscreen, play the entire trace by choosing Execute.
    2. Alternatively, on the Logged Program Objects tab page on the Trace Attributesscreen,  you can execute the trace directly by selecting a row in the table. The system interrupts the process flow at the program object in the selected row.