cancel
Showing results for 
Search instead for 
Did you mean: 

SapScript IF Control Cmd failing - currency data

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Here is how we solved the failure:

IF &RF140-WRSHB+1(C2)& = '-'

Former Member
0 Kudos

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

Former Member
0 Kudos

you can DEFINE loval variable in script like /: DEFINE &var& = '0.00' and use the GT(greatethan)

like IF &RF140-WRSHB& GT var.'