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: 

deleting duplicate entries from an internal table

Former Member
0 Kudos
163

how to delete duplicate entries from an internal table?

1 ACCEPTED SOLUTION

bpawanchand
Active Contributor
0 Kudos
110

Hi

First sort the internal table then use

To delete adjacent duplicate entries use the following statement:

DELETE ADJACENT DUPLICATE ENTRIES FROM <itab>

Regards

pavan

4 REPLIES 4

bpawanchand
Active Contributor
0 Kudos
111

Hi

First sort the internal table then use

To delete adjacent duplicate entries use the following statement:

DELETE ADJACENT DUPLICATE ENTRIES FROM <itab>

Regards

pavan

Former Member
0 Kudos
110

Hi,

sort your <itab> with key fields.

Delete adjacent duplicate entries from <itab> comparing all fields.

Former Member
0 Kudos
110

hi,

To delete adjacent duplicate entries use the following statement:

DELETE ADJACENT DUPLICATE ENTRIES FROM <itab>

[COMPARING <f1> <f 2> ...

|ALL FIELDS].

for more information and sample program follow this link.....

http://help.sap.com/saphelp_nw04/Helpdata/EN/06/aafd54fc4011d195280000e8353423/content.htm

regards,

Ashok

aashish_sinha
Active Contributor
0 Kudos
110

Hi

Please refer these threads....

regards

Aashish Sinha