cancel
Showing results for 
Search instead for 
Did you mean: 

Creating RFC

Former Member
0 Kudos

Hi all,

How do I go about creating a RFC. I am just trying re-create the scenario mentioned in /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sonia,

>>OK do I need to call this transaction from XI or from R3 or it doesn't matter

In this scenario it will be R/3 .

>> Create Function Group

Go to SE37.

On Menu Bar GO TO -> FUNCTION GROUPS -> CREATE GROUP

Please note that 'REMOTE ENABLED FUNCTION MODULE' is your RFC.

After you create your Function Module using SE#& click the ATTRIBUTES and select the 'PROCESSING TYPE' radio button as 'Remote-Enabled Module'.

Hope it helps.

Regards,

Pritish

Answers (3)

Answers (3)

Former Member
0 Kudos

Hey

this is the RFC

FUNCTION Z_WEBSERVICE_TEST_SHABZ.

*"----


""Local interface:

*" IMPORTING

*" VALUE(FROMZIP) TYPE CHAR10

*" VALUE(TOZIP) TYPE CHAR10

*" EXPORTING

*" VALUE(DISTANCE) TYPE CHAR10

*"----


ENDFUNCTION.

thanx

ahmad

Former Member
0 Kudos

Hi Ahmad,

How do I go about creating this function RFC. I don't suppose I can write this code in SE337.

Former Member
0 Kudos

Hey

u need to go in SE37 and create the function module using the code i send u.

when u create a Function module,it will ask for function group as well,either use a existing function group or create a new group in SE80 and then use this function group.

thanx

ahmad

Former Member
0 Kudos

Ok coming now to theory. What is a function group and a package and why do we need it.

Former Member
0 Kudos

Hi Sonia,

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 :

>>FROMZIP type CHAR10

>>TOZIP type CHAR10

>>Export:

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

Regards,

Pritish

Former Member
0 Kudos

OK do I need to call this transaction from XI or from R3 or it doesn't matter. Also when I called it from R3 it was asking about function group and function module. What are these and how do I go about creating them.

Former Member
0 Kudos

Also what does he mean by

Import :

FROMZIP type CHAR10

TOZIP type CHAR10

Export:

DISTANCE type CHAR10

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