on 03-11-2008 3:04 PM
I want to delete all occurances (not just the adjacent duplicates) from an internal table where certain fields are duplicated. I tried 'DELETE duplicate entries FROM it_name' but got an error saying 'Between Delete and Duplicate, Adjacent is missing'.
Make sure the "certain fields" are at the beginning of the record and that none of them occur after a numeric (curr etc) field. Sort the table. Use "DELETE ADJACENT DUPLICATES FROM itab COMPARING f1 f2...".
Did you do an ABAP help on DELETE ADJACENT DUPLICATES? Have a read - especially of the notes after Addition 2.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The syntax is
Delete adjacent duplicated from itab comparing field1.
Press F1 on Delete command( or any other command) so as to know about it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
gi,
do this way
DELETE adjacent duplicates FROM it_name comparing <fields>.
Regards,
Santosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.