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

doubt in RFC Function module

Former Member
0 Likes
598

Hi,

I am creating one RFC in that i need to declare one import parameter whose length is is.

when i am giving like i_exclide like kna1-loevm is not accepting.

when i am declaring like i_exclude like char1.

it is giving error like reference parameters are not allowed in RFC.

anybody can tell me how to declare.

thanks,

maheedhar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
581

Hi,

Go to se37,

Give ur RFC function module and click change.

Go to "Import" tab , you can find a checkbox "Pass Value" , check this checkbox.

Now you try to compile the code , you wont get that error.

Reward points for useful answer.

Thanks,

Jey

5 REPLIES 5
Read only

Former Member
0 Likes
581

hi

You cannot declare fields as a reference. You have to declare as pass value as an import parameter. just check the box in the import tab of the function module.

Please reply if any help needed.

Varun mathur

Read only

Former Member
0 Likes
582

Hi,

Go to se37,

Give ur RFC function module and click change.

Go to "Import" tab , you can find a checkbox "Pass Value" , check this checkbox.

Now you try to compile the code , you wont get that error.

Reward points for useful answer.

Thanks,

Jey

Read only

Former Member
0 Likes
581

Hi

Ur declaration is right but after giving:

I_EXCLIDE LIKE kna1-loevm there is a checkbox 2 places after it called 'Pass Value', u need to check that to avoid this error.

Thanks

Vasudha

Read only

Former Member
0 Likes
581

Hi,

Use "TYPE' instead of LIKE

Read only

Former Member
0 Likes
581

Hi Maheedhar,

Instead of LIKE use TYPE and click on the check box "pass Value".

I hope this solves your problem.......

reward points if helpful.

P347633