Application Development 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: 

How to make function module remote enabled?

Former Member
0 Kudos

I am trying to make the RSCRMBW_GET_CELL_DATA_BAPI function remote-enabled by choosing remote-enabled in the attributes tab in the function builder. When I try to activate the function, I get an error telling me that Reference parameters are not allowed with RFC. In order to get around this, I set each of the import parameters to pass value. This time, I get an error for Generic types not allowed in RFC. I change the I_NO_TEXTS type from C to CHAR50. Finally, I get an error for Type RSCRM_BAPI6111CD_LARGE_T is unknown. I am able to see this type in both the RSCRM type pool (to which the 'unknown' type belongs) and CL_RSCRMBW_BAPI>GET_CELL_DATA_V2 method (which calls the function). However the function builder still tells me that the Type RSCRM_BAPI6111CD_LARGE_T is unknown.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You need to use Disctionary objects to declare the paramaters. Cannot use Type pool or Class elements.

Thanks & regards,

Dharitree

3 REPLIES 3

Former Member
0 Kudos

Hi,

You need to use Disctionary objects to declare the paramaters. Cannot use Type pool or Class elements.

Thanks & regards,

Dharitree

rainer_hbenthal
Active Contributor
0 Kudos

You cannot use types from type pool. Yoe need to have them in your data dictionary.

former_member194669
Active Contributor
0 Kudos

Hi,

You need do this in a work around way. My suggestion is you need to create wrapper function module (RFC enabled) with same paramters of fm RSCRMBW_GET_CELL_DATA_BAPI and inside this function module pass these parameters and call fm RSCRMBW_GET_CELL_DATA_BAPI, then there is no need to change fm RSCRMBW_GET_CELL_DATA_BAPI