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 FM

Former Member
0 Likes
1,827

Hi,

I have a doubt that how to debugg a RFC FM. Could any one tell me Step by Step.

Thanks & Regds,

Harkesh Dang

14 REPLIES 14
Read only

Former Member
0 Likes
1,776
Read only

Former Member
0 Likes
1,776

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

Read only

Former Member
0 Likes
1,776

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.

Read only

0 Likes
1,776

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

Read only

0 Likes
1,776

Any Solution......!

Read only

0 Likes
1,776

Have you tried to put session break-point on 'CRM_UPLOAD_TRIGGER' in the CRM system...?

Read only

0 Likes
1,776

Ankesh,

I have already tried by putting Break Point in both system......!

Any other Solution.....?

Harkesh Dang

Read only

0 Likes
1,776

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.

Read only

0 Likes
1,776

Hi,

I have crossed verified it is not stopping anywhere through RFC. How can we resolve it?

Harkesh Dang

Read only

0 Likes
1,776

Any updates.......!

Regds,

Harkesh

Read only

Former Member
0 Likes
1,776

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

Read only

Former Member
0 Likes
1,776

did u chk if the logical system id of the destination system is correct.else chk it in SM59.

Read only

rajan_venkatachalam
Product and Topic Expert
Product and Topic Expert
0 Likes
1,776

Hi ,

Put External debug breakpoint of the user, who calls the RFC FM.

Regards,

Rajan

Read only

Former Member
0 Likes
1,776

thanks