12-04-2007 4:20 AM
hi guru's how can i delete from internal table index 5, 11, 15 records at a time plz help me
12-04-2007 4:23 AM
12-04-2007 4:30 AM
hi,
try the following code:
delete int_tab index 5.
delete int_tab index 11.
delete int_tab index 15.
it should work now.
reward if helpful..
12-04-2007 4:32 AM
hi
loop at itab.
if sy-index = 5
delete itab index 5.
delete itab index 11.
delete itab index 15.
endif
or you can do directly
delete itab index 5.
delete itab index 11.
delete itab index 15.
Dependents on interval
regards,
pavan
REWARD POINTS IF USEFUL
12-04-2007 4:37 AM
hi guru's how can i delete from internal table index 5, 11, 15 records not lke hat so many
more records are their i want to delete more at that time also do like that help me my question
12-04-2007 4:43 AM
Hi,
then try using some condition,
Loop at ITAB.
DELETE ITAB WHERE <condition>.
Endloop.
12-04-2007 4:45 AM
Hi,
Keep all your lines you want delete put in an internal table called i_index.(this intenal have a field index)
loop at itab.
v_tabix = sy-tabix.
read table i_index with index = sy-tabix.
if sy-subrc eq 0.
delete itab index v_tabix.
endif.
endloop.
a®