‎2007 Apr 02 1:53 PM
how to read more than one record that matches with the key
read table itab with key k1 = v1 ........................
thanks and regards
Cnu
‎2007 Apr 02 1:58 PM
if more than 1 record matches then we can't use READ tsatement instead we need to use LOOP statement....
Loop at itab1.
Loop at itab2 where key1 = itab1-key1.
<do ur statements>.
endloop.
endloop.
‎2007 Apr 02 1:58 PM
‎2007 Apr 02 2:02 PM
hi,
for more than one record,
u have to loop through the table. and u can add where condition to the loop statement to restrict entries.
regards,
madhu
‎2007 Apr 02 4:14 PM
Or if conditions are more complex, you can exit the loop for the records you don't want:
Example:
loop at tab.
if tab-field1 cs 'A'.
exit.
endif.
do some stuff.
endloop.
Kind regards,
John.