Creating RFC Function
Module in SAP
Last Updated: November 2nd 2016 by Ashok Kumar Reddy
Developing RFC function module in SAP, working with remote
enabled function module in SAP
+-
Whenever we create a RFC function module, we need to follow below things.
We cannot use exceptions in RFC`s.
All parameters must be pass by value not pass by reference.
To create RFC function module follow below steps.
Step 1: Go to SE37, provide a name ZSAPN_RFC_FM, create, a popup will come
provide function group, short text and save.
Step 2: Go to 'Attributes' tab, select 'Remote-Enabled Module', enter.
Step 3: Go to import tab, add importing parameter as below, you must select pass
value check box as pass by reference are not possible in RFC`s.
Similarly, go to export tab, add another parameter as below.
Step 4: Go to source code, add below code.
SELECT SINGLE * FROM MARA
INTO EX_MARA WHERE MATNR = IM_MATNR.
Step 5: Save and activate the function module.
Learner Questi