‎2009 Oct 13 6:20 AM
Hi,
I have created one RFC in which there are importing and table variables. All these variables are simple type variables and none of them is type ref to variable.
When i am trying to activate the RFC it is throwing information message that it is not allowed to use reference variable in RFC. Although there is no reference variable in RFC but still this message is coming and preventing from activating the RFC.
RFC is syntactically correct and it is working fine if i changed this function module to normal function module from Remotly enabled.
Any help?
Thanks,
Rahul
‎2009 Oct 13 6:24 AM
Remote Function module doesnt allow reference types.
It only allows pass by value.
In remote enabled function module an associated type must be specified with pass by value.
But what you said can be acheived in normal function module.
‎2009 Oct 13 6:33 AM
Hi Keshu,
I am not passing anything by reference all variables are pass by value and none of them is "type ref to" still i am not able to activate.
Thanks,
Rahul
‎2009 Oct 13 6:24 AM
Hi,
Are you using any optional import or export parameters in your RFC. I think it wont accept if there any optional variables.
It should be either pass by value or both pass by value and optional.
Hope it helps.
Regards,
Lakshman.
Edited by: Lakshman N on Oct 13, 2009 7:24 AM
‎2009 Oct 13 6:35 AM
Hi Lakshman,
I am using option importing and tables parameters. Even i make them mandatory it is still throwing same message. Message is not changed even making parameters mandatory.
Thanks,
Rahul
‎2009 Oct 13 6:38 AM
‎2009 Oct 13 6:39 AM
Have you used LIKE or TYPE for any of the parameters?
Regards,
Lakshman
‎2009 Oct 13 6:40 AM
I have solved the problem my own, actually i didn't check the Pass Value checkbox. RFC is activated.
Thanks,
Rahul
‎2009 Oct 13 6:40 AM
Hi Rahul,
please tick the 'Pass by value' check box in import tab. i guess you missed it
Thanks,
renjith
‎2009 Oct 13 6:41 AM
As per your query i understad that you are not specifying a associated type for the import/export parameters.
In RFC its must.
Why cant you create a structure or a table type and use it.
From the remote call how will you pass a parameter without structure.
for example :how will you generate interface for proxy without a associated type.
Edited by: Keshu Thekkillam on Oct 13, 2009 11:13 AM