Skip to Content
author's profile photo Former Member
Former Member

and or condition

please tell me what is to be added if i dont want the output as H or L if one of the value is blank(doesnot have value) in this.

if itab-value_new GT itab-value_old AND itab-value_old NE ' '.

itab-chg = 'H'.

else.

itab-chg = 'L'.

endif.

please advice the condition to put there. thanks in adv.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 04:41 AM

    Hi

    Do like this

    if itab-value_new GT itab-value_old.

    if itab-value_old NE ' '.

    itab-chg = 'H'.

    else.

    itab-chg = 'L'.

    endif.

    else.

    • Add new value here

    endif.

    Regards

    Aditya

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 19, 2008 at 04:43 AM
    if itab-value_new = ' ' OR itab-value_old = ' '.
    
    itab-chg = ' '.
    
    endif.
    
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 04:44 AM

    Hi,

    Try liek this.............

    IF itab-value_old NE ' '.

    if itab-value_new GT itab-value_old .

    itab-chg = 'H'.

    else.

    itab-chg = 'L'.

    endif.

    ELSE.

    itab_chg = 'Whatever u want'.

    Endif.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 04:46 AM
    if itab-value_new IS NOT INITIAL AND itab-value_old IS NOT INITIAL.
    if itab-value_new GT itab-value_old .
    
    itab-chg = 'H'.
    else.
    itab-chg = 'L'.
    endif.
    ENDIF.
    
    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.