‎2009 Mar 06 2:54 PM
Hi,
How can you debug a function module which is called with an add on 'STARTING NEW TASK' ?
Thank you.
‎2009 Mar 06 3:37 PM
‎2009 Mar 06 3:47 PM
Hi,
the only way i know is :
1. Create an endless loop in the FM like:
clear x.
do.
if x = 1. exit. endif.
enddo.
Now run the program. If you call the sm50 trx you'll see a new task : your function module. Now get the session in debug (Menu Program/Sessio -> Program -> Debugging) and change the x value to exit form the loop. Continue with the debug.
Regards
Andrea
‎2009 Mar 08 6:45 AM
Thank you for the input. What if I plan to do the debugging in a non development box. Is there a way to directly trigger the debugger screen once you call the function module ?
‎2009 Mar 08 6:48 AM
Use BREAK-POINT command in your function module.
Regards
~Satya
‎2013 Jun 25 3:51 PM
Hi,
Try to turn on the system and update debugging and try.
I too had the problem and i used the same to debug the function module.
In debugger screen, Goto settings -> Display/change debugger settings -> check on System and update debugging.
Regards,
Thanga Prakash T
‎2013 Jun 25 7:35 PM
Keep a session break point before the function module call and and external break point inside the fm.
Then once the debugger starts,check the flag 'Block TRFC Sending / TRFC: Block Sending' in the debugger(Go to settings ->change debugger settings, this flag should be under Debug type if i remember correctly).
Then execute the FM.
Go to SM58, press F8, the fm should be visible there. Select the FM, go to edit and select 'debug luw'...Here you will have to go through some std. sap code before the FM and this is where the 2nd break point comes into play,Press F8, it will go right into your fm and you can debug from there.