Skip to Content
0
Former Member
Jul 02, 2007 at 07:12 AM

Error

12 Views

Hi,

when i am creating the program iam getting the following error.

Incorrect logical expression:/comparison?select option can only followed by and or.

plz let me know what is the error in the program. annd what is select option

DATA: W_VAR1 TYPE I,

w_var2 type I.

WHILE : W_VAR1 < 10,

W_VAR1 = W_VAR1 + 1

W_VAR2 = W_VAR2 + W_VAR1

WRITE:/ W_VAR2, W_VAR1.

ENDWHILE.

WHILE SY_INDEX <= 10,

W_VAR2 = W_VAR2 + SY_INDEX.

WRITE:/ W_VAR2, SY_INDEX.

ENDWHILE.