Former Member

IF lw_rec1-inv_tax_amt <> 0.

Hi, Dear all,

IF lw_rec1-inv_tax_amt <> 0.

Do you know why above statment --

true: when lw_rec1-inv_tax_amt > and equal to 50 cents,

false: when lw_rec1-inv_tax_amt < 50 cents?

How to make it true also when lw_rec1-inv_tax_amt < 50 cents?

The definition of lw_rec1-inv_tax_amt is type of <b>e1eds01-summe</b>.

Thank you very much!

Helen

10|10000 characters needed characters exceeded

Related questions

Posted on Feb 28, 2007 at 07:34 PM

Hi Helen,

Please try to declare like this.

data: wa_amt type p decimals 2.

wa_amt = lw_rec1-inv_tax_amt.

Regards,

Ferry Lianto

10|10000 characters needed characters exceeded
• Former Member
Posted on Feb 28, 2007 at 07:03 PM

try using lw_rec1-inv_tax_amt NE 0 ?

by d way wat is the data type of summe? is it char ?

ifits char then use '0'

Thanks

Ashwani

10|10000 characters needed characters exceeded
• Posted on Feb 28, 2007 at 07:07 PM

Hi,

e1eds01-summe is character 18.

Perhaps you do something like this.

```data: wa_amt type i.

wa_amt = lw_rec1-inv_tax_amt.

if wa_amt < 0.50.
...
else.
...
endif.
```

Regards,

Ferry Lianto

10|10000 characters needed characters exceeded
• Suresh Datti Former Member

How are you filling the lw_rec1 structure? It looks like the amount is getting rounded to nearest (dollar) even before it gets to this place. try to use the ROUND function to round the amount to 2 decimals & then move it to lw_rec1-inv_tax_amt.

~Suresh

• Former Member
Posted on Feb 28, 2007 at 07:21 PM

Hey hii

u can use

IF lw_rec1-inv_tax_amt LT 0 OR lw_rec1-inv_tax_amt GT 0.

do smthing

ENDIF.

hope this will help

Ashwani

Message was edited by:

Ashwani Mittal