‎2006 Jul 26 6:58 AM
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
‎2006 Jul 26 7:11 AM
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
‎2006 Jul 26 7:11 AM
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
‎2006 Jul 26 7:26 AM
but when iam using like it says like as typing parameter is obsolete
what shall i do
‎2006 Jul 26 7:34 AM
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
‎2006 Jul 26 8:25 AM
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.
‎2006 Jul 26 7:13 AM
‎2006 Jul 26 8:38 AM
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