‎2008 Apr 15 3:36 AM
Hi,
Could you please tell me how to debug the function module.
Thanks,
Subha.
‎2008 Apr 15 3:47 AM
In SE37 while executing the FM there is an option to execute the same in Debugging mode. If you want to debug the FM as a stand alone code you can make use of this functionality. Provide the necessary input values and run the FM in debugging mode.
If you intend to debug the FM from another program wherein it is called you can always set a breakpoint inside the FM and execute the code in the calling program. The control will stop for you at the point where you have set the break point inside the FM automatically.
check this link also
http://help.sap.com/saphelp_nw04s/helpdata/en/d1/801f36454211d189710000e8322d00/content.htm
‎2008 Apr 15 3:49 AM
Hi,
u can directly execute the function module in debug mode in SE37 itself.
There are other ways of debugging a Function Module
1. Goto SE37 open the function module which u wnat to debug and keep a Break point in it.
Now use that Function module in ur program and execute ur program.
2. u directly use the function module in ur program and execute ur program in debugger mode by useing Function Code '/H'. Now u can debug the Function Module too.
reward if helpful
raam.
‎2008 Apr 15 4:36 AM
Hi,
Excute The Function Module and In Selection Screen
Pressthe Button For debugging(CTRL+F7)
You can put a breakpoint also and press execute.
Regards
Sandipan
‎2008 Apr 15 4:50 AM
Hi subhashini reddy, Debugging a function module. 1.goto SE37->give ur function module->press display->select Source code TAB -> Put break point in the source code-> Execute. 2.goto SE37->give ur function module->give input values for the function module->Select Debugging pushbutton. 3.goto SE37->give ur function module->give input values for the function module->give /H in the command field->Execute. 4.If you are using Function module in the program put break pint at CALL FUNCTION 'XXX' and run the program -> Cursor will be at CALL function -> Then press F5 to debug function module. Regards, Venkat.O
‎2008 Apr 15 5:19 AM
Hi
1)You Can go to SE37..
Type your module name
Press F8 or execute button
There you can see two options..
1a) Simple Execute
2b) Debugging
Click on Debugging it will be executed in debugging mode.
If you want to a apecific point the debugging should start you can give break point to a specified point and execute
3) you can use /h option for debugging
Hope this will be useful to you
‎2011 Jun 01 9:11 AM
A)You Can go to SE37..
Type your module name
Press F8 or execute button
There you can see two options..
a) Simple Execute b) Debugging
Click on Debugging it will be executed in debugging mode.
Any doubts revert.