Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 

Steps for Creating RFC

Former Member
0 Kudos

Hi ,

This is the first time iam working in RFC , i need to creat a new RFC , can any buddy let me know how to creat a an RFC . and the steps involved in creating an RFC .

Thanks ,

VInay .


Former Member
0 Kudos
" please  see this  link here it was  given  with  screen  shot for all the  RFC 
" Creation

<a href="http://"></a>

reward points if it is usefulll.....



Former Member
0 Kudos

Refer this link,.....



Former Member
0 Kudos




Go to Transaction code : SE37 to create an RFC.

Import and Export parameters(With respect to a RFC):

Import Parameters implies Input value(s) to your RFC

Export Parameters implies Output value(s) to your RFC

>>Import :


>>TOZIP type CHAR10



FROMZIP of type CHAR10 and TOZIP of type CHAR10 are input to your RFC.

DISTANCE of type CHAR10 is output from your RFC.

>>How is Import and Export related to R3 and how do I go about doing it.

In R/3 make use of 'PATTERN' button in your report program.

Import and Export Parameters (with respect to your report program)

Export Parameters implies value(s) that are given to your RFC from your R/3 report program and

Import Parameters implies value(s) that are output to R/3 from RFC.


Former Member
0 Kudos


please check out the link below it might be helpful to you

***********please reward points if the information is helpful to you*********

0 Kudos


Goto Transaction ABAPDOCU

In the KEYWORD SEARCH TYPE "RFC" and search

You will all the info under RFC-> SUBJECT.



Former Member
0 Kudos

goto se37.create a function attributes give REMOTE ENABLED.

Then give export ,import paramaters and exceptions.Write the logic(code) and activate

Former Member
0 Kudos

Former Member
0 Kudos


go to following threads

<b>plz reward if useful</b>


Former Member
0 Kudos


1) go to se37. Chose form menu Goto->Function Groups->Create Groups.

Give a Z name for your function group.

save it.

2) create a function module by giving a z name to your function module. It would ask you to enter the function group name. GIve the fg name you have just created.

3) In the atrributes section chose the radio-button Remote enabled.

4) Give the importing , exporting, tables parameters with appropriate types.

5) Write the Code in the source code section.

6) Do not use pass by referance for the interface variables(IMPORTING/EXPORTING). YOu have to pass the variables by value only(Check box should be chosen)

Save the code and activate the FM and FG.

In Detail,

Check for SAP Help they give you the information in much details

Exercise 1: Creating a Function module


Function modules are ABAP routines that are administered in a central function library. They apply across applications and are available throughout the system. You must assign function modules to a function pool that is called a function group. A function group is nothing but a container for the function modules. Now create a function group and then a function module, which you can use for the next exercise steps.


Create a Function Group:

To open the Object Navigator choose from the SAP Menu Overview ® Object Navigator.

From the Object Selection window select Function group, enter FG_Tutorial as name of your function group, and choose Display.

Since the function group FG_Tutorial does not yet exist, the system asks you whether to create it. Confirm with Yes.

Enter a short description and choose Save.

In the window Create Object Catalog Entry choose Local object.

You created a local function group. Before it can receive function modules, you must activate it.

In the object list, use the right mouse button to select the function group FG_Tutorial you just created and choose Activate.

On the next screen choose Continue.

The function group is now active.

Create Global Data:

Within the function group you can declare global data. All function modules of this function group share this global data.

In the Object Selection window open the directory tree Includes and double-click on LFG_TutorialTOP.

Choose Create « Change ( STRG+F1 ) and enter the following data declarations in the tool area:

TABLES spfli.

DATA spfli_workarea LIKE spfli.

Check ( STRGF2 ) and activate ( STRGF3 ) the include file.

Create a Function Module:

Create a function module that reads data from table SPFLI .

If you are not yet in the Object Navigator, choose from the SAP Menu Overview à Object Navigator and display the function group FG_Tutorial .

In the Object selection window, use the right mouse button to select function group FG_Tutorial , and choose Create à Function module.

Enter as function module name XX_RFC_READ_SPFLI and replace XX with the initials of your name.

Enter a short description and choose Save.

The system lists the function module in the object list in a new directory Function modules, and displays it on the right side in the Function Builder.

Select the Attributes tab and under Processing type choose Remote-enabled module.

Select the Import tab and enter in the appropriate columns the names of the import parameters: carrid with reference type like spfli-carrid and connid with reference type like spfli-connid . For each parameter set the Pass value flag.

Select the Export tab and enter in the appropriate columns the names of the export parameters: ex_spfli with reference type like spfli and sys with reference type like sy-sysid . For each parameter set the Pass value flag.

Select the Exceptions tab and enter the exception invalid_data .

Select the Source code tab.

The system copies the entries you made in the other tabs and creates a source text.

Complete the function module with the actual flight data retrieval.

Compare your function with the model solution.

Save the function module ( STRG+S ). When the note on remote-enabled function modules appears, choose Continue.

Check the function for errors ( STRGF2 ) and then activate it ( STRGF3 ).

Test the Function Module:

Choose Test/Execute ( F8 ) or Function module à Test à Test function module.

As import parameter for CARRID enter LH ; for CONNID enter 400 . Leave the RFC target system line empty.

Choose Execute ( F8 ).

The system displays the export parameters EX_SPFLI and SYS in an additional table.

For a detailed display of the data select the value in line EX_SPFLI.


You created a function module and assigned it to a function group.

Continue With

Exercise 2: Implementing a Local Function Call

To make RFC function module, please set remote enabled in the attributes of function module.

Also refer,



*reward for useful answers*</b>

Former Member
0 Kudos


just refer to the link below

<b>step by step procedure with screen shots</b>



<b>plz dont forget to reward points if helpful</b>

Former Member
0 Kudos
" please  see this  link here it was  given  with  screen  shot for all the  RFC 
" Creation

<a href="http://"></a>

reward points if it is usefulll.....