12/20/2023 0 Comments Abap delete itab where not inThe DELETE ADJACENT DUPLICATES statement is especially useful if the internal table itab is sorted by fields (whether in ascending or descending order) which were compared during duplicate determination. Two lines are considered to be duplicates if all fields of the table entries match. Two lines of the internal table itab are considered to be duplicates if the specified fields f1, f2. SY_SUBRC = 4 No duplicates exist, no entry deleted. SY-SUBRC = 0 At least one duplicate exists, at least one entry deleted. Two lines are considered to be duplicated if their default keys match. If there are n duplicate entries, the first entry is retained and the other n - 1 entries are deleted. The addition TO must come before the WHERE condition.ĭelete all lines in a name table between lines 5 and 36, if the entry begins with one of the letters 'A' to 'C' :ĭELETE NAMETAB FROM 5 TO 36 WHERE NAME CA 'ABC'.ĭeletes neighboring, duplicate entries from the internal table itab. If the addition TO idx2 is missing, a search is carried out until the end of the table. Restricts the line area to be investigated to the lines up to index idx2. The addition FROM must come before the WHERE condition. If the addition FROM idx1 is missing, a search is carried out from the beginning of the table. The line area to be investigated is restricted to the lines up to index idx1. SY_SUBRC = 4 None of the entries were deleted.ĭeletes all entries from internal table itab, which satisfies the condition condition. SY-SUBRC = 0 At least one entry was deleted. If parameter TO is missing, the area from line idx1 to the end of the table is deleted. If parameter FROM is missing, the area from the start of the table to line idx2 is deleted. ![]() At least one of the two parameters FROM idx1 or TO idx2 should be specified. ĭeletes the line area from index idx1 to idx2 from internal table itab. The current entry of the internal table itab isĪfter deleting the current entry in an internal table in a LOOP loop, the effect of further update operations on the current entry without an INDEX specification is not guaranteed and may changed in later Releases.ĭeletes the idx entry from the internal table itab. ENDLOOP loop is performed in a sequence of loop passes. Deletes one or more lines from an internal table.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |