ABAP Keyword Documentation →  ABAP − Reference →  Processing Internal Data →  Internal Tables →  Processing Statements for Internal Tables → 

DELETE itab  Syntax Diagram

Short Reference

Syntax

DELETE { itab_line | itab_lines | duplicates }.

Effect

This statement either deletes one or more rows itab_line or itab_lines specified with a table key or a table index, or it deletes adjacent duplicate rows duplicates.

System Fields

sy-subrc Meaning
0 At least one row was deleted.
4 No rows were deleted, since no appropriate row was found when deleting using a table key or when specifying a logical expression, the index specified when deleting using a table index was larger than the current number of rows, or no duplicate adjacent rows were found.

The system field sy-tabix is not set.

Notes

Exceptions

Catchable Exceptions

CX_SY_ITAB_DYN_LOOP




Continue
DELETE itab - itab_line
DELETE itab - itab_lines
DELETE itab - duplicates
Internal Tables - Deleting Rows Using the Index
Internal Tables, Deleting Rows Using Keys