06-10-2007 4:37 AM
Hi,
how to retrieve all the rows from an internal table that satisfy my selection condition. i try to use "READ TABLE " statement,but it seems i can get only one row.
who can help me on this question.
Thanks,
06-10-2007 4:39 AM
Hi,
Loop at the table...
loop at itab where field = 'xxxx'.
endloop.
Regards,
Vidya.
06-10-2007 4:39 AM
Hi,
Loop at the table...
loop at itab where field = 'xxxx'.
endloop.
Regards,
Vidya.
06-10-2007 4:45 AM
Use simple code :
data i_makt like makt occurs 0 with header line.
start-of-selection.
select * from makt into table i_makt.
loop at i_makt.
write:/1 i_makt-matnr,i_makt-maktx,i_makt-spras.
endloop.
06-10-2007 5:04 AM
Hi Johnney
Instead of read table use Loop ... Endloop statement.
IF u want merge two internal tables then use Read table.
if u want to process anything in a internal table u should use Loop statement. If u use read statement, then u will get only one record..
Reward me if its useful..
Regards
Ravi
04-13-2009 7:14 AM