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

Reference variable in RFC

Former Member
0 Likes
2,926

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

9 REPLIES 9
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,588

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.

Read only

0 Likes
1,588

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

Read only

former_member209217
Active Contributor
0 Likes
1,588

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

Read only

0 Likes
1,588

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

Read only

0 Likes
1,588

For table parameters did you use LIKE typing ?

Read only

0 Likes
1,588

Have you used LIKE or TYPE for any of the parameters?

Regards,

Lakshman

Read only

0 Likes
1,588

I have solved the problem my own, actually i didn't check the Pass Value checkbox. RFC is activated.

Thanks,

Rahul

Read only

Former Member
0 Likes
1,588

Hi Rahul,

please tick the 'Pass by value' check box in import tab. i guess you missed it

Thanks,

renjith

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,588

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