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

No generic types allowed in RFC modules .....

Former Member
0 Likes
4,737

Hi ,

I tried to copy a 'Normal function module to an RFC'

After copying , when i tried to activate , it shows 'No generic types allowed in RFC modules'.

How to rectify the issue ??

Can anyone help please.

Thanks,

Abhi

Hi ,

I tried to copy a 'Normal function module to an RFC'

After copying , when i tried to activate , it shows 'No generic types allowed in RFC modules'.

How to rectify the issue ??

Can anyone help please.

Thanks,

Abhi

4 REPLIES 4
Read only

hendrik_brandes
Contributor
0 Likes
2,225

Hello Abhi,

it depends on what kind of types your function module interface uses.

Some kind of types cannot be transported via RFC protocol, e.g.: any kind of references or types like (*)string.

Try to change the interface to non generic types. Perhaps via encapsulating them into XML or sth. else.

Kind regards,

Hendrik

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,225

Look for generic types, like table without structure or so, and give them an  actual type that will be able to contain the actual data. Remember the called system wont be able to get many information on the actual parameter as it is on another system. Many FM cannot be converted for this reason, and some will require some mapping of data (more restricted even in Unicode environment) from Abap size, be ready to map/assign casting and such tools..

For a sample look a good old RFC_READ_TABLE which use a SYCHAR512 record type.

Regards,

Raymond

Read only

0 Likes
2,225

you can use TYPE CHAR01, CHAR02... CHAR10 and so on for char fields of specific length, if you don't want to create specific data elements yourself...

Read only

Former Member
0 Likes
2,225

Hi,

Generic types are like DATA : lo_var TYPE  data

                                 DATA : lo_var TYPE  any

                                  DATA : lo_var TYPE  object.

They do not have a static fix type. So search for such type of parameter or local variable declarations in the module and rectify them by using a DDIC type or SAP Standard types.

         

Thank You.