Application Development and Automation 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: 
Read only

formatting option

Former Member
0 Likes
629

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

1 ACCEPTED SOLUTION
Read only

Faaiez
Product and Topic Expert
Product and Topic Expert
0 Likes
602

Hi Madhu

If <amount> < 0.

WRITE amount COLOR COL_NEGATIVE.

endif.

Regards

5 REPLIES 5
Read only

Former Member
0 Likes
602

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

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
602

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

/

Read only

Former Member
0 Likes
602

loop at itab.

if itab-amnt lt 0.

format color <no for red>

endif.

write : / itab-amnt.

format color off.

endloop.

regards

shiba dutta

Read only

Faaiez
Product and Topic Expert
Product and Topic Expert
0 Likes
603

Hi Madhu

If <amount> < 0.

WRITE amount COLOR COL_NEGATIVE.

endif.

Regards

Read only

Former Member
0 Likes
602

Hello,

Do like this.


format reset.
IF lv_aMOUNT LT '0.000'.
 Write:/ lv_amount Color 6.
ENDIF.

VAsanth