Question:
Hi Expert,
Tried to search in this site, but can't any that suit my requirement.
Here is my case:
For every step LOOP in a Internal Table, i will assign to a Field-Symbol. Checking will carry out on the info in the field-symbol. Deletion of table entry needed when certain criteria meet. Eg code:
Loop at itab assigning <fs>.
if <fs>-abc = '2343'.
DELETE ITAB.
endif.
Endloop.
I have tried DELETE ITAB, DELETE ITAB FROM <fs> but doesn't work also....
could you guys pls comment..
Thanks in advance.
Answer:
Hi Expert,
Tried to search in this site, but can't any that suit my requirement.
Here is my case:
For every step LOOP in a Internal Table, i will assign to a Field-Symbol. Checking will carry out on the info in the field-symbol. Deletion of table entry needed when certain criteria meet. Eg code:
Loop at itab assigning <fs>.
if <fs>-abc = '2343'.
DELETE ITAB.
endif.
Endloop.
I have tried DELETE ITAB, DELETE ITAB FROM <fs> but doesn't work also....
could you guys pls comment..
Thanks in advance.
For reason of performance I would go for the mass operations
Instead of looping over the table just type
delete itab where abc = '2343'.
However I am surprised to read that DELETE ITAB from <fs> did not work within the loop.
Christian