Have you ever been in a situation where you want to debug a program but the darn thing runs in background? Here
is a tip that will solve all your background debugging problems. There's only one condition: You have to be able to edit the coding. Enter an endless loop at the point you want to start debugging and start the program. Go to SM50. Wait till your process will seem to be "hanging". In the menu goto Program -> debugging. You will get into your program at the code you just entered. Change variable w_flag = 'X'. Continue debugging. Good luck.
do. clear w_flag. If w_flag = 'X'. Exit. Endif. Enddo.