‎2009 Jul 26 2:17 PM
Dear Friends,
You cant use internal table as work area, i got this error. so what could be the problem. Please help me.
‎2009 Jul 26 2:25 PM
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
‎2009 Jul 26 2:25 PM
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
‎2009 Jul 26 4:02 PM
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.
‎2009 Jul 26 4:26 PM
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