2007 Nov 12 5:35 AM
i'm running a bdc in back ground , how to debug it in back ground is there any transaction is there
thanks & regards
krishna
2007 Nov 12 5:42 AM
Hi Krishna,
To debug a background job in SM37:
Select the job, type JDBG in the OK-code and press enter. This can be used for both completed jobs and jobs to be processed (just make sure you have enough time to debug before the job actually starts). Breakpoints set in the job flow works. This method has been successfully used in R/3 4.6C.
Thanks
Vasudha
i'm running a bdc in back ground , how to debug it in back ground is there any transaction is there
thanks & regards
krishna
2007 Nov 12 5:38 AM
Hi Krishna,
Check below links
http://www.sapdevelopment.co.uk/tips/debug/debug_backjob.htm
http://jplamontre.free.fr/SAP/Debug%20background%20process.htm
Regards,
Atish
2007 Nov 12 5:42 AM
Hi Krishna,
To debug a background job in SM37:
Select the job, type JDBG in the OK-code and press enter. This can be used for both completed jobs and jobs to be processed (just make sure you have enough time to debug before the job actually starts). Breakpoints set in the job flow works. This method has been successfully used in R/3 4.6C.
Thanks
Vasudha
2007 Nov 12 5:44 AM
Debug background Job.
, Transaction JDBG
Debug Program scheduled Background
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.
Regards
Pavan
2007 Nov 12 5:43 AM
Hi,
try like this..
You can debug batch jobs by going to 'SM37', type in 'JDBG' in the
command line ( no '/' ), put the cursor on the job and press enter - will
take you to the job in debug mode.
You can do this only after the job has finished execution. This will simulate the exact background scenario with the same selection screen values as used in the job also sy-batch will set to 'X'.
So type in the transaction code 'JDBG' and place your cursor on the job after It has finished. It will take you to a SAP program in debug mode. Step through this program which is about 10 lines, after this your program will be executed in the debug mode.
Steps
1. Create variant called BACKGROUND for program to be debugged.
2. Execute ZDEBUGBG (pgm code below) in background for immediate processing.
3. Execute transaction SM50.
4. Select process that runs ZDEBUGBG.
5. Goto 'Program/Session' 'Program' 'Debugging'.
A se80 debug session will open.
6. Change variable W_EXIT to 'E'.
7. Step thru (F6) until ZWBTEST comes up.
1. Go to Transaction SM66 and find your work porocess.
Select the line work process is on and click on the Debugging button.
If this is a custom program, you can put a wait statement in the code to buy yourself sometime.
2. Go to Transaction SM50. From the tool bar "Program/session"->Program->Debugging.
goto SM37 and from Program menu(not sure.. try other menu's)
-->Catchjob . it will goto the active job in debugging mode.
Reward if helpful.
Regards,
Nagaraj
2007 Nov 12 5:55 AM
Hi
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.
Reward ifusefull
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |