on 09-01-2009 2:37 PM
This IF control is failing: IF &RF140-WRSHB& < ''0.00'
The condition is always evaluating true.
The datatype of wrshb is currency. Can anyone suggest a way to test for a negative currency?
Edited by: Patsy C Fields on Sep 1, 2009 3:37 PM
Here is how we solved the failure:
IF &RF140-WRSHB+1(C2)& = '-'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
Check u r System --->own Data how the Decimal Notation is maintained.. or in SU3 Tcode...
= EQ equal to
< LT less than
> GT greater than
<= LE less than or equal to
>= GE greater than or equal to
<> NE not equal to
And never hardcode, use a define a local variable
Surya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can DEFINE loval variable in script like /: DEFINE &var& = '0.00' and use the GT(greatethan)
like IF &RF140-WRSHB& GT var.'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.