cancel
Showing results for 
Search instead for 
Did you mean: 

itable declaration error

Former Member
0 Kudos

hi all

im jst tryin to create a bsp page

i hve declare an itable in the page attributes tab but even thn when i use tht itab in pgm i get an error lke it s neither specified under table nor defined as an itab

where do i do the mistake

help me

Accepted Solutions (0)

Answers (3)

Answers (3)

athavanraja
Active Contributor
0 Kudos

if your internal table should refer to standard DDIC table/structure (not table type)

then in the "type definition tab" create a table type

types: mytab_type type standard table of <ddic structure> .

now in page attribute

myitab type mytab_type .

Regards

Raja

Former Member
0 Kudos

Hi Lakshmi,

I will explain you with an example...

We have to declare types definition for the table in the Types Definitions tab as follows

Types : begin of t_itab,

matnr type mara-matnr,

end of t_itab.

Types : it_mara type table of t_itab.

after this declare table in the page attributes tab as follows...

it_mara1 type IT_MARA

and from now you can use it_mara1 internal table in your application.

try out this you will ceratainly get the solution.

Regards,

Azaz Ali.

Former Member
0 Kudos

Hi varalakshmi kannan,

Please check the structure of the internal table.

I think you have declared your itab like this...

itab type ztablename.

The above itab is a work area and not an table.

In order to do this...

You need to declare a structure in the type definition tab or a global structure(table type) in the se11.

For creating a structure in the type definition tab...

Check the below code...

types: begin of struct1,
columnname1 type datatype1
columnname2 type datatype2
columnname3 type datatype3
end of struct1.

columnname1, columnname2, columnname3 are your itab structure.

Now you can use this structure in the page attributes tab like...

itab type struct1.

Hope it solves your problem.

Regards,

Maheswaran.B

Message was edited by: Maheswaran B