Application Development and Automation 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: 
Read only

delete dupulicate

Former Member
0 Likes
644

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.

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
Read only

Former Member
0 Likes
596

Hi,

Sort itab by aa.

Delete Adjucent duplicates from itab comparing aa.

Regards,

Satish

Read only

Former Member
0 Likes
596

hi,

you can do it with:

DELETE ADJACENT DUPLICATES FROM itable.

regards,

mae

Read only

Former Member
0 Likes
596

thank you