WebMar 13, 2012 · 2) The error clearly says that, your are trying to delete a row which is not exist in itab. 2) So, before you use DELETE itab index sy-tabix . I would request you to please check whether your internal tab has data or not by using Syntax If itab [] is not initial. DELETE itab index sy-tabix . endif. I believe this will definitely solve your problem WebNov 18, 2024 · A faster way to delete ALL records would be the following: CALL FUNCTION 'DB_TRUNCATE_TABLE' EXPORTING tabname = 'ZWFM_T_LOGS'. COMMIT WORK. Share Improve this answer Follow edited Nov 20, 2024 at 15:18 answered Nov 18, 2024 at 11:04 Thomas Erdösi 524 3 15 Add a comment Your Answer Post Your Answer
abap - Delete internal table lines where field contains the ...
WebJul 30, 2007 · That READ statement is correct.I think ur reading an internal table without header. i.e ur referring to an type. Please check if it is a table with out header line then declare workarea and use that workarea while reading the table. READ table itab into wa INDEX 1. Don't forget the REWARD (If it helps) WebJan 18, 2024 · Is there any way, we can remove entries of one table comparing the entries from another? For Example. Table 1 (Ref) DATA 1. DATA 2. DATA 3. DATA 4. Table 2 (Main) DATA 2 . DATA 3. My requirement is to remove the entry DATA 2 and DATA 3 from Table 1, with out using loop . Is there any 7.4 based queries? Thanks in Advance. incpas membership
DELETE itab - duplicates - ABAP Keyword Documentation
WebFeb 21, 2024 · IF -number IN range[]. DELETE ITAB from . ENDIF. ENDLOOP. This might be a dumb question but is there a way to access and delete the row from ITAB without going through the loop? (using new syntax). Something like a direct access to the row by using field-symbols and not using positional references: DELETE itab where … WebIf the primary table key is used to access a standard table and the key is empty, the first row of the internal table is deleted. If this is known statically, the syntax check produces a warning. Notes When using the primary table key, note that this key can be the standard key, which can also have unexpected consequences: incpwave1