2009 Oct 19 5:48 AM
Hi,
The following IF QUERY is giving error.
when the value for WA-ITNO = M23 then the flag is set to X.
when the value of WA-ITNO = O20 then the flag should be initial.But when I am checking the code even with O20 it sets the flag as X.it does not go to the ELSEIF part of the code.
IF ( WA-ITNO >= 'M01' OR WA-ITNO <= 'M99' ).
WA_FINAL-FLAG = 'X'.
ELSEIF ( WA-ITNO >= 'O01' OR WA-ITNO <= 'O99' ).
WA_FINAL-FLAG = ''.
ENDIF.
Please advice
Thanks.
2009 Oct 19 5:54 AM
2009 Oct 19 5:54 AM
2009 Oct 19 5:56 AM
Hi,
What is the data type for the field WA-ITNO ?
Also try changing the OR to AND
IF ( WA-ITNO >= 'M01' AND WA-ITNO <= 'M99' ).
WA_FINAL-FLAG = 'X'.
ELSEIF ( WA-ITNO >= 'O01' AND WA-ITNO <= 'O99' ).
clear: WA_FINAL-FLAG. " use this instead
ENDIF.
Vikranth
2009 Oct 19 5:59 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |