on 01-30-2009 1:31 PM
Hi Experts,
Now im writing IF condition for multiple values like
IF EKPO-MWSKZ = 'N1' OR EKPO-MWSKZ = 'N2' OR EKPO-MWSKZ = 'N3'
Is there any shortcut method like IF EKPO-MESKZ = (N1,N2,N3)
Please do the need full,
Thanks in advance.
Radhakrishna
You could use CASE
CASE ekpo-mwskz.
WHEN 'N1' OR 'N2' OR 'N3'.
* do something
WHEN others.
* do something else
ENDCASE.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The shorcut method cannot be used here.
U need to use the long way as mentioned
Regards,
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this.
IF EKPO-MESKZ IN ('N1','N2','N3').
кu03B1ятu03B9к
Edited by: kartik tarla on Jan 30, 2009 7:15 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.