Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

and or condition

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

GauthamV
Active Contributor
0 Kudos

if itab-value_new = ' ' OR itab-value_old = ' '.

itab-chg = ' '.

endif.

Former Member
0 Kudos

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.

Former Member
0 Kudos
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.

0 Kudos

This message was moderated.