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 use RFC Function?

Former Member
0 Likes
795

hey,experts

I found a RFC function in server A, I want to use this RFC function in server B.

how to use it in server B?

thanks,

kim-heum

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
762

Hi,

Suppose the system A contains a function z_addition with parameters a, b, as importing and c as exporting. check whether the FM is remote enabled ( goto attributes and check).

check whether the FM is working in that System A.

Now come to system B , create RFC destination ( i.e system A). say z_rfc_connection.

and also create the program in ssystem B.

while calling the FM

call function 'z_addition'

destination 'z_rfc_connection'

exporting

a = value1

b = value2

importing

c = value3

.

Please revert back if the problem is not solved.

Thanks and regards

6 REPLIES 6
Read only

Former Member
0 Likes
762

Hi,

In system B ,

1)GOTO SM59 tcode.

Then select ABAP CONNECTIONS or R/3 Connections and click on New Connection.

2) Now give the RFC connection name and description. Then in target system give the IP address or hostname and system number and save.

3)Click on logon& security tab and give the language, client , username and password and save.

4) Now click on CONNECTIN TEST button

5) Now it will show the bytes transferred after establishing the connection.

6) go back and click on REMOTE LOGON button.

7) then it will take to other system sap easy access screen if credentials are satisfied.

😎 Now go to se38 and create a program

while remote Function module you have to specify the RFC destination name.

eg

call function 'ZRFC_ADDITION'

destination 'ZRFC_CONNECTION'

here ZFRC_ADDITION is Remote Function Module and ZRFC_CONNECTION is RFC to system A.

then it works.

Reward points if helpful.

Thanks and regards.

Read only

0 Likes
762

hey Murthy,

Thank you for your reply,

I have done like you tell me,but I can't find the RFC function.the message as follows:

"Function module "Z_RFC" not found".

what maybe my mistake?

Read only

Former Member
0 Likes
762

Hi,

Create RFC destinations from system A to B and also from system B to A.

Call the function from system B.

syntax:

call function 'FUNCTION' destination <rfc destination>.

rfc destination is the destination from system B to A.

Reward.

Read only

0 Likes
762

hi ALKK,

I do it like what you have said,and the error happens also.

Edited by: Heum Kim on Jun 23, 2008 12:58 PM

Read only

Former Member
0 Likes
762
Read only

Former Member
0 Likes
763

Hi,

Suppose the system A contains a function z_addition with parameters a, b, as importing and c as exporting. check whether the FM is remote enabled ( goto attributes and check).

check whether the FM is working in that System A.

Now come to system B , create RFC destination ( i.e system A). say z_rfc_connection.

and also create the program in ssystem B.

while calling the FM

call function 'z_addition'

destination 'z_rfc_connection'

exporting

a = value1

b = value2

importing

c = value3

.

Please revert back if the problem is not solved.

Thanks and regards