2006 Nov 10 10:37 AM
Hi all,
How to debug a report which is scheduled in background.
Thanks in advance
Ranjith
2006 Nov 10 10:39 AM
Hi,
Debug program running in background
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.
Regards
Anver
if hlped pls mark points
Hi all,
How to debug a report which is scheduled in background.
Thanks in advance
Ranjith
2006 Nov 10 10:39 AM
Hi,
Debug program running in background
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.
Regards
Anver
if hlped pls mark points
2006 Nov 10 10:44 AM
2006 Nov 10 10:40 AM
Hi
U have to run trx SM50 (or SM51 if you have several servers) and get the process for debugging: Program/Mode>Program>Debugging.
Max
2006 Nov 10 8:29 PM
to put break-points
put this code
data: v_x.
do.
if not v_x is initial.
exit.
endif.
enddo.
Go to SM50 and stop the program
change the value of variable to exit do.
you stop the program in any place,
2006 Nov 10 8:35 PM
goto SM37, select the job which you want to debug,
enter the command /nBDBG.
try this, you can debug scheduled and also finished jobs.
2006 Nov 10 8:47 PM
Sorry the transaction is wrong, will findout and let you know.
i forgot the transaction name, search with BDG*
2006 Nov 11 12:15 AM
In SM37 Job overview, it is Menu JOB -> Catch Job. This will catch it in the debugger. If it is too fast for that, then calls this form:
<pre>
perform wait_debug.
form wait_debug.
data: lv_wait type flag value 'X'.
while lv_wait is not initial.
endwhile.
endform.
</pre>
If you catch a job with report 'waiting' in this form, you can clear lv_wait in debugger and then continue step ba step.
Regards,
Clemens