Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Reason for NOT

Former Member
0 Kudos

Does someone know why we normally use:

IF NOT field IS INITIAL.

and can we use:

IF field IS NOT INITIAL.

since this produce same result.

Is there any documentation state about that?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Both will result same..

One simple difference is ....

after IS NOT you can't give a logical experession(condition)..

you should use only like...

IS NOT INITIAL...

IS NOT ASSIGNED....

IS NOT REQUESTED..

IS NOT SUPPLIED..

IS NOT BOUND..

But in the case of NOT...you can use logical expression....

NOT A>B.

NOT A>1200..

NOT FIELD IS INTIAL..

HOPE YOU UNDERSTAND THIS BEHAVIOUR NOW...

7 REPLIES 7

Former Member
0 Kudos

Both are correct syntax and both will work.

Former Member
0 Kudos

Hi,

Both are same..and you are correct..both produce the same result

Thanks

Naren

Former Member
0 Kudos

Both will result same..

One simple difference is ....

after IS NOT you can't give a logical experession(condition)..

you should use only like...

IS NOT INITIAL...

IS NOT ASSIGNED....

IS NOT REQUESTED..

IS NOT SUPPLIED..

IS NOT BOUND..

But in the case of NOT...you can use logical expression....

NOT A>B.

NOT A>1200..

NOT FIELD IS INTIAL..

HOPE YOU UNDERSTAND THIS BEHAVIOUR NOW...

Former Member
0 Kudos

hi,

they are two ways of checking whether the field is checked or not....

both syntax gives the same output since they mean the same...

<b>reward if useful.</b>

regards,

Vinod Samuel.

Former Member
0 Kudos

Hi,

Both the statements produce the same result.

Regards,

Anju

former_member189059
Active Contributor
0 Kudos

Currently both methods will work, however, i think in R/3 4.6 only the 'IF NOT field IS INITIAL.' works

Now SAP has made it easier to understand by allowing the other method, but still keeps the first method to ensure compatibility with older systems

0 Kudos

yup, just tested it in 4.6c

IF field IS NOT INITIAL.

gives the following error

Incorrect logical expression: Comparison / SELECT-OPTION can only be

followed by "AND", "OR" or ")".