Skip to Content
avatar image
Former Member

HELP WITH AND CONDTION

HI,

i use And statment and its not working

what i doing wrong ?

Regards

IF l_ffact NE '1' AND l_tfact NE '1' .

l_rate = l_tfact DIV l_ffact.

ENDIF.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 10, 2007 at 10:59 AM

    hi,

    do like this.

    IF (l_ffact NE '1' AND l_tfact NE '1' ).

    l_rate = l_tfact DIV l_ffact.

    ENDIF.

    rgds,

    bharat.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 10, 2007 at 10:59 AM

    Hi,

    Check this

    data : temp type i value '1',
           temp1 type i value '2'.
    
           if temp eq 1 and temp1 eq 2.
           write : temp.
           endif.

    *

    Thanks.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 10, 2007 at 11:01 AM

    Hi,

    As per your given syntax, when the <b>IF</b> condition is satisfied, the stmt. within <b>IF..ENDIF</b> is executed.

    Hope this resolves your query.

    Regards

    Nagaraj

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 10, 2007 at 11:04 AM

    this statement will work if u r condition will satisfy

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 10, 2007 at 11:14 AM

    Hi Tal,

    As per my understanding if you use AND it will check for both conditions. If your requirement is either one of them has to be satisfied use OR condition.

    If my understanding is not wrong try with OR condition.

    Regards,

    Ramakrishna kotha.

    Add comment
    10|10000 characters needed characters exceeded