Skip to Content
0
Former Member
Jan 30, 2008 at 09:32 PM

Operators: Or/And

33 Views

In my logic I do not want to send a message out when the doc types DO NOT EQUAL either 'AB' 'AN' 'ICLP' 'LU'.

I always get confused betweeen 'OR' and 'AND'

My logic: Is it right? Is there a better way to write the code?

if i_ekko-bsart NE 'AB' or

i_ekko-bsart NE 'AN' or

i_ekko-bsart NE 'ICLP' or

i_ekko-bsart NE 'LU'.

MESSAGE E054(ZS) WITH 'Message out here'

endif.

Thank-You