cancel
Showing results for 
Search instead for 
Did you mean: 

"EBAN" is not a pre-defined type or a type from a type-group

Former Member
0 Kudos

Hi,

I developed a smart form for purchase requisition with the table EBAN.

I declared the following in Form Interface.

Import: IS_EBAN TYPE EBAN

IV_DRUVO TYPE DRUVO

IS_NAST TYPE NAST

PRN_NO TYPE BANFN

Tables: IT_EBAN LIKE EBAN

After activating & executing the form no errors displayed.

But when activating the function module, i am getting the following error:

"EBAN" is not a pre-defined type or a type from a type-group.

I searched in the SDN and couldn't find solution.

It will be very much helpful to me if i get any solutions from you guys.

Thanks in Advace.

Thanks & Regards,

BDK.

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member621510
Participant
0 Kudos

Hi,

if you are declaring the import fields which you want to fetch it from report then

Declare like this

ZZPROJYEAR LIKE PROJ-ZZPROJYEAR

ZZYEAR LIKE PROJ-ZZYEAR

pass field values to the same field in the form FM.

otherwise

create a Structure(for ex:ZBAN here)SE11 with your internal table fields and pass it through the tables parameters in FM in the report

and a table in the TABLES in FORM INTERFACE as below mentioned

T_ABAN LIKE ZABAN

T_LAY LIKE ZLAY

you can populate the &t_aban-pipeid& in any window.

regards

vishnu

former_member621510
Participant
0 Kudos

Hi,

if you are declaring the import fields which you want to fetch it from report then

Declare like this

ZZPROJYEAR LIKE PROJ-ZZPROJYEAR

ZZYEAR LIKE PROJ-ZZYEAR

pass field values to the same field in the form FM.

otherwise

create a Structure(for ex:ZBAN here)SE11 with your internal table fields and pass it through the tables parameters in FM in the report

and a table in the TABLES in FORM INTERFACE as below mentioned

T_ABAN LIKE ZABAN

T_LAY LIKE ZLAY

you can populate the &t_aban-pipeid& in any window.

satyajit_mohapatra
Active Contributor
0 Kudos

You can find an existing table type for EBAN and use it. Check whereused list of EBAN for table types and you will get some sap defined table types. Use them intead of using line type EBAN directly.

Former Member
0 Kudos

Hi,

Thanks for your reply.

As you told, i found some table type through where used list and declared one of it in the Form Interface:

Import: IS_EBAN TYPE MEREQ_T_EBAN.

Tables: IT_EBAN LIKE EBAN.

After executing, i am getting the following errors,

TEXT15 "IS_EBAN" is a table without a header line and therefore has no component called "WERKS".

TABLE1 "IS_EBAN" cannot be converted to the line type of "IT_EBAN".

satyajit_mohapatra
Active Contributor
0 Kudos

Seems like you have created the form interface table without header line and the global data one with header line.


Import: IS_EBAN TYPE MEREQ_T_EBAN. -----------> Without Header line

Tables: IT_EBAN LIKE EBAN.                   ------------> WIth Header line

Declare IT_EBAN using table type as done for IS_EBAN. Use workareas instaed of headerline like

WA_EBAN TYPE EBAN.

Former Member
0 Kudos

avoid TABLES statement, avoid tables with header lines. This helps a lot when trying to avoid problems.

Former Member
0 Kudos

Hi,

Generally these problems occurs with LIKE keyword.

In Tables Statement you wrote like this,

 
IT_EBAN like EBAN

Try like this,

 
IT_EBAN type EBAN

Regards,

Raghava Channooru

Former Member
0 Kudos

Hi Raghava,

Thanks for your reply.

I tried declaring as u told, Form Interface - Tables:

IT_EBAN TYPE EBAN.

I am getting the following error,

"EBAN" Flat types may only be referenced using LIKE for table parameters

Former Member
0 Kudos

HI,

Create a table type EBAN in Data Dictionary and pass it.

I think this solves your problem.

Regards,

Raghava Channooru