‎2008 Feb 26 8:49 AM
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.
‎2008 Feb 26 8:53 AM
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..
‎2008 Feb 26 8:54 AM
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.
‎2008 Feb 26 8:55 AM
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
‎2008 Feb 26 9:18 AM
Hi vijay,
i dont want to debug the completed jopbs. i want to debug the Running jobs.
‎2008 Feb 26 9:22 AM
‎2008 Feb 26 8:56 AM
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
‎2008 Feb 26 9:05 AM
Goto SM50 ..
Check your program against the list
Program/Mode>Program>Debugging
Now U'll be in debugging mode ..
‎2008 Feb 26 10:03 AM
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
‎2008 Feb 26 10:05 AM
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.