‎2007 Dec 06 11:51 AM
Hi,
Is it possible to use Not Equalto(NE) operator in the Read statement.
‎2007 Dec 06 11:53 AM
No...
u cannot use 'EQ' symbol even..
you can only use '=' in read statement !!
use this piece of code....
<b>loop at itab into work_area where field1 ne value1.
exit.
endloop.</b>
now WORK_AREA contains the required value....
Regards,
Sai Ramesh
‎2007 Dec 06 11:53 AM
No...
u cannot use 'EQ' symbol even..
you can only use '=' in read statement !!
use this piece of code....
<b>loop at itab into work_area where field1 ne value1.
exit.
endloop.</b>
now WORK_AREA contains the required value....
Regards,
Sai Ramesh
‎2007 Dec 06 11:54 AM
Hi,
you can not use NE, GT, GE, LT, LE while reading the internal table with read statement.
you can loop through that table and in where clause you can use all the above operators.
reward if needful.
Thanks,
Sreeram.
‎2007 Dec 06 11:54 AM
Hi,
No its not possible but u can do like that
Loop at itab.
read table itab2 with key
if sy-subrc eq 0.
then check ur condition here (if not equal to)
statement
endif
endif.
endloop.
Regards,
Prashant
‎2007 Dec 06 11:57 AM
‎2007 Dec 06 12:05 PM
Hi Shruti,
You cannot use these special operators with read stmt.but you can do like this with the help of work area(wa).
Plz do reward if useful.
Thankx.
loop at itab into wa where field1 ne value1.
exit.
endloop.
wa contains the required value....Apply all conditions on work area.