‎2009 Jan 09 6:25 AM
Hi,
I have a doubt that how to debugg a RFC FM. Could any one tell me Step by Step.
Thanks & Regds,
Harkesh Dang
‎2009 Jan 09 6:31 AM
https://forums.sdn.sap.com/click.jspa?searchID=20742599&messageID=6802818
Jus check this thread,.
Hope it helps.
‎2009 Jan 09 6:36 AM
hi Harkesh
you can do this by following the steps given below
you need to put a break point at the first check statement before calling the RFC. now in debugger, click Settings, system debugging. Now you need to step through the programs with F5. Keep pressing the F5, you will see it pass through SAPLSUNI. If you want you can set a break point at the end of this function module(once inside it) and hit F8 to skip to the end of it. Next program will be SAPLSUSF. Do the same thing here, break point at ENDFUNCTION and hit F8, now it F5.
Now you will see the RFC function module in debug mode.
If the debugging is stopping at SAPMSYST, just keep pressing F5 untill it comes out of it.
follow these steps and i hope they help you out
regards
Aakash Banga
‎2009 Jan 09 6:37 AM
HI Harkesh,
Put a session break-point for the user that is being used to connect from the other system.
This you may know from your basis team if u dont know yourself.
After putting the break point..be logged on to the system.
Execute from the external system your FM and the execution will stop at your break point in debugger.
Rest is normal debugging.
In your user when you set up a session breakpoint, there is a setting in Utilities->settings debugging tab to set the user for session break-oint.
Revert if you need more.
‎2009 Jan 09 6:50 AM
Hi,
I have a FM which is of RFC type and it is using as
call function 'CRM_UPLOAD_TRIGGER'
in background task
destination gv_smof_erpsh-rfcdest as separate unit
exporting
fields1
so i am not able to debug this, is there any other way to debug FM which runs in Background Task....!
Regds,
Harkesh Dang
‎2009 Jan 09 7:09 AM
‎2009 Jan 09 8:11 AM
Have you tried to put session break-point on 'CRM_UPLOAD_TRIGGER' in the CRM system...?
‎2009 Jan 09 8:23 AM
Ankesh,
I have already tried by putting Break Point in both system......!
Any other Solution.....?
Harkesh Dang
‎2009 Jan 09 10:49 AM
Hi Harkesh,
I was stressing because even if it is being called in BG Task from r3 the program should stop at CRM end..
Please if you could cross verify that the user for session break-point is same as the one being used for RFC call...
Please revert.
‎2009 Jan 12 2:27 AM
Hi,
I have crossed verified it is not stopping anywhere through RFC. How can we resolve it?
Harkesh Dang
‎2009 Jan 22 10:02 AM
‎2009 Jan 09 6:48 AM
HI,
just go through this link:
http://help.sap.com/saphelp_sm32/helpdata/en/22/042983488911d189490000e829fbbd/content.htm
Hope it will work for you.
Regards:
Alok
‎2009 Jan 09 8:49 AM
did u chk if the logical system id of the destination system is correct.else chk it in SM59.
‎2009 Jan 22 10:23 AM
Hi ,
Put External debug breakpoint of the user, who calls the RFC FM.
Regards,
Rajan
‎2009 Jun 11 8:38 AM