04-27-2009 11:09 AM
Hi all,
Can anyone tell, how to debugg a FM called in a BACKGROUND TASK ?
Thanks
Vishy.
04-27-2009 11:12 AM
Hi,
Introduce an infinite loop in the called FM.
Then go to SM50 transaction and debug,.
Regards,
Ravi
04-27-2009 11:12 AM
Hi,
Introduce an infinite loop in the called FM.
Then go to SM50 transaction and debug,.
Regards,
Ravi
04-27-2009 11:27 AM
Hi all,
The FM is used in an include program which has not been scheduled to run as a job.
Any other ways to stop there w/o the need to change the piece of code inside.
Thanks,
Vishy.
04-27-2009 11:12 AM
Go to sm37 and select your JOB and type JDBG in the command line press enter.
Regards
Jyo
04-27-2009 11:17 AM
04-27-2009 11:37 AM
Hi:
1.
If its a Z - function module and then put the endless loop like
data : lv_cnt type char01
do.
if not lv_cnt is initial.
exit.
endif
enddo.
Run the transaction or whatever, go in sm50 - you process would be in running mode - select the row and then
select program/session -> program -> debugging -> it would stop at do in debugging mode and then put some value for lv_cnt to come out.
2. Else /h and then enter from where you want to start the debugging - > it would go in debugging - put the function module at breakpoint -> click the box - in update task..
Enjoy the debugging
Regards
Shashi