Additional Blogs by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
javier_reviriego
Contributor

In some cases, when releasing the WL, the task to be executed (mass retirement, mass transfer or mass substitution) is not completed and no errors are displayed indicating the cause of the problem. This makes it hard to identify the correction actions to be taken so to complete the task. A debugging is necessary to find out the root cause of this behavior.

Procedure
A. Create a Work List

First it is necessary to create the WL by selecting the assets to be processed. The selection can be made using any standard report in the Asset Information System and placing the selected assets in the work list (function Create work list in the list display of the report).

B. Release the Work list (Transaction AR31).

When releasing a WL a background task is executed so apparently no debugging is possible. In order to be able to debug the procedure it is necessary to:

- Set a break point with transaction SE38 in program RAWORK01 (form arbvor_freigeben) and change parameter ld_debug :

If not ld_debug is initial -->Change ld_debug = X

- At this point procedure is executed and foreground examination is possible.

Here below are some of the points in the program that can be useful to check:

Call function AM_ASSET_RETIREMENT -> for mass retirement WL

Call function AM_ASSET_MASS_CHANGE -> for mass changes WL

Form TRANSFERPOST -> for mass intercompany transfers WL

Sometimes an error is not detected with the above procedure and incomprehensible the WL list finish with status completed when going trough the debugging process. However if executed in background the process is still not completed . This may occur in cases where a customer enhancement or exit affects the standard procedure.

In this last situation another way to debug the WL so to detect these errors is by using the following method:

  1. Create a work list as described before, open work list in AR31.
  2. Start the debugger with /h in the OK code + press enter.

  3. Choose "Release Work list" from the menu
  4. The debugger will be opened.
    If “new debugger” is used:
    Go to the menu > settings > Display / Change Debugger Settings and check "TRFC: In background Task: Block Sending"

    In case of “classic debugger” :
    Press the button “Settings” and then mark check box “background task: do not process".

    In both cases press F8 to continue .
  5. Open SM58 and list the RFC calls on your name. Select the entry
    SAP_WAPI_EXECUTE_WORKITEM and choose "Debug LUW" from the menu.
    At this point process can be executed in foreground and errors analyzed.
5 Comments