Skip to Content
0
Former Member
Dec 08, 2008 at 04:16 AM

to delete records whose dates are not overlapping

292 Views

Hi All,

I have an internal table.

two of the fields are

FROM TO

7.7.2008 8.7.2008

7.7.2008 7.7.2008

9.7.2008 10.7.2008 is to be deleted(not overlapping with other dates)

8.7.2008 8.7.2008

11.7.2008 13.7.2008

12.7.2008 14.7.2008

Now I have to delete the records whose dates do not overlap.

i.e each and every record has to be compared with each each and every other record.

As per the above data, my final internal table should have

FROM TO

7.7.2008 8.7.2008

7.7.2008 7.7.2008

8.7.2008 8.7.2008

11.7.2008 13.7.2008

12.7.2008 14.7.2008

How do you achieve it?

Thanks,

Sandeep.