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

Remote Enabled Function Module

Former Member
0 Likes
3,735

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.

1 ACCEPTED SOLUTION
Read only

former_member196651
Contributor
0 Likes
2,032

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

7 REPLIES 7
Read only

former_member196651
Contributor
0 Likes
2,033

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

Read only

anubhab
Active Participant
0 Likes
2,032

This message was moderated.

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
2,032

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.

Read only

Former Member
0 Likes
2,032

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

Read only

0 Likes
2,032

Hello Debabrta,

Can you help here, I am using DP_GET_STREAM_FROM_URL,

Read only

0 Likes
2,032

Hi Sujoy,

Please check on other thread.

Wkr,

Debabrata

Read only

gaurav_nakhare
Explorer
0 Likes
2,032

Hi Aman,

In RFC, associated type must be from the ABAP data dictionary.