Skip to Content
0
Former Member
Feb 25, 2007 at 12:40 AM

identifying consecutive values in internal table.

140 Views

Hi all,

I have an internal table with field A.

A

-


2

4

5

6

7

10

12

13

14

-


the values 4-7 are consecutive.

I need to print output as

2

4 to 7

10

12 to 14

Please help me to find the logic for implementing this. Thank you.

Thanks

Pranati.