Skip to Content

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

Query regarding the usage of IF condition with OR in SAPScript

Hi All,

I am using an IF condition in main window of the sapscript.

I am writing it as

/: if &itab-fld1& ne 'f1' or &itab-fld2& ne 'f2' or &itab-fld3& ne 'f3'

call some include..

/:endif

Now, when i am testing it, during debugging, i found out that, the if condition is working fine for the first field and its not working for the remaining fields i.e., even though the second field condition is satisfied, the control is still coming inside the code and the include is getting called. The same is with checking the third field also. I am not able to understand why, I cehcked out the syntax for the if statement but its fine.

Can anybody please help out whats wrong.

Regards,

Priya

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question