Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

probelm with DELETE ADJACENT DUPLICATES

Hi Guys!

Here's the scenario, I have this syntax in my report..

delete adjacent duplicates from it_itab comparing matkl sptag+0(6)

The values inside the it_tab is as follows..

20080301|01010402

20080301|02024301

20080305|01010402

20080310|01010402

when I debug it, and used the syntax delete adjacent duplicates from it_itab comparing matkl sptag+0(6),

the output will be like this....

20080301|01010402

20080301|02024301

20080305|01010402

I dont know why this output showed up. I'm expecting do have this output

20080301|01010402

20080301|02024301

Could someone explain why this happened? Is there a problem or loop hole in delete adjacent duplicate?

Please help! thanks so much!

Regards,

Mackoy

Tags:
Former Member
replied

sort it with the fields u want to compare and delete, before delete adjacent duplicates statement...

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question