cancel
Showing results for 
Search instead for 
Did you mean: 

REMOTE FUNCTION MODULES

Former Member
0 Kudos

hi all,

i want to know how to create remote function modules. how to give the import and export parameters. i want the link of how to create the function modules.

bye

suresh

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Suresh,

Goto transaction

SM37 -> Create your function module as Z_FUNCTION.

Assign a function group ( if function group is not there then create a function group as SE37 -> GOTO -> Function Group -> Create Function Group)

On attribute tab, you will see three radio buttons.

Select 'Remote enabled module'

Select :Import tab.

Enter i_MATNR

Type MATNR

Select : Export tab

Enter : e_mara

TYPE MARA

Select : Source Code

Enter :

SELECT SINGLE * FROM MARA INTO e_mara FOR MATNR = i_MATNR.

Save your module.

Activate it.

Test using F8.

You can call this function in your program as

CALL FUNCTION 'Z_FUNCTION' DESTINATION destination_name.

Hope this will help.

Please award few points if it resolves your issue.

Thanks and Warm Regards.

Pras Durafe

Former Member
0 Kudos

hi,

just keep the following things in mind when u run a FM in RFC mode:

1) if u r using asynchronous RFC, u cannot have an export parameter in the FM

2) no reference parameters can be used in RFC calls

3) when u pass tables, note that only the table body can be passed, not the header line

and to add to what Pras Durafe has said....u can create RFC destinations in transaction SM59

regards,

PJ

athavanraja
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Suresh,

while creating the fm, in the attibutes screen check the radio button 'remote ...' and for the parameters check the flag 'value ..'

This is all you need to take care about. The rest is creating fm as usual.

regards

Siggi