2014 Apr 04 12:45 PM
Hie Experts,
I have created a Remote Enabled Function module in SE37. When i tried to save it before activating it was throwing some error "Generic types are not allowed in RFC" . Then I enabled the PASS BY VALUE option for each importing parameters (not using any export parameter) but once again while activating it was saying Reference parameters are not allowed . Is there something to do with parameters and it's Associated Type in 'Tables' tab of FM? I am using cal day and date as a parameters in tables tab. I really don't know how to solve the issue.
2014 Apr 04 1:02 PM
Hi Aman,
In RFC, always the Importing parameters should be Pass By Value. The error 'Reference parameters are not allowed' is ooccurring because of this. Similarly always give the type based on a dictionary structure.
Regards,
Abijith
2014 Apr 04 1:02 PM
Hi Aman,
In RFC, always the Importing parameters should be Pass By Value. The error 'Reference parameters are not allowed' is ooccurring because of this. Similarly always give the type based on a dictionary structure.
Regards,
Abijith
2014 Apr 04 1:23 PM
2014 Apr 04 1:26 PM
Aman simply compare your RFC delcaration to any BAPI.... BAPI are also RFC enabled. What do you have in tables..please add screen shot of parameters.
2014 Apr 04 1:55 PM
Hello Aman,
I have also got the similar error while activating FM in SM37.
Just put on "PASS BY VALUE" for all the import parameters in IMPORT tab. Then click on SOURCE CODE tab. Here you can see all the import parameters are called as VALUE .()
and then save - check - activate.
Hope it might help you. or else please share your FM through screen shot.
In RFC enabled FM, reference parameter is not allowed, so we have to use pass by value concept.
Regards,
Debabrata
2016 Mar 09 5:47 AM
2016 Mar 09 6:50 AM
2014 Apr 04 2:45 PM
Hi Aman,
In RFC, associated type must be from the ABAP data dictionary.