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

RFC?

Former Member
0 Likes
1,308

HI all,

I tried to create a RFC(Remote enabled) FM.

At the time of saving it is giving an error like <b>'GEneric types are not allowed in RFC enabled FM'.</b>

What should i do now?

Kishi.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,282

i think in your parameter you are reffering type c or something like that instead of that use like ...

i.e. if you are reffering parameter

matnr type c

use

matnr like mara-matnr

regards

shiba dutta

14 REPLIES 14
Read only

Former Member
0 Likes
1,282

Hi,

You should give type specifications for the function module parameters..

meaning you cannot have a parameter with no specifications..

Check the Function module BAPI_MATERIAL_SAVEDATA for details..

Thanks,

Naren

Read only

Former Member
0 Likes
1,283

i think in your parameter you are reffering type c or something like that instead of that use like ...

i.e. if you are reffering parameter

matnr type c

use

matnr like mara-matnr

regards

shiba dutta

Read only

0 Likes
1,282

Hi Shiba Dutta,

Thanks for the reply.

I am passing two parameters with TYPE C.

as well as exporting one parameter as TYPE C.

at the time of saving i am getting this error.

How can i give LIKE instead of TYPE for predefined data types like C.

Kishi.

Read only

0 Likes
1,282

Hi Kishor,

Why you are using TYPE c for the fields, just define fields by referring to data elements or by referring to table fields.

Regards,

Atish

Read only

0 Likes
1,282

Hi,

In parameters,declare

parameter1 type char50

If you give domain name after type,you won't face problem.

Read only

Former Member
0 Likes
1,282

check pass value

Read only

Former Member
0 Likes
1,282

Hi,

Try this..

Instead of TYPE C..give TYPE CHAR1

where CHAR1 is the data element..which has character of length 1.

Thanks,

Naren

Read only

Former Member
0 Likes
1,282

Hi,

You can not use general type like char in RFC. use some other parameter instead of C. e.g. for EKORG use ekko-ekorg.

regards,

Ruchika

Read only

Former Member
0 Likes
1,282

just reffer to some database field for like statement...just check whether any database fields are available for your parameter or not for my previous post i am using mara-matnr(with like) instead of type c length 18. so you have to reffer some database field. can you tell us what is the length of your parameters?

regards

shiba dutta

Read only

0 Likes
1,282

Hi Shiba,

May be the length should be 50 charecters.

Kishi.

Read only

0 Likes
1,282

use

a type char50

Read only

0 Likes
1,282

or you can use makt-maktx - it will have 40 char length

Read only

0 Likes
1,282

Then use data element CHAR50

Regards,

Atish

Read only

Former Member
0 Likes
1,282

you can use paramtr like SPTHT-TEXT it is a char 50 field.

regards

shiba dutta