Application Development 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: 

question about internal table readking

Former Member
0 Kudos

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,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Loop at the table...

loop at itab where field = 'xxxx'.

endloop.

Regards,

Vidya.

4 REPLIES 4

Former Member
0 Kudos

Hi,

Loop at the table...

loop at itab where field = 'xxxx'.

endloop.

Regards,

Vidya.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

Get Solution from internal colleague