Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

debug in background

Aiolos
Active Participant
0 Likes
690

can i use dubug in a program which runs in background?if can,can anyone tell me how to use it.

regards

Aiolos.

4 REPLIES 4
Read only

Former Member
0 Likes
655

Look at the following Thread.

Amandeep

Read only

Former Member
0 Likes
655

Look the following thread.

Read only

Former Member
0 Likes
655

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.

Read only

Former Member
0 Likes
655

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.