2008 Feb 07 9:39 AM
Hi Experts,
How to debug a report when it is executing back ground.
Thnx & Regrds.
Venky.
Hi Experts,
How to debug a report when it is executing back ground.
Thnx & Regrds.
Venky.
2008 Feb 07 9:43 AM
Hi,
As far as I know you can't. You can debug background processes such as the update proces, by activating the update debugger.
If you want to test screen validations, you can overwrite sy-batch, which is flagged in background processing.
Bert
2008 Feb 07 9:44 AM
you have to play with Evil, make a wait .. go in SM50 select the process, and ask for debugging (in the menu)
2008 Feb 07 9:46 AM
Goto SM50 .. select your program
Program/Mode --> Program --> Debugging ..
2008 Feb 07 9:49 AM
u can debug the program put /h after selection screen and execute the program ]
and change systum variable sy-batch = space in debugging mode and do the debugging
2008 Feb 07 9:55 AM
Hi,
Have you ever been in a situation where you want to debug a program but the darn thing runs in background? Here is a tip that will solve all your background debugging problems. There's only one condition: You have to be able to edit the coding. Enter an endless loop at the point you want to start debugging and start the program. Go to SM50. Wait till your process will seem to be "hanging". In the menu goto Program -> debugging. You will get into your program at the code you just entered. Change variable w_flag = 'X'. Continue debugging.
Good luck.
Thanks,
Sriram Ponna.
Edited by: Sriram Ponna on Feb 7, 2008 3:25 PM
2008 Feb 08 5:21 AM
Hi Sriram...
How to write code for endless loop.
Thanx & Regds..
Venky..
2008 Feb 08 5:25 AM
if 1 = 2.
loop at itab.
move ' ' to itab.
append itab.
endloop.
this is be an endless loop.
2008 Apr 28 12:45 PM
this loop will never be executed bcoz 1 will never be equal to 2..
IF 1 = 2 is used for message handling in the maintenance.
~Sid
2014 Jan 29 3:48 PM
In your zprogram
{code}
data: var type c.
Do
if var = 'X'.
exit.
endif.
Enddo.
{code}
Once you go to SM50 and select debugging,it will stop at the above piece of code.To exit the endless loop set the variable var to 'X' during the iteration and then continue with your debugging.
K.Kiran.
2008 Apr 28 12:48 PM
Hi,
Create a background job and specify the program to be executed in background.
We can debug the job. in Sm37 choose the job, type JDBG in command window and the debugging mode will be switched on. It will take you to the report program.
Thanks and Regards,
Lakshmi.
2014 Jan 29 3:00 PM
Hello,
Tip ever looked at
FUNCTION 'C160_HOLD_FOR_DEBUG'
Endless loop entered if value for user Param ESN = X
Dirk
2014 Jan 29 3:50 PM
Hi,
In sm37 select the program and give JDBGit will take to debug mode or in SM50 you can see the all programs list running inn background, here u can change the mode to debugging(menu--> options)
Regards,
Charan M.
2014 Jan 29 4:41 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |