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: 
Read only

Remote enabled function module

Former Member
0 Likes
1,154

Hi,

Iam trying to create a remote enabled fm.

can u give some example to create one.

i have given var1 type i in inport parameters. and iamgetting a message saying that"Reference parameters are not allowed with RFC"

please give me some sample code to create one rfc enabled Fm

Thanks

sai

1 ACCEPTED SOLUTION
Read only

dani_mn
Active Contributor
0 Likes
854

Hi,

You have to define parameters with 'LIKE' instead of 'TYPE'.

use data elements to reference your paramters with 'LIKE'.

you can't use 'TYPE' with RFC.

Regards,

Wasim Ahmed

6 REPLIES 6
Read only

dani_mn
Active Contributor
0 Likes
855

Hi,

You have to define parameters with 'LIKE' instead of 'TYPE'.

use data elements to reference your paramters with 'LIKE'.

you can't use 'TYPE' with RFC.

Regards,

Wasim Ahmed

Read only

Former Member
0 Likes
854

but when iam using like it says like as typing parameter is obsolete

what shall i do

Read only

dani_mn
Active Contributor
0 Likes
854

Hi,

you have check the option 'PASS VALUE' for your paramter.

then it will not give you the message.

For remote enabled function modules you have to check 'PASS VALUE'.

Regards,

Wasim Ahmed

Read only

Former Member
0 Likes
854

Hi SaiRam,

What Wasim said was correct. When you are declaring the Import Parameters, you have an option to select "Pass by Value". Default is "Pass by Reference", So you need to check the box "Pass by Value" for a Remote Enable FM as it is mandatory.

Best Regards,

Ram.

Read only

Former Member
0 Likes
854

Hi Sai Ram,

Have a look at this good link-

Mark useful answers.

Regards,

Tanuja.

Read only

Former Member
0 Likes
854

HI,

Under the attributes tab remember to select Processing Type RemoteEnabled module, otherwise the function module cannot be invoked via RFC .

Import/Export parameters can only be BY VALUE for an RFCenabled function module