Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

delete dupulicate

Former Member
0 Kudos

Hi there

I'd like to delete with below condition.

*condition :

delete if aa field's data is duplicate.

but remain first data.

ex)

itab

-


aa bb cc

-


1 df fg (remain)

2 rw dsdf (remain)

2 wr sfg (delete)

2 2d dff (delete)

3 dd dh (remain)

1 d2 ref (delete)

4 dfsa sfs (remain)

plz tell me how.

3 REPLIES 3

Former Member
0 Kudos

Hi,

Sort itab by aa.

Delete Adjucent duplicates from itab comparing aa.

Regards,

Satish

Former Member
0 Kudos

hi,

you can do it with:

DELETE ADJACENT DUPLICATES FROM itable.

regards,

mae

Former Member
0 Kudos

thank you