2007 May 28 6:01 AM
hi
what are the steps we have to follow to develop RFC function module
2007 May 28 6:03 AM
No difference much between normal function module and RFC
create Function module in SE37.
iN Attributes tab,select radio button Remote enabled function ....
it will become RFC.
if you want to call this RFC in another server,then in sm59 you need to configure.
Thanks
2007 May 28 6:03 AM
After developing a FM, to make it RFC enabled you have to take care of the following things:
1. In attributes click the radiobutton 'REMOTE ENABLED' .
2. Pass all the parameters by 'Pass By Value' .
2007 May 28 6:04 AM
Hi,
it is developed as normal FM only , but the main difference is , in the attributes u have to check the RADIO BUTTON -- REMOTE ENABLED FUNCTION MODULE..
create a function group.
go to se37, create a function module .. and assign the FM to function group.
in attributes , select the radio button..
2007 May 28 6:08 AM
I will tell you simple example within r/3 systems..
source system - A (SAP R/3 )
Destination System B (SAP R/3).
First create RFC Destination in SM59 - in A System.
Createing RFC Destination - GOTO SM59 Transaction and click R/3 System .
it will go second screen and give ur RFC Name ,IP Address and log on details.
click on test concetion and remote logon.
now create RFC Function module in B System.
goto se37 - create fm with starting with Z* or Y*.
maintain all data like
attribute should be remote enabled
importing is v_matnr
exporting is v_maktx.
write the simple code - select single maktx from makt into v_maktx
where matnr = v_matnr.
Call this fm in report program in se38 in B sytem and copy the FM.
paste this code A System
use ur logic and destination 'RFC Name'.
Reward Points if it is helpful
Thanks
Seshu
Message was edited by:
Seshu Maramreddy
2007 May 28 6:11 AM
Hi,
Goto SE37 --> Write Function Module name --> Create --> go to Attribute Tab --> Select "Remote Enabled Module" --> Give Import Parameters --> Click on Optional and Pass Values --> Give Export Parameters --> Click on Pass Value --> Write code accordingly.
Regards,
Sandeep kaushik