12-19-2008 4:39 AM
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.
12-19-2008 4: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
12-19-2008 4: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
12-19-2008 4:43 AM
if itab-value_new = ' ' OR itab-value_old = ' '.
itab-chg = ' '.
endif.
12-19-2008 4: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.
12-19-2008 4: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.
12-19-2008 4:49 AM