on 11-08-2007 2:52 AM
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
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hai
<b>SORT ITAB BY EBELN EBELP.
DELETE ADJACENT DUPLICATES FROM ITAB COMPARING EBELN EBELP.</b>
regard
nawa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SORT ITAB BY EBELN EBELP.
DELETE ADJACENT DUPLICATES FROM ITAB COMPARING EBELN EBELP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.