‎2008 Apr 02 3:32 AM
Hi,
In a case statement having the code sample below,
CAse v_xausz.
when '1'.
v_xausz = '2'.
when others.
‎2008 Apr 02 3:34 AM
‎2008 Apr 02 10:26 AM
this is the sample code for case statement.
CASE TEST.
WHEN TEST = '1'.
WRITE / TEST.
WHEN TEST = '2'.
WRITE /TEST.
OTHERS.
WRITE /'WRONG INPUT'.
END CASE.
‎2008 Apr 02 10:30 AM
Hi,
it is same as like this.
if v_xausz = '1'.
v_xausz = '2'.
else.
*some code.
endif.
rgds,
bharat.
‎2008 Apr 02 10:33 AM
‎2008 Apr 02 10:36 AM
When u use case statement
U have to write ENDCASE. u might have missed that. Use like following
CAse v_xausz.
when '1'.
v_xausz = '2'.
when others.
some code
ENDCASE.
‎2008 Apr 02 1:07 PM