Skip to Content
0
Apr 24, 2009 at 08:33 AM

Is it possible to loop internal table descending.

958 Views

Hi all ,

I am having all the Organisational data of one employee into one internal table.

then i sorted itab by endda.

i want to delete the records of comparing the orgeh.

I have deleted adjacent duplicate of itab comparing the orgeh.

when i see the data it deleted all the orgeh records ascending.

ie.

pernr begda endda orgeh.

1000 12/1/2000 4/5/2002 50000

1000 12/1/2002 4/5/2006 50000

1000 12/1/2007 4/5/2008 50002

1000 12/1/2008 12/31/9999 50002

i want o/p

pernr begda endda orgeh.

1000 12/1/2002 4/5/2006 50000

1000 12/1/2008 12/31/9999 50002

But i am getting

pernr begda endda orgeh.

1000 12/1/2000 4/5/2002 50000

1000 12/1/2007 4/5/2008 50002

How can we achieve this any one pls.

regards

sas