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: 

Creating BAPI - "Generic types are not allowed in parameter types"

Former Member
0 Kudos
191

Dear Experts,

Greetings.

I am trying to create a BAPI (RFC enabled function module) in which i have around 5 - 6 import parameters. If I define them as type C or type table-dataElement, it says Generic types are not allowed.

I do not have any sutable structures for the variables...any suggestions?

thanks and regards

Sathya

1 ACCEPTED SOLUTION

Former Member
0 Kudos
100

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...

2 REPLIES 2

shishupalreddy
Active Contributor
0 Kudos
100

Hello

In BAPI RFC we must and should define the Imort and Export interface paramters with PASS BY VALUE Option .If you select Passby value check box then it wont give you that Error

Generic types were not allowe .

Regards

Former Member
0 Kudos
101

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...