‎2006 Feb 28 4:13 PM
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
‎2006 Feb 28 4:25 PM
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
‎2006 Feb 28 4:25 PM
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
‎2006 Feb 28 4:29 PM
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
‎2006 Feb 28 4:36 PM
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.
‎2006 Feb 28 4:41 PM
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
‎2006 Feb 28 4:43 PM