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 FM

Former Member
0 Likes
743

Hi,

I have just developed a remote enabled FM with 3 import parameters.

one of them is " ADD TYPE C."

When I try to activate it I am getting a message:

" GENERIC TYPES ARE NOT ALLOWED IN RFC ".

Will it encounter any problems during a RFC call?

goldie.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
717

Try typing it as CHAR01 instead of C

Regards,

Rich Heilman

6 REPLIES 6
Read only

Former Member
0 Likes
717

Hi Goldie,

Try to change the type to refer to a similar data element in dictionary. With RFC, generic types don't work.

Did you try to activate the FM?

Thanks

Sanjeev

Read only

0 Likes
717

Yes, I got the message when I tried to activate it.

what are generic types? and what are the other types.

If you have a link, please send it.

Really apprecitate your help.

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
718

Try typing it as CHAR01 instead of C

Regards,

Rich Heilman

Read only

0 Likes
717

That worked!!

Thanks Rich.

Whats the difference between CHAR01 and C?

Read only

0 Likes
717

C is a pre-defined data type in ABAP, the reason it is generic in this case, is because there is no length assigned, even though we all know the default is 1 for its length. CHAR01 is actually a data element in the ABAP Dictionay which has a character type, and a length of 1, this is why it works.

Regards,

Rich Heilman

Read only

0 Likes
717

That was informative.

Thanks!!