‎2007 Jun 06 4:45 AM
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.
‎2007 Jun 06 4:51 AM
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
‎2007 Jun 06 4:47 AM
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
‎2007 Jun 06 4:51 AM
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
‎2007 Jun 06 4:57 AM
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.
‎2007 Jun 06 5:00 AM
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
‎2007 Jun 06 6:03 AM
Hi,
In parameters,declare
parameter1 type char50
If you give domain name after type,you won't face problem.
‎2007 Jun 06 4:53 AM
‎2007 Jun 06 4:59 AM
Hi,
Try this..
Instead of TYPE C..give TYPE CHAR1
where CHAR1 is the data element..which has character of length 1.
Thanks,
Naren
‎2007 Jun 06 5:00 AM
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
‎2007 Jun 06 5:07 AM
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
‎2007 Jun 06 5:13 AM
‎2007 Jun 06 5:15 AM
‎2007 Jun 06 5:15 AM
‎2007 Jun 06 5:15 AM
‎2007 Jun 06 5:20 AM
you can use paramtr like SPTHT-TEXT it is a char 50 field.
regards
shiba dutta