cancel
Showing results for 
Search instead for 
Did you mean: 

getting error in smartform : LOOP_BILL : "IM_T_VBRK" is neither specified.

Former Member
0 Kudos

I'm preparing a smartform &

In Form Interface,

I have declared these values:

IM_FS_KNA1 TYPE KNA1

IM_T_VBRK TYPE VBRK

IM_T_VBRP TYPE VBRP

In Global Definitions:

IM_T_KNA1 TYPE TABLE OF KNA1

IM_FS_VBRK TYPE VBRK

IM_FS_VBRP TYPE VBRP

W_TOTAL TYPE VBRP-NETWR

& there is a secondary window in which i have added a loop as:

Internal Table :IM_T_VBRK INTO IM_FS_VBRK

where condition:

KUNAG = IM_FS_KUNNR

I have added the following text under this window :

Invoice No.: &IM_FS_VBRK-VBELN&

Sales Organisation: &IM_FS_VBRK-VKORG&

Distribution Channel: &IM_FS_VBRK-VTWEG&

Division: &IM_FS_VBRK-SPART&

Date: &IM_FS_VBRK-FKDAT&

& when i check this code, i'm getting this error :

LOOP_BILL : "IM_T_VBRK" is neither specified under "TABLES" nor defined as an internal table.

Please reply what more i need to do to correct this?

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Hi,

Declare IM_T_VBRK this table in tables tab of form interface.

raviahuja
Contributor
0 Kudos

Hi,

Please make sure you have declared the table in "Tables" tab of Form Interface and not in "Import" tab.

If yes, then try to use "like" instead of "type".

If that also doesn't work, then create a Z structure is SE11 of same type as you want and then declare your table as:

<tab_name> LIKE <z_struct_name> in "Tables" tab.

Hope it would solve your problem.

Regards,

Ravi

Former Member
0 Kudos

Hi,

In Form Interface,

I have declared these values:

IM_FS_KNA1 TYPE KNA1

IM_T_VBRK TYPE VBRK

IM_T_VBRP TYPE VBRP

why u r declaring this in form interface? R u populating values in this from your driver program?

better u select data in smartform itself by writing code iunder initialization tab of global definition.

then just use that wa/table in loop.

Regards

Former Member
0 Kudos

Hi Neha

Create the line type in se11 for IM_T_VBRK as Y_TY_VBRK and than include in the import in the form interface

Regards,

Sravanthi

Former Member
0 Kudos

please tell me how to do that.. i searched SCN for this but i'm unable to do this...y_ty_vbrp can't be created because it can't accept _ at 2nd and 3rd position. I tried to give some other name but what to mention in component type?

Former Member
0 Kudos

Hi,

u have to declare like below in Global Definitions in TYPES tab.

TYPES: g_t_vbrk TYPE STANDARD TABLE OF VBRK .

now in Global Data tab declare the table like below:

IM_FS_VBRK TYPE g_t_vbrk .

Rgds,

Pavan

Former Member
0 Kudos

IM_T_VBRK TYPE VBRK

IM_T_VBRP TYPE VBRP

These are declared using type. This means these are merely work areas.

You have to declare using type table of referring to teh table types.

Former Member
0 Kudos

you have to define IM_T_VBRK TYPE TABLE OF VBRK in Form interface also.....