Skip to Content
Former Member
Mar 13, 2015 at 08:08 PM

issue with deleting adjacent duplicates from internal tab


Hi eveyrone. Its been some years the last time I did some abap coding so I am coming a bit rusty already.

I have dilemma how to delete duplicates in my internal table. For example I have the following entries in the internal table

Fld1 Field2 Field3 Field4

1 march1 A602 A602 description

1 march1 A610 A610 description

2 march 1 A602 A602 description

I need to delete duplicates in the itab above. But I need to retain record#2 and record#3. I need to retain the last instance of the duplicates and not the first one. Please help.