‎2008 Jun 17 2:38 PM
Dear gurus,
Can i use the following syntax for getting data from an internal table.
IF ( WS_CHANNEL = '10' OR WS_CHANNEL = '11' OR WS_CHANNEL = 12 or ws_channel = 15 or ws_channel = 40 ) or ( ( WS_CHANNEL = '50' OR WS_CHANNEL = '60' ) and
( itab-loc = '4058')).
if it is not the correct syntax , how to do it.
Please do the need ful.
Thanx in advance.
R.Rajendran
‎2008 Jun 17 3:12 PM
Hi Rajender,
Yes, Offcourse this can be possible the only thing in this multiple condition.you need to put a proper open '(' and Closed ')' bracket.
Rest all looks ok to me....
&******Reward point if helpful*************&
‎2008 Jun 17 2:42 PM
hi,
yes it is OK. However you can make it a bit simplier:
IF ( ( WS_CHANNEL IN ( '10' , '11' , '12' , '15' , '40' )
OR ( WS_CHANNEL IN ('50', '60' ) AND
itab-loc = '4058' ) ) .
hope this helps
ec
‎2008 Jun 17 3:06 PM
Please provide proper open bracket and close bracket. since given syntax not working properly.
‎2008 Jun 17 3:12 PM
Hi Rajender,
Yes, Offcourse this can be possible the only thing in this multiple condition.you need to put a proper open '(' and Closed ')' bracket.
Rest all looks ok to me....
&******Reward point if helpful*************&
‎2008 Jun 17 3:14 PM
Your syntax is correct. But its better to modify it to
IF ( ( WS_CHANNEL IN ( '10' , '11' , '12' , '15' , '40' )
OR ( WS_CHANNEL IN ('50', '60' ) AND
itab-loc = '4058' ) )
‎2008 Jun 17 3:16 PM
hiii
you can use it like following code
IF ( WS_CHANNEL IN ( '10' , '11' , '12' , '15' , '40' )
OR ( WS_CHANNEL IN ('50', '60' ) AND
itab-loc = '4058' ) ) .reward if useful
thx
twinkal
‎2008 Jun 17 3:26 PM
IF( WS_CHANNEL IN ( '10','11') or ( ws_channel in ('50','60') and itab-loc = '4058')).
IF WS_CHANNEL = '10' OR WS_CHANNEL = '11' OR WS_CHANNEL = 12 or ws_channel = 15 or ws_channel = 40.
i have given the above statement but the following error shows.
comma without preceeding colon ( after IF (?).
please do the needful.
Regards
R.Rajendran
‎2008 Jun 17 3:16 PM
‎2008 Jun 18 4:35 AM