‎2007 Nov 15 1:19 PM
hi
i want to delete table entries based on the internal table
can i use for all entires for delete?
if so how?
i dont want to use loop as it takes more time
regards
senthtil
‎2007 Nov 15 1:21 PM
H!
FOR ALL ENTRIES is not available to DELETE.
You can use the WHERE or the INDEX statements.
DELETE itab WHERE matnr = '123'.
LOOP AT itab2.
DELETE itab INDEX sy-tabix. "delete by itab2's SY-TABIX
ENDLOOP.
Regards
Tamá
‎2007 Nov 15 1:21 PM
H!
FOR ALL ENTRIES is not available to DELETE.
You can use the WHERE or the INDEX statements.
DELETE itab WHERE matnr = '123'.
LOOP AT itab2.
DELETE itab INDEX sy-tabix. "delete by itab2's SY-TABIX
ENDLOOP.
Regards
Tamá
‎2007 Nov 15 1:21 PM
Hi Senthil,
do like this
delete <itab> where ....
Reward if it helps,
Satish
‎2007 Nov 15 2:08 PM
Hi,
You can use as below :
Delete itab where fieldname = 'some value'.Above code will delete all the entries from the internal table which satisfies the condition.
Thanks,
Sriram Ponna.
‎2007 Nov 15 2:12 PM
Hi,
you are not making clear if you want to delete the internal table entries or ddic table entries, in case you want to delete internal table entries use one of the above suggestions else use something like this.
delete ddic_table from table itab[].Kostas