Carrying out restricted trace

Until now, we have seen how we are able carry out the trace on our user, as well as without any restrictions. In this recipe, we will see how a trace may be carried out on other users along with additional imposed restrictions.

Problem areas may be difficult to find at first. One approach is to run an unrestricted trace in order to find out the problematic program/transaction or a user. We may then run a "restricted" trace focusing only on the particular program or user.

In addition, one more use of a restricted trace is when we run multiple programs/transactions in various sessions. We may run a time-consuming report of Finance (FI) module in one session, and at the same time, want to trace an HR transaction code, say PA30, in another session. We can then specify the transaction code of HR in the restriction criteria of a restricted trace. In this way, the trace records of the FI report that is running or any other activity in any session will not be included in our trace results.

How to do it...

  1. For carrying out a trace that is restricted, call transaction ST05.
  2. On the main screen, click the Activate Trace with Filter button. The Set Restrictions for Writing Trace dialog appears.
    How to do it...
  3. Enter the User Name in the field provided. We enter the value JON_2. In the Transaction Name field, we enter the transaction code PA30. In the Include Table Names area, we enter HRP* and PA00*. In addition, if we know the Process Number of the process, we can simply enter the three digit Process Number in the field provided. This will only trace the process number in question.
  4. Press Enter when all entries are done. The trace is on. When we like to switch off the trace, the same Deactivate Trace button is used.

How it works...

In this recipe, we have switched on the trace for the user JON_2 and focused only on the transaction PA30 and also the tables whose names start with either HRP or PA. The trace file will therefore look like the following screenshot:

How it works...

There's more...

It is recommended that for performance optimization, we first run a trace without restrictions. We can then filter the results according to the various criteria of the selection fields or the Display Trace screen. We will see how this is done in the next recipe.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.136.142