2007 Jun 27 2:20 AM
Hi all,
In sm37, I creat a job for my program,but I don't konw how to debug my program
when I execute the job?
Can any one tell me how to do it?
Best regards.
Thank you.
x.xu
Use JDBG transaction to debugg after executing in backround
will work
Regards
Sagar
2007 Jun 27 2:23 AM
Hi,
Just refer to the below links.
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/abap+debugger&;
Reward points if useful.
Regards,
Atish
2007 Jun 27 2:25 AM
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.
Thanks
Seshu
2007 Jun 28 8:07 AM
Hi,
Add the following code in your pgm For creating a dummy loop.
Data: w_I type I.
w_i = 0.
Do while w_i = 0.
Enddo.
Since w_i is always o this will go in a loop.
Once You fire the jon in background go to SM37, select your job by ticking the checkbox, then Select option JOB from the menu bar ( 1st from left )----->Capture Active job. Noe you are in debugg mode, & pgm will halt at one of the above added statements. Change the value of w_i to say 1 so that 'endless loop' will end & pgm will proceed with code after 'Enddo'.
I hope this helps,
Regards,
Raju Chitale
2010 Mar 17 6:05 AM
Use JDBG transaction to debugg after executing in backround
will work
Regards
Sagar
2010 Mar 17 7:29 PM
2010 Mar 17 7:48 PM
Before anyone else jumps in, please note the date of the original question.
Rob
2010 Mar 17 8:00 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |