‎2006 Jul 06 1:36 PM
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."
‎2006 Jul 06 1:39 PM
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.
‎2006 Jul 06 1:38 PM
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
‎2006 Jul 06 1:39 PM
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.
‎2006 Jul 06 1:40 PM
hi kannan,
Even i had encountered the same problem for that you need to check the <b>Check box</b> <b>Pass Value</b>
‎2006 Jul 06 1:55 PM
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