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 the RFC

Former Member
0 Likes
1,087

Hello Every1,

I have a RFC function module in system A which is called in system B. Is it possible to debug the RFC function module from system B. If so please let me know how?

Regards,

Siva.

8 REPLIES 8
Read only

Former Member
0 Likes
948

Hi

If system B is SAP, try /H.

Max

Read only

0 Likes
948

Hi,

try it with sm50

A.

Read only

0 Likes
948

refer....

Read only

Former Member
0 Likes
948

Set the HardCoded break point (<b>BREAK-POINT</b>.) in the target system and execute.

Cheers,

Thomas

Read only

Former Member
0 Likes
948

Hi,

if system B is also SAP system then you can keep the Break point exactly at the Function module call.

call Function 'RFC_READ_TABLE'. then Once you reach press F5 here , then you can debug it.

Regards\

vijay

Read only

Peter_Inotai
Active Contributor
0 Likes
948

Logon to the target system via SAPGUI and set a breakpoint there in your FM.

Start the program/FM in system A.

It should stop at your breakpoint.

Peter

PS: Make sure that no special system/background user is assigned to the RFC destination, otherwise I don't think debugging would be possible.

Read only

Former Member
0 Likes
948

Hi,

Yes it possible to test RFC FM from syatem B.

1) Put a break point in the system B where u call the REC FM.

2) Execute Till u reach the RFC FM.

3) Press F5 when the function is going to be executed.

it will take u to the system A where the function module is been written.

it is possible;

Check Links

Debugger

http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm

http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc

Read only

0 Likes
948

Hi all,

the point with the hard breakpoint is working well, but

my system A is calling system B (in my case in want to debug a badi in system B)

via RFC.

If I set a endless loop in system B and try to debug the process in system B via SM50 i get the error

RFC_DEBUGGING_NO_DIALOG_USER

Thats because we are using a systemuser for rfc calls.

Any hint how to solve this problem?

Do I have to change the use to a dialog user?

-> that means i need the logon data for system B for that user

Any hints ?

Thanks a lot

Regards

Andreas