‎2009 Mar 11 1:33 PM
hie guys
I have a select statement where i need to restrict the selected items where values in a field are ZP%
SELECT * FROM marc INTO xmarc WHERE matnr IN material
and werks ne 'ZP%'.
IF sy-subrc = 0.
APPEND xmarc.
ENDIF.
ENDSELECT.
the above code is not working for me. Could anybody advise me??
regards
Prince Isaac
‎2009 Mar 11 1:36 PM
‎2009 Mar 11 1:36 PM
‎2009 Mar 11 1:36 PM
hi
use LIKE operand insted of ne
SELECT * FROM marc INTO xmarc WHERE matnr IN material
and NOT werks LIKE 'ZP%'.
reagrds,darek
‎2009 Mar 11 2:38 PM
Thanx Rich,
problem solved. Donno if u still need the points tho! lol.
regards
Prince Isaac