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

How to Debug the RFC Function Module

Former Member
0 Likes
6,457

Hi All,

We need to debug the FM which in ECC(6.0) System from the SRM system .

Can any one tell me now to go about it step by step if possible.

Note:In Both system user id has profile "SAP ALL " .

Thanks

-


Channappa Sajjanar

13 REPLIES 13
Read only

Former Member
0 Likes
4,735

Please search the forum before posting such basic question..

Anyways u need to have an RFC connection between both system...

u can use SM59 for RFC connection

For Debugging it is same as normal function module but u need to give the logical system name( other system) also in which you want to debugg it

Regards

Satish Boguda

Read only

0 Likes
4,735

Hi Satish ,

thanks for your reply. but i searched forum for the same topic but none for the answers solved my issue that is why i posted new thread.

Regards

-


Channappa Sajjanar

Read only

0 Likes
4,735

Hi,

Make sure RFC user is defined as Dialog user (It would be nice to try to create same user name if possible). Not %100 sure but I never had problems on debugging if I have same user in both systems. And dialog user is a must.

Regards,

Read only

former_member217544
Active Contributor
0 Likes
4,735

Hi Channappa,

Make sure you are keeping External Debugging in ECC rather than using session Break-Point.

Regards,

Swarna Munukoti

Read only

0 Likes
4,735

Hi Swarna ,

i have put both external break point and even the hard coded the 'Break-point' In the ECC RFC FM.

and both side using the same user id and both are dialog user only.

Regards

-


Channappa Sajjanar

Read only

0 Likes
4,735

Hi Channappa,

Can you cross check the points mentioned in this sap link:

http://help.sap.com/saphelp_nw70/helpdata/en/46/caf6818bc368dfe10000000a114a6b/content.htm

Also I guess you are keeping the external Break-point at the first line of the Function Module.

Regards,

Swarna Munukoti.

Read only

0 Likes
4,735

Hello,

You cannot straight away debug the RFC function module in ECC from SRM, as we usually debug other FM's.

1) In case you want to do so, make sure that the "User" being used for RFC call i.e. User ID used for establishing the RFC destination is a dialog user. In such case when RFC enable FM is triggered, the flow of this RFC should be available for debugging in SRM. I am not sure if it asks for a password in such, but if it so, give the p/w of that Dialog user.

2) Usually the user used for establishing RFC call will not be a dialog user. In such case, I think you should put a breakpoint in SRM at the exact point where this RFC enabled FM is being called. Verify and collect all the input values that are being passed to this FM. Go to ECC system and directly execute the same FM using those input values.

Best Regards,

Pavan

Read only

0 Likes
4,735

Hi,

I have tried the debug mode from calling program using third party software. Here I need to set a parameter, ABAP_DEBUG = 'X".

Prehaps, the call function will need to include this parameter as well.

Try it out and confirm

Bye

Read only

0 Likes
4,735

Hello Pavan,

thanks for your answer , but the FM is for creating the PO in ECC so it contains a huge data which contains more than 10 internal tables which is a huge data , so we are not able to do this.

Regards

-


Channappa Sajjanar

Read only

0 Likes
4,735

Hi,

You need to create a RFC Connection with the Logging user of System. Example, if you login to ECC System with USER01 as username then you have to create a RFC connection with the same user USER01 or need to call the RFC Function Module with the user with which you have placed the debug point. And the it must be an external debug point which needs to be enabled.

have a look at this following article:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0e8b21b-e1b4-2c10-49b5-fd6a95162...

Hope this will help you.

Thanks,

Samantak.

Edited by: Samantak Chatterjee on Jan 6, 2010 8:46 PM

Edited by: Samantak Chatterjee on Jan 6, 2010 8:47 PM

Read only

0 Likes
4,735

Hi Samantak.

thanks for the link, i got the concept .

Regards

-


Channappa Sajjanar

Read only

Former Member
0 Likes
4,735

thanks problem solved

Read only

Former Member
0 Likes
4,735

This message was moderated.