10-23-2007 6:33 AM
Hi experts,
I need to check the value of Return order with 3 differnt values,please Advice
10-23-2007 6:35 AM
hi
use AND operator for this purpose..
something like this...
IF value = '100' and value2 = '70' and value3 = '102'.
ur logic here ****
ENDIF.
Thanks & Regards
ilesh 24x7
10-23-2007 6:35 AM
Hi,
Not sure what you are looking for..Do you want IF condition??
Thanks,
Naren
10-23-2007 6:35 AM
hi
use AND operator for this purpose..
something like this...
IF value = '100' and value2 = '70' and value3 = '102'.
ur logic here ****
ENDIF.
Thanks & Regards
ilesh 24x7
10-23-2007 6:51 AM
THANKS,
I need to check only one value not value 1 or value 2 only one variable with 3 values
10-23-2007 9:51 AM
Hi
As you want the single variable to be checked for three different values...
So for this case you have to use OR operator instead of AND operator.
IF variable1 = '100' <b>OR</b> variable1 = '20' <b>OR</b> variable1 = '230'.
UR LOGIC HERE ******
ENDIF.
I hope your problem is solved now.
Thanks & Regards
ilesh 24x7
10-23-2007 6:37 AM
10-23-2007 6:44 AM
hi,
use case endcase statement.
CASE GI_SALES-VKORG.
WHEN 'BDN'.
MOVE '4033' TO GI_SALES-VKORG.
WHEN 'CNAJ'.
MOVE '4122' TO GI_SALES-VKORG.
WHEN 'CNAM'.
MOVE '4011' TO GI_SALES-VKORG.
endcase.
regards
siva
10-23-2007 6:55 AM
Hi,
IF VAL = '10' OR VAL = '12' OR VAL = '13'.
do the appropriate logic here.
ENDIF.
Thanks
Naren
10-23-2007 7:00 AM
Hi Karthick,
Refer this code :
suppose d_value can contain three values :
v1,v2,v3.
case d_value.
when 'v1'.
do whatever u want.
when 'v2'.
do whatever u want.
when 'v3'.
do whatever u want.
endcase.
Regards,
Hemant