cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicate

Former Member
0 Kudos

Hi all,

I have an internal table itab with PO numbers and item no's, and it has following records:

data: begin of itab occurs 0,

ebeln(10),

ebelp(5),

end of itab.

ebeln ebelp

1100991112 0001

1100991112 0002

1100991112 0003

1100991113 0001

1100991113 0002

1100991112 0001

1100991112 0002

1100991112 0003

1100991113 0001

1100991113 0002

As you there are several duplicate records in the file and I want to delete these records, so my internal table shoud look like this:

ebeln ebelp

1100991112 0001

1100991112 0002

1100991112 0003

1100991113 0001

1100991113 0002

so can you please tell me how to get this.

Thanks

Rajeev

Message was edited by:

Rajeev Gupta

Accepted Solutions (1)

Accepted Solutions (1)

aris_hidalgo
Contributor
0 Kudos

Hi,

SORT itab by ebeln ebelp.

delete adjacent duplicates from itab comparing ebeln ebelp.

Hope it helps...

P.S. Please award points if it helps...

Answers (3)

Answers (3)

p244500
Active Contributor
0 Kudos

hai

<b>SORT ITAB BY EBELN EBELP.

DELETE ADJACENT DUPLICATES FROM ITAB COMPARING EBELN EBELP.</b>

regard

nawa

former_member223537
Active Contributor
0 Kudos
SORT ITAB BY EBELN EBELP.
DELETE ADJACENT DUPLICATES FROM ITAB COMPARING EBELN EBELP.
Former Member
0 Kudos

Hi,

Your output shows you are using two loops for writing. check it if there is two loops remove one.

for deleting duplilate entries....

DELETE ADJACENT DUPLICATES FROM itab.

regards,

paras