Skip to Content
0
Former Member
Aug 17, 2005 at 04:51 AM

Internal Table Manipulation

16 Views

Hi,

I have an internal tables with 5 fields each of type Char - L1 L2 L3 L4 L5.

I have to make the first occurance of 0 after a non zero value as 1.

Example: if i have the values as 1 0 0 0 0, it s'd be made 1 1 0 0 0.

If 1 1 0 0 0 it s'd be made 1 1 1 0 0.

If 0 1 0 0 0 then it should be made 0 1 1 0 0.

If i try this using nested IF statements the code becomes more complex.. Is there any other way out.. like using string operations??

Regards,

Pradhiba