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 a program running in background.

Former Member
0 Likes
3,486

Hi,

Can we debug a program which is running in background. Please note that the program which to be debug is still running in background, not a finished job. thanks in advance,

Ram.

9 REPLIES 9
Read only

Former Member
0 Likes
2,521

GOTO SM51.

There choose the server in which ur background program is running. Place the cursor on the line which shows your program. Choose the menu option 'Debugging'.

Depending on your version the menu option is in different places.

If you have the correct authorizations, a window pop will pop up, with your program in the debugger

Reward points..

Read only

Former Member
0 Likes
2,521

Hi,

GOTO SM51.

There choose the server in which ur background program is running. Place the cursor on the line which shows your program. Choose the menu option 'Debugging'.

Depending on your version the menu option is in different places.

If you have the correct authorizations, a window pop will pop up, with your program in the debugger.

Reward Points if found helpfull..

Cheers,

Chandra Sekhar.

Read only

Former Member
0 Likes
2,521

Hi

You can debug the program running in background. Goto SM37, execute. This will show the list of completed jobs. Just check the correct job (for the program), type JDBG in the command window. This will let you debug the code. (there wiill be a few initial call of FM's after which you can view your code in the debugger).

Thanks

Vijay

PLZ reward points if helpful

Read only

0 Likes
2,521

Hi vijay,

i dont want to debug the completed jopbs. i want to debug the Running jobs.

Read only

0 Likes
2,521

using SM50 U'll debug running jobs ..

Read only

Former Member
0 Likes
2,521

Hi,

1. Run the specified program in the background by choosing program->Execute in Background. This step would execute the required program in background.

2. To debug the background job. Go to the transaction Sm37. You will see the job that was run under your name. Now, type ‘’JDBG’’ in command line and put the cursor on the respective job which you want to debug.

3. Now, press enter. It would directly go into the program in the debugging mode. This would now simulate the exact background scenario with the same selection screen values as used in the job and sy-batch set to ‘X’.

Now, you can debug in the same way as you do in an interactive session of running a program.

Just an extension to the above tip, you can also use the transaction SM50. After going inside the t-code, from the menu, choose Program Mode->program-> debugging.

Hope this helps. Do not forget to reward points.

Regards,

JLN

Read only

Former Member
0 Likes
2,521

Goto SM50 ..

Check your program against the list

Program/Mode>Program>Debugging

Now U'll be in debugging mode ..

Read only

Former Member
0 Likes
2,521

Goto SM50

Menu option : Program/Mode>Program>Debugging

Now you will be in debugging mode for the program name you entered but provided you have the relavant authorizations.

This way you can debug both completed as well as running jobs.

Ponts if helpful.

Roshan

Read only

Former Member
0 Likes
2,521

Hi,

GOTO SM51.

There choose the server in which ur background program is running. Place the cursor on the line which shows your program. Choose the menu option 'Debugging'.

Depending on your version the menu option is in different places.

If you have the correct authorizations, a window pop will pop up, with your program in the debugger.

Thanks,

Sriram Ponna.