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

Debugging RFC Function Modules

Former Member
0 Likes
15,670

Hello,

I am trying to debug a function module but the program just won't enter the debugging mode for the function module (i.e. it will continue processing but I cannot debug the FM itself, remotely). When I use different RFC destination, it works. But for some it doesn't, like this instance. Upon pressing F8, the tool will continue processing but we are not able to debug the FM.

What could be causing this? Is it the configuration of the RFC Destination or the RFC User itself? And what can we do to fix this problem?

Thank you.

1 ACCEPTED SOLUTION
Read only

deepan_v_s
Active Participant
0 Likes
12,181

Hello Laarni,

For Debugging an RFC FM, you need to have your user enabled in the target system with debugging rights.

Please find the below link for reference,

https://scn.sap.com/thread/1572841

Regards,

Deepan.

4 REPLIES 4
Read only

Former Member
0 Likes
12,181

Hi,

Check which user is executing the function module. Now in utilities-->setting, tab Abap Editor, tab Debugging change the user to the one that is executing the function module through RFC.

Now place an external break-point and as long as you are logged in the same system and client it should go to debugging.

If you can't change the user, then in all probability it is a system user. What you can then do is temporarily change the user to dialog for debugging purposes (take special care when you do this on production because the sizing for dialog user can be massively different from background users).

Kind regards, Rob Dielemans

Read only

Former Member
0 Likes
12,181

Hi,

You need to create a RFC Connection with the Logging user of System. Example, if you login to ECC System with USER01 as username then you have to create a RFC connection with the same user USER01 or need to call the RFC Function Module with the user with which you have placed the debug point. And the it must be an external debug point which needs to be enabled.

have a look at this following article:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0e8b21b-e1b4-2c10-49b5-fd6a95162...

Hope this will help you.

Thanks,

Marcelo Macedo

Read only

deepan_v_s
Active Participant
0 Likes
12,182

Hello Laarni,

For Debugging an RFC FM, you need to have your user enabled in the target system with debugging rights.

Please find the below link for reference,

https://scn.sap.com/thread/1572841

Regards,

Deepan.

Read only

Former Member
0 Likes
12,181


Hi Laarni,


Make sure RFC user is defined as Dialog user. You have to keep External Debugging in ECC rather than session Break-Point.  Hard coded break point also will help.


Check the username , it should be identical.


Hope this information is useful.


Regards,


Deepa