Application Development and Automation 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: 
Read only

Regarding internal table

Former Member
0 Likes
447

Dear Friends,

You cant use internal table as work area, i got this error. so what could be the problem. Please help me.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
414

Hi,

Check your SELECT statement ..you might be missing Table Statement

SELECT spras auart bezei FROM tvakt
INTO  TABLE t_itt1                               " Check here
WHERE bezei IN s_bezei
AND auart IN s_auart.

Edited by: Avinash Kodarapu on Jul 26, 2009 6:59 PM

3 REPLIES 3
Read only

Former Member
0 Likes
415

Hi,

Check your SELECT statement ..you might be missing Table Statement

SELECT spras auart bezei FROM tvakt
INTO  TABLE t_itt1                               " Check here
WHERE bezei IN s_bezei
AND auart IN s_auart.

Edited by: Avinash Kodarapu on Jul 26, 2009 6:59 PM

Read only

Former Member
0 Likes
414

You would have to give the exact point in code where you are facing this error for resolution of the problem.

If you have not defined the internal table with headerline, then you can not use the name of internal table-field in a loop at the itab.

meaning the lines below are valid only if the internal table itab has a headerline:

loop at itab.

itab-field = xyz.

endloop.

also, you may face this error if you are giving a select single into table itab. For a select single you have to give a single target; i.e give a select single into itab.

Hope it helps.

Read only

Former Member
0 Likes
414

This can happen in several places.

1. In the Select statement, if you forget to use INTO TABLE

2. APPEND ITAB and forget to use APPEND WA to ITAB.

3. LOOP AT ITAB and forget to use INTO WA.

4. READ ITAB and forget to use INTO WA.

etc etc etc.....

Make sure your ITAB declarations are as below:

Types: Begin of t_Itab,

fld1,

fld2

etc,

End of t_ITAB

data: itab type standard table of t_itab.

data: wa_itab like line of itab.

Thanks,

Kiran