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 duplicate adjest

Former Member
0 Likes
1,250

i have itab that have 6 record * 8 times so i get 48 rows

i make delete comma and it delete only 12 why??

i need it to delete 7 times

12 REPLIES 12
Read only

Former Member
0 Likes
1,212

.

Message was edited by: Dinu M Babu

Read only

0 Likes
1,212

i get al lot of values not just matnr and they are all the same 8 time

Read only

0 Likes
1,212

then use

DELETE ADJACENT DUPLICATES FROM ITAB COMPARING ALL FIELDS

Read only

Former Member
0 Likes
1,212

Hi ,

u have to sort before deleting .

sort itab by matnr.

delete adhjacent duplicates from itab comparing matnr.

sort itab by matnr.

.

regards

Prabhu

Read only

Former Member
0 Likes
1,212

did you sort the records before you use the delete adjacent duplicates from itab comparing field1 field2..statement?

Read only

Former Member
0 Likes
1,212

Hi,

do you use the right key column in:

DELETE ADJACENT DUPLICATES FROM itab

COMPARING keycolumn.

grtz

Koen

Read only

Former Member
0 Likes
1,212

can u show ur code.

first sort the itab for the duplicate fields

sort itabby matnr lgort.

delete adjacent duplicates from itab comparing matnr lgort.

Read only

Former Member
0 Likes
1,212

Hello Rani,

USe like this.

<b>Delete adjacent duplicates from itab comparing field.</b>

If useful reward pooints.

Vasanth

Read only

Former Member
0 Likes
1,212

Hi.

I think the problem is because of your sorting criteria or not sorting at all.

Regards,

  • close the issue if solved

Read only

Former Member
0 Likes
1,212

Hi Rani,

1)Sort you Internal Table(with key fields)

SORT itab BY <b>f1 f2</b>.

2)Delete the records then comparing that fields.

DELETE ADJACENT DUPLICATES FROM itab COMPARING <b>f1 f2</b>.

You will have only single unique records then.

Regards,

Arun Sambargi.

Read only

Former Member
0 Likes
1,212

Hi Rani,

You can delete duplicate entries from internal table :

1st sort your table as:

sort itab key field.

delete adjacent entries.

append itab.

so it may be possible that your condition is satisfied all 12 entries.

Ankur Garg.

Read only

Former Member
0 Likes
1,212

Hi Rani,

You can delete duplicate entries from internal table :

1st sort your table as:

sort itab key field.

delete adjacent duplicates entries.

append itab.

so it may be possible that your condition is satisfied all 12 entries.

Ankur Garg.