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 when an RFC FM is called

Former Member
0 Likes
5,360

Hi Gurus,

When I call an RFC function module from a program I want to debug it in the destination system. Is it possible??

eg., In a loop I call the RFC multiple tim

It would be great if you can provide some pointers.

Thanks in advance.

Regards,

Santhosh

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
2,148

Put a break point in your program just before calling the RFC. Once you are in the debug mode. Set the "System debugging" from the menu at the top. Now step into the call of the RFC. Once you have arrive at the other system in debug mode, choose Breakpoint, breakpoint at, function module. Enter the name of the RFC that you just called into the field. Hit enter, now hit F8. The debugger should have now stopped at the first statement of your RFC function module. Debug as needed.

Welcome to SDN! Please be sure to award points for any helpful answers that you might recieve and mark your posts as solved when solved completely. Thanks.

Regards,

Rich Heilman

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
2,149

Put a break point in your program just before calling the RFC. Once you are in the debug mode. Set the "System debugging" from the menu at the top. Now step into the call of the RFC. Once you have arrive at the other system in debug mode, choose Breakpoint, breakpoint at, function module. Enter the name of the RFC that you just called into the field. Hit enter, now hit F8. The debugger should have now stopped at the first statement of your RFC function module. Debug as needed.

Welcome to SDN! Please be sure to award points for any helpful answers that you might recieve and mark your posts as solved when solved completely. Thanks.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
2,148

If the RFC destination and origination is in the same system landscape, you should be able to debug. In our system since am in the same system landscape I can debug.

Sunil Achyut

Read only

Former Member
0 Likes
2,148

Hi Santhosh,

Yes you can do the debugging in your target system. Follow these steps.

1. Login to the destination system, SE37 go into display mode of the function module.

2. From the menu Utilities->Settings. In this under the main tab ABAP Editor, Take the subscreen tab 'Debugging' and activate teh external debugging. Here the user will be a CPIC user like the RFCUSER normally used for background communication.

Hence when this call happens once you login to ABAP stack using the user id with which you are communicating thru the RFC destination, one sessio window will automatically open up of the destination system in the debugging mode.

Cheers

JK

PS: Award points if this helps you.

Read only

Former Member
0 Likes
2,148

Hi,

Oops!! Apologies for not providing the example. If in a loop if we call an RFC FM multiple times then how can the control come back to the source system in the debug mode.

Regards,

Santhosh

Read only

0 Likes
2,148

The control will be passed back to the caller right after the RFC has finished in the target system.

Regards,

Rich Heilman