2007 Feb 27 2:21 PM
Hi all,
I want to Delete the Adjacent duplicate values. For this iam using
Delete Adjacent duplicates from table itab.
My question is Where i have to use this? i mean outside the loop or
within the Loop and Endloop.
Performance wise which one is suggested ?
Thanks in advance
Sri...
2007 Feb 27 2:22 PM
It is not to be used within a loop.
It should be out of the loop.
Leave performance, if you use it in a loop, you will get erroneous results.
Regards,
ravi
Hi all,
I want to Delete the Adjacent duplicate values. For this iam using
Delete Adjacent duplicates from table itab.
My question is Where i have to use this? i mean outside the loop or
within the Loop and Endloop.
Performance wise which one is suggested ?
Thanks in advance
Sri...
2007 Feb 27 2:22 PM
It is not to be used within a loop.
It should be out of the loop.
Leave performance, if you use it in a loop, you will get erroneous results.
Regards,
ravi
2007 Feb 27 2:22 PM
2007 Feb 27 2:24 PM
outside the loop.
<i>sort itab.
delete adjacent duplicates from itab.</i>
You can also use the addition
delete adjacent duplicates from itab comparing fields <f1> <f2> etc.
~Suresh
2007 Feb 27 2:24 PM
HI,
U cant Use in a Loop.
Ex:
<b>SORT ITAB ASCENDING BY MATNR WERKS.
DELETE ADJACENT DUPLICATES FROM ITAB COMPARING MATNR.</b>
Regards
SAB
2007 Feb 27 2:26 PM
You need to sort the internal with or without a field before using delete adjacent duplicates on itab.
use
delete adjacent duplicates from itab
2007 Feb 27 2:27 PM
Hi,
it must not be between loop and end loop.
write outside the loop.
before using Delete Adjacent duplicates from table itab.
sort the table itab.
i.e
sort itab.
Delete Adjacent duplicates from table itab.
Regards,
Sruthi
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |