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

FM Debugg

former_member630092
Participant
0 Likes
714

Hi all

Can be debugg Function Module & Subroutines ? What is the procedure ?

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
685

Hi Ravi,

It will be same as you do for reports.

Either use /h on command promt or put a breakpoint in the source code.

Regards,

Atish

7 REPLIES 7
Read only

Former Member
0 Likes
686

Hi Ravi,

It will be same as you do for reports.

Either use /h on command promt or put a breakpoint in the source code.

Regards,

Atish

Read only

Former Member
0 Likes
685

Hi,

Select the line in abap code to which u want to monitor.Then Go in menu bar

Utilities->Breakpoints->Set

or put /h command

Regards

Read only

Former Member
0 Likes
685

You can debug FM or a subroutine as the same way as you do when you debug a report.

You set a break point by pressing CtrlShiftF12.

Or you can give '/h' in the command prompt.

Regards,

Pavan

Read only

Former Member
0 Likes
685

hi ravi,

YES u can debugg a FM as well as subroutine...

if u want to debugg a FM just go to se37 --> enter FM name --> display..

select where u want to add a break point now just click on breakpoint button

and execute...enter the export parameters u will get the FM in debugging mode...

or else u can exeute the FM and click on debugging ....

similarly select the subroutine and execute...

hope this may be usefull...

please reward incase usefull...

regards,

prashant

Read only

Former Member
0 Likes
685

Hi,

You can debug in the FM.

If you want to make debug goto se37 . type the FM name and Execute it.

Befor execute type /h in the T-CODE bar. so that you can debug.

Else goto the same transaction and display the FM and goto the source code and set a break point.

Thanks,

Yogesh

Read only

Former Member
0 Likes
685

1. As usual way, go to the program code where you want to set a break-point.

Find the Subroutine/Fm set a breadpoint first by selection the FORM/FM than click on the break-point symbols. Now when you run the program the debugging will start from that place.

2. Before executing transaction code/ report enter /h in sap command. Than run the transaction/report. It will start your program in debugging mode.. Now you can set break point on Subroutine/FM, go to the breakpoint menu in debugging screen there you will see menuitem Subroutine & Function module, If it is a subroutine debugging enter only the subroutine name in subroutine menuitem or if it is a FM just enter the FM name in Function module menu item. Than press F8. It will stop inside subroutine/FM in debugging mode.

Good luck,

Regards,

A.Singh

Read only

former_member630092
Participant
0 Likes
685

Answered