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

How to debug a report when it is executing back ground.

Former Member
0 Likes
2,224

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.

13 REPLIES 13
Read only

Former Member
0 Likes
1,986

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

Read only

FredericGirod
Active Contributor
0 Likes
1,986

you have to play with Evil, make a wait .. go in SM50 select the process, and ask for debugging (in the menu)

Read only

Former Member
0 Likes
1,986

Goto SM50 .. select your program

Program/Mode --> Program --> Debugging ..

Read only

Former Member
0 Likes
1,986

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

Read only

Former Member
0 Likes
1,986

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

Read only

0 Likes
1,986

Hi Sriram...

How to write code for endless loop.

Thanx & Regds..

Venky..

Read only

0 Likes
1,986

if 1 = 2.

loop at itab.

move ' ' to itab.

append itab.

endloop.

this is be an endless loop.

Read only

0 Likes
1,986

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

Read only

0 Likes
1,986

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.

Read only

Former Member
0 Likes
1,986

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.

Read only

Former Member
0 Likes
1,986

Hello,

Tip ever looked at

FUNCTION 'C160_HOLD_FOR_DEBUG'

Endless loop entered if value for user Param ESN = X

Dirk

Read only

Former Member
0 Likes
1,986

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.

Read only

Former Member
0 Likes
1,986

This message was moderated.