‎2008 Jun 23 2:24 AM
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
‎2008 Jun 23 12:40 PM
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
‎2008 Jun 23 4:53 AM
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.
‎2008 Jun 23 11:31 AM
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?
‎2008 Jun 23 11:39 AM
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.
‎2008 Jun 23 11:56 AM
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
‎2008 Jun 23 12:24 PM
‎2008 Jun 23 12:40 PM
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