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

Debug a functional module

Former Member
0 Likes
1,774

Hi,

Could you please tell me how to debug the function module.

Thanks,

Subha.

6 REPLIES 6
Read only

Former Member
0 Likes
1,086

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

Read only

Former Member
0 Likes
1,086

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.

Read only

Former Member
0 Likes
1,086

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

Read only

venkat_o
Active Contributor
0 Likes
1,086

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

Read only

Former Member
0 Likes
1,086

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

Read only

Former Member
0 Likes
1,086

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.