‎2007 Nov 29 2:26 AM
can i use dubug in a program which runs in background?if can,can anyone tell me how to use it.
regards
Aiolos.
‎2007 Nov 29 2:39 AM
‎2007 Nov 29 2:46 AM
‎2007 Nov 29 2:52 AM
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'.
How to debug background jobs? In SM37: Select the job, type JDBG in the OK-code and press enter. This can be used for both completed jobs and jobs to be processed (just make sure you have enough time to debug before the job actually starts). Breakpoints set in the job flow works. This method has been successfully used in R/3 4.6C.
‎2007 Nov 29 6:11 AM
Hi
There a no. of ways to debug the background job as mentioned in above posts. 1 more way is to go to SM50 Txn and find your background job of Type 'BGD'. Check that process and go to Program/Session ->Program -> Debugging.
You can not debug a program which is running in background but once the job is completed in sm37 select the job and type JDBG at command box, the job will go in debug mode and show you how it was executed.
BACKGROND PROGRAMS:you can debug the background jobs, use the command BDUG
One way of debuging programs which are already running in background is via transaction SM50. This displays a
list of process running in the server. In order to debug the program go to Menu option:
Program/Mode>Program>Debugging.