‎2007 Feb 12 10:06 AM
can i use st.
delete adjacent duplicates from itab1 comparing vbeln without a loop on itab1.
or it should be used within a loop on itab1.
‎2007 Feb 12 10:08 AM
You do not need it in a loop. However you need to sort the table by the fields you are checking for duplicates in.
‎2007 Feb 12 10:08 AM
You do not need it in a loop. However you need to sort the table by the fields you are checking for duplicates in.
‎2007 Feb 12 10:09 AM
sort ur internal table by field Vbeln and then use delete adjacent duplicates clause.
u need not to use Loop in that.
for e.g -
u can use liek this -
sort itab by vbeln.
DELETE ADJACENT DUPLICATES FROM ITAB.
amit
‎2007 Feb 12 10:10 AM
No need to loop...
you can staraight away write this:
delete adjacent duplicates from itab1 comparing vbeln.
Thanks
‎2007 Feb 12 10:34 AM
hi Sonika,
Pls make sure the table itab is SORTed by the field based on which you want to delete; befor the DELETE ADJACENT .... stmt.
This statement can be issued without a loop. That is the advantage of this syntax.
Regards,
Vivek
**->Reward all correct, helpful ansers.