Search code examples
abapinternal-tables

DELETE ADJACENT DUPLICATES delete order?


If there are entries with the same key.

sort itab by key. delete adjacent duplicates from itab comparing key.

Does anyone know which one will be deleted if delete adjacent duplicates..comparing key? The first one or second one?


Solution

  • From F1 help on "delete adjacent duplicate"

    In the case of several double lines following one another, all the lines - except for the first - are deleted.

    So the second (identical) line should be deleted

    Regards,