2006 Oct 31 11:37 AM
Hi Friends,
I want to check two expression with one if conditions, I have coded it this way, But I am getting error,
if it_konv-kschl EQ 'ZLMR OR it_konv-kschl EQ 'ZLS1
Can any one correct it.
Thanx in advance,
Venu
2006 Oct 31 11:43 AM
Hi,
You can try this.
IF (it_konv-kschl EQ 'ZLMR OR it_konv-kschl EQ 'ZLS1).
REWARD if this helps
2006 Oct 31 11:39 AM
hi
write like this
if ( ( it_konv-kschl EQ 'ZLMR ) OR ( it_konv-kschl EQ 'ZLS1 ) ).
....
endif.
NB: put one space among ( and( like this
if helpful reward points
regs
Manas Ranjan Panda
Message was edited by: MANAS PANDA
2006 Oct 31 11:41 AM
Hi,
I tried with that also
if ( ( it_konv-kschl EQ 'ZLMR ) OR ( it_konv-kschl EQ 'ZLS1 ) ).
Thanx in advance,
Venu
2006 Oct 31 11:43 AM
Exactly what error u are getting bcoz this if condition should work
2006 Oct 31 11:44 AM
Incorrect logical expression: Comparison / SELECT-OPTION can only be
followed by "AND", "OR" or ")".
Thanx in advance,
Venu
2006 Oct 31 11:43 AM
Hi,
You can try this.
IF (it_konv-kschl EQ 'ZLMR OR it_konv-kschl EQ 'ZLS1).
REWARD if this helps
2006 Oct 31 11:45 AM
Hi,
Try this way..
If ( ( it_konv-kschl = 'ZLMR' )OR ( it_konv-kschl = 'ZLSI') ).
endif.
Please reward for usefull answers
2006 Oct 31 11:51 AM
Hi,
if it is not working try like this
if it_konv-kschl EQ 'ZLMR.
<do something>
elseif it_konv-kschl EQ 'ZLS1.
<do the same thing here also>
endif.
Regards,
Sowjanya
2006 Oct 31 11:55 AM
try this ..
if ( ( it_konv-kschl = 'ZLMR ) OR ( it_konv-kschl = 'ZLS1 ) ).
2006 Oct 31 12:23 PM
Hi ,
data: it_kschl like konv-kschl.
data a(4) type c value 'ZLMR'.
data b(4) type c value 'ZLS1'.
if ( it_kschl eq a ) or ( it_kschl eq b ).
write:/ 'hi'.
endif.
regards,
Vjay