cancel
Showing results for 
Search instead for 
Did you mean: 

Type Does Not Exist in Smartform

Former Member
0 Kudos

Hi All,

I am getting this message on compile time when trying to create a new Smartform:

"Form Interface Type TYP_TAB_BSET does not exist"

even though I have declared:

TYPES TYP_TAB_BSET LIKE BSET OCCURS 0.

in the types tab in the global definitions menu.

Is there something I am missing?

Many thanks,

Points awarded,

Colm

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

All,

It turns out there is no way of declaring a table in a smartform that doesn't use a headerline using types.

The only way to do this is to create a table type in SE11 and use this table type as the associated type when declaring the internal table in the smartform.

Thanks anyway,

Colm

Former Member
0 Kudos

hi

check this ex,

TYPES: BEGIN OF WA_EKKO,

EBELN LIKE EKKO-EBELN,

BUKRS LIKE EKKO-BUKRS,

END OF WA_EKKO.

TYPES: BEGIN OF WA_EKPO,

EBELN LIKE EKPO-EBELN,

EBELP LIKE EKPO-EBELP,

MENGE LIKE EKPO-MENGE,

NETPR LIKE EKPO-NETPR,

END OF WA_EKPO.

TYPES: T_EKKO TYPE STANDARD TABLE OF WA_EKKO,

T_EKPO TYPE STANDARD TABLE OF WA_EKPO.

reward points ifuseful.

Thanks,

usha

Former Member
0 Kudos

Hi Usha,

Many thanks, this let me compile the program but now it short dumps saying:

The function module interface allows you to specify only fields

of a particular type under "IS_BSET". The field "I_BSET" specified here

has a different field type.

I defined my types in the smartform as as this:


TYPES: BEGIN OF XTYP_TAB_BSET.
        INCLUDE STRUCTURE BSET.
TYPES: END OF XTYP_TAB_BSET.

TYPES: TYP_TAB_BSET TYPE STANDARD TABLE OF XTYP_TAB_BSET.

and in the print program it is defined as this:


TYPES: typ_tab_bset      LIKE bset      OCCURS 0.

DATA: I_BSET       TYPE TYP_TAB_BSET.

Former Member
0 Kudos

hi

if u declare the data using types tab,u need to declare those work areas and internal tables in a global data tab.

here in u r code,u need to declare the typ_tab_bset in global data.

Thanks,

USHA