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

itab

Former Member
0 Likes
1,018

what is the syntax for eliminating duplicate values in internal table.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
993
DELETE ADJACENT DUPLICATEs FROM ITAB COMPARING FIELD1 FIELD1...

Message was edited by:

Chandrasekhar Jagarlamudi

10 REPLIES 10
Read only

Former Member
0 Likes
994
DELETE ADJACENT DUPLICATEs FROM ITAB COMPARING FIELD1 FIELD1...

Message was edited by:

Chandrasekhar Jagarlamudi

Read only

Former Member
0 Likes
993

Hi

Use

Delete Adjacent duplicates

Read only

Former Member
0 Likes
993

Hi,

SORT itab BY ... .

Regards,

Stéphane.

Read only

Former Member
0 Likes
993

hi,

Example..

For DELETE ADJACENT DUPLICATES you have to sort first..

SORT ITAB BY MATNR.

DELETE ADJACENT DUPLICATES FROM ITAB COMPARING MATNR.

Just use that statement, omitting the COMPARING extension will simply mean that it will look at the entire line.

sort it_bsid ascending.

DELETE ADJACENT DUPLICATES FROM it_bsid.

Regards

Reshma

Read only

Former Member
0 Likes
993

hi

first sort the internal table and then use delete adjacent duplicates from itab

Read only

Former Member
0 Likes
993

DELETE ADJACENT DUPLICATES FROM itab.

the additions that you can give for this statement is

1) comparing f1 f2 ..........

2) comparing all fields.

f1 f2 fields refering to internal table fields

Read only

Former Member
0 Likes
993

hi,

syntax:

sort itab by <field1>...<fieldn>.

delete duplicate adjacent duplicates from <internal table name> comparing <fiel1>...<fieldn>

regards,

Navneeth.K

Read only

Former Member
0 Likes
993

hi,

DELETE ADJACENT DUPLICATES FROM itab COMPARING <field1> <field2

Regards,

Prasad

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
993

Hi,

delete adjacent duplicates from itab comparing all fields.

Read only

Former Member
0 Likes
993

DELETE ADJACENT DUPLICATES FROM <INTERNAL TABLE> COMPARING <FIELD1> <FIELD2>