In some programs and transactions, an other program/function module is submitted by RFC in order to run in background. In this case, it is impossible to get into the program or function module to analyze during debugging, here is an example. The function module MRP_KD_AUFTRAG_RFC is triggered to be run in background, so the debugger doesn’t go into it when F5 key (Single step) is clicked and there is no chance to debug that in this screen.

Program_background.JPG

The program above is run through the transactional RFC mechanism and it can be debugged as following. (There is an other  way of RFC so-called queue RFC, the programs and function modules are run through transactions SMQ1 and SMQ2. This blog only focus on the transactional RFC.).

Enter the debugger once the program or transaction get started, go to the menu below of debugger (New debugger).

Debugger_1.JPG

Select the checkbox below, then click F8 key to complete the processing.

Debugger_2.JPG

(In classic debugger, the menu is ‘Settings’ > ‘Display and change all’, select the checkbox ‘In background task: Do not process’. The menu ‘Display and change all’ doesn’t appear if the debugger is in PBO of screen, need to go into Modules of the screen.).

Now, the function module is not processed in background and stopped in transaction SM58 below for debugging.

SM58_1.JPG

Go to menu below to debug and process the function module.

SM58_2.JPG

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply