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

Debugging Report which is scheduled in background

Former Member
0 Likes
1,593

Hi all,

How to debug a report which is scheduled in background.

Thanks in advance

Ranjith

1 ACCEPTED SOLUTION
Read only

anversha_s
Active Contributor
0 Likes
1,162

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

7 REPLIES 7
Read only

anversha_s
Active Contributor
0 Likes
1,163

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

Read only

0 Likes
1,162

Hi anver,

thanks for your Quick reply

Ranjith

Read only

Former Member
0 Likes
1,162

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

Read only

Former Member
0 Likes
1,162

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,

Read only

0 Likes
1,162

goto SM37, select the job which you want to debug,

enter the command /nBDBG.

try this, you can debug scheduled and also finished jobs.

Read only

0 Likes
1,162

Sorry the transaction is wrong, will findout and let you know.

i forgot the transaction name, search with BDG*

Read only

0 Likes
1,162

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