Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

IF/OR Statement Question?

How do I say the following in one IF stmt?

if i_ekko-bsart NE 'AB' .

if i_ekko-bsart NE 'AN'.

endif.

endif.

I've tried the following but logic doesn't seem to work the same? Thanks.

if ( i_ekko-bsart NE 'AB' ) or ( i_ekko-bsart NE 'AN' ).

if ( i_ekko-bsart NE 'AB' or i_ekko-bsart NE 'AN' ).

if i_ekko-bsart NE 'AB' or i_ekko-bsart NE 'AN'.

Tags:
Former Member
Former Member replied

if i_ekko-bsart NE 'AB' AND i_ekko-bsart NE 'AN'.

Use AND Operator and should work.

ashish

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question