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

bapi

Former Member
0 Likes
694

hi all

whn im tryin to create a fun mod named z_bapi_get_order_status_import havin a demo pgm as a model im gettin error when i refer to a structure

the error s "No reference types are alllowed for RFC"

when i go for the help for tht error

"You tried to assign a refrence type to a parameter of a function module that can be called remotely (for example containing references to objects or fields). This is not supported."

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
622

Hi varalakshmi,

1. Minor mistake

2. Just TICK the CHECK BOX

for 'Pass by value'

and it won't give error.

3. since this is a RFC Enabled FM,

(which is supposed to run in another server),

we cannot pass any variable by reference.

regards,

amit m.

4 REPLIES 4
Read only

Former Member
0 Likes
622

You need to select the PASS VALUE check box for the import parameters.

There are two types of parameter passing: pass by reference and pass by value.

Pass by reference points the formal parameter directly to the actual parameter so that changes to the formal parameter immediately affect the actual parameter.

Pass by value creates the formal parameter either as a copy of the actual parameter when the function module is called (at IMPORTING value and CHANGING value parameters) or creates it initially on the stack (at EXPORTING value parameters). With CHANGING value and EXPORTING value parameters, the formal parameter is copied to the actual parameter when it returns from the function module call.

-Kiran

*Please reward useful answers.

Message was edited by: Kiran Raorane

Read only

Former Member
0 Likes
623

Hi varalakshmi,

1. Minor mistake

2. Just TICK the CHECK BOX

for 'Pass by value'

and it won't give error.

3. since this is a RFC Enabled FM,

(which is supposed to run in another server),

we cannot pass any variable by reference.

regards,

amit m.

Read only

Former Member
0 Likes
622

hi kannan,

Even i had encountered the same problem for that you need to check the <b>Check box</b> <b>Pass Value</b>

Read only

Former Member
0 Likes
622

Hi,

For RFC 's all the parameters you need to check the check box<b> PASS by Value.</b> then it won;t give you that error.

you need to pass only by Value not by reference in case of RFC's.

Regards

vijay