‎2007 Jun 22 8:59 AM
Hi,
i want to display the amount field as red color when it is only less than 0 in normal list report. guide me.
thanks
Madhu
‎2007 Jun 22 9:05 AM
Hi Madhu
If <amount> < 0.
WRITE amount COLOR COL_NEGATIVE.
endif.
Regards
‎2007 Jun 22 9:01 AM
Hi,
If the Amount is less than 0 then you need to wrte the RED color
IF AMOUNT LT '0.000'
Write:/ Amount Color 6.
ENDIF.Regards
Sudheer
‎2007 Jun 22 9:04 AM
Hi,
Check if the value is <0 and then use the follwoing code
FORMAT COLOR = 6
WRITE: / value.
or
write value color 6.
Regards,
Sesh
/
‎2007 Jun 22 9:04 AM
loop at itab.
if itab-amnt lt 0.
format color <no for red>
endif.
write : / itab-amnt.
format color off.
endloop.
regards
shiba dutta
‎2007 Jun 22 9:05 AM
Hi Madhu
If <amount> < 0.
WRITE amount COLOR COL_NEGATIVE.
endif.
Regards
‎2007 Jun 22 9:07 AM
Hello,
Do like this.
format reset.
IF lv_aMOUNT LT '0.000'.
Write:/ lv_amount Color 6.
ENDIF.
VAsanth