07-27-2012 9:34 AM
Hi ,
Please let me know what is the best choice ( betwen two below )
I have some douts about first one, I am wondering could it make a mess with indexes.
Thanks
Chris
1)
Loop at itab into wa
if itab-f1 = 1.
delete itab from wa
endloop.
2) delete itab[] where f1 = a
Moderator Message: Please read SAP help documentation for more details
Message was edited by: Kesavadas Thekkillath
07-27-2012 10:03 AM
hi ,
If you insert or delete lines in the statement block of a LOOP , this will have the following effects:
regards ,
Yogendra Bhaskar
07-27-2012 10:36 AM
Hi,
I prefer the seconde one, is simpler. Relatated to the performance I suppose it's better also, at least at network level, but only if your table is too big there is a motive for concerning. Altough is important to have good pratices,
Using sy-tabix is safer, as mentioned.
Regarsd,
Maria João Rocha