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 RFC from Se38

Former Member
0 Likes
1,220

Hi Experts,

I am calling an RFC fucn module from my report program in se38.

while debugging(F5) it not going inside the RFC FM which is specified with proper destination.

How should i debug the RFC Fm from my se38 report ? Is there any special tech like placing a break pointin RFC ..etc?

Please help.

thanks

Dany

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
1,047

Hi,

While using RFc function module , it is not mandatory that the function module

is there in source system.

First check the function module is there in system.

If the function module is available only in target destination (RFC destination ) system then debugging is not possible, if you are calling from source system.

aRs

8 REPLIES 8
Read only

amit_khare
Active Contributor
0 Likes
1,047

Put the break point on the call function line in the report and then check, if the flow is right it should go inside the FM.Otherwise you have to check the flow.

Regards,

Amit

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,047

Put a break point at the call function statement. Once the debugger reaches here, turn on "System Debugging" from the menu. Now F5 to step. It should go inside the function module call, or at least at a system level call, if at a system level call, then do one more thing. In the debug screen, choose Breakpoints->Breakpoints at->function module. Enter the name of the function module that you are trying to debug and hit enter, now F8. The debugger should stop at the first source code line in the RFC function module.

Regards,

RIch Heilman

Read only

0 Likes
1,047

Hi Rich,

Its not going inside the RFC Func module eben though i switched on system dubugging on.

Can u sggest more ways of doing this?

thanks

Dany

Read only

Former Member
0 Likes
1,047

HI Dan,

If the user who is specified for the RFC Destination in the transaction: SM59, does not have the debug authorization then we cannot debug the FM. Actually the debug screen of the FM will be a new session al together, please verify that you do not open maximum sessions and trying to debug RFC FM.

Please, let me know if further details are required.

Thanks & Regards,

Goutham.

Read only

former_member194669
Active Contributor
0 Likes
1,048

Hi,

While using RFc function module , it is not mandatory that the function module

is there in source system.

First check the function module is there in system.

If the function module is available only in target destination (RFC destination ) system then debugging is not possible, if you are calling from source system.

aRs

Read only

0 Likes
1,047

Hi ARS,

Yes the RFC function module is available only in target destination (RFC destination ) system and not in source system.

Please tell me if there is away to ensure that the dats from my source system is passing to RFC fm in destination system.

thanks

Dany

Read only

0 Likes
1,047

Hi Dan,

You cannot debug the RFC Fm as usual. You need to make sure that you are able to login in to the system containing the RFC using SM59 with your own login. Now place a break point just before the RFC Fm in your se38 and press F5. now it goes into the RFC .Now you need to place a break point at your RFC FM by specifying your RFC name.

and hit F8 . It goes inside the RFC Func module code.

Try it and let me know.

Harikumar Ganti

Read only

former_member194669
Active Contributor
0 Likes
1,047

If the RFC is available only in the target system and login into target system give destination NONE and try.

But if you are calling from source system then you could not able to debug

You can only debug where the function module is available

aRs