ABAPDELETE_ITAB - DELETE ITAB
CL_GUI_FRONTEND_SERVICES - Frontend Services Vendor Master (General Section)This documentation is copyright by SAP AG.
DELETE itab
Syntax
DELETE { itab_line |itab_lines |duplicates }.
Effect
This statement either deletes one or more rows itab_lineor itab_linesspecified with a table key or a table index, or it deletes neighboring 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 tablekey or in the logical condition, the index specified when deleting using a table index was larger than the current number of rows, or no duplicate neighboring rows were found. |
Notes
- When deleting rows in an internal table, costs are incurred for updating all existingtable keys andtable indexes. Theprimary key and all uniquesecondarykeys are updated directly, whereas non-unique secondary keys are only updated if the rows to be deleted are contained within an updated part of a relevant index(lazy update). When deleting a row from a standard table using a secondary key, theprimary table index in particular must be updated, and this requires a linear search.
- There is no implicit selection of a suitable key or index. The used table key or table index is always specified uniquely. The syntax check issues a warning if there is a suitablesecondarytable key but this table key is not used. This warning should be removed through using the key. However, in exceptional cases, it can be bypassed using apragma.
Exceptions
Catchable Exceptions
- Cause: Error in a dynamic WHERE condition
Runtime Error: DYN_WHERE_PARSE_ERROR
Addresses (Business Address Services) BAL Application Log Documentation
This documentation is copyright by SAP AG.
Length: 4074 Date: 20120522 Time: 045834 triton ( 144 ms )






