Skip to Content
author's profile photo Former Member
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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    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

    Add a comment
    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    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.

    please close the thread if solved.

    hope this will help

    Ashwani

    Message was edited by:

    Ashwani Mittal

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.