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: 

what are the steps we have to follow to develop RFC function module

Former Member
0 Kudos
323

hi

what are the steps we have to follow to develop RFC function module

5 REPLIES 5

Former Member
0 Kudos
191

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

Former Member
0 Kudos
191

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' .

Former Member
0 Kudos
191

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..

Former Member
0 Kudos
191

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

Former Member
0 Kudos
191

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