Skip to Content
0
Former Member
Dec 07, 2006 at 05:11 AM

Best method to delete entries

25 Views

Hi Experts,

I am having an internal table with multple empployee numbers and a date field.

I need to give output with repect to the latest date, only single employee number.

So i have sorted the internal table by employee number and date in decending order.And used the statement

SORT ITAB BY PERNR CRDATE DESCENDING.

DELETE ADJACENT DUPLICATES FROM ITAB COMPARING PERNR.

Is this the correct mehtod or any better method is available.

Thanks in Advacne,

Irfan Hussain