loop at itab1 into wa.
collect wa into itab2.
endloop.
delete itab2 where qty LT 3 OR qty GT 5. -->itab2 will now just have all the records you need.
loop at itab1 into wa.
collect wa into itab2.
endloop.
delete itab2 where qty LT 3 OR qty GT 5. -->itab2 will now just have all the records you need.