Skip to Content
0
Former Member
Oct 20, 2006 at 04:44 PM

case stmt - error

19 Views

Hi All,

I wrote the Sy-ucomm case stmt like this, it is giving me the following errror on

at user-command.

case sy-ucomm.

when 'SELALL'.

LOOP AT IT_OUTPUT.

IT_OUTPUT-CHECK = 'X'.

MODIFY IT_OUTPUT WHERE CHECK = ' '

TRANSPORTING CHECK.

  • clear sy-ucomm.

ENDLOOP.

when 'DESALL'.

LOOP AT IT_OUTPUT.

IT_OUTPUT-CHECK = ' '.

MODIFY IT_OUTPUT WHERE CHECK = 'X'

TRANSPORTING CHECK.

  • clear sy-ucomm.

ENDLOOP.

endcase.

error --> "WHERE CHECK = ' '" is not expected.

when 'SELALL'.

LOOP AT IT_OUTPUT.

IT_OUTPUT-CHECK = 'X'.

---> MODIFY IT_OUTPUT WHERE CHECK = ' '

TRANSPORTING CHECK.

Can you please help me resolve this.

Thanks

Veni.