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: 

Issue in Line Color

Former Member
0 Kudos

Hello Experts,

I wanted to write one row with yellow color.

I had used as

FORMAT INTENSIFIED COLOR COL_TOTAL ON.

WRITE:/ 'Hi',

/ 'Neha'.

FORMAT COLOR OFF.

But in output I want whole line should be colored instead of text.

Can anybody suggest me how we can do that?

Thanks,

Neha

1 ACCEPTED SOLUTION

MarcinPciak
Active Contributor
0 Kudos

...or like this


REPORT z_test1 LINE-SIZE 190.

FORMAT INTENSIFIED COLOR COL_TOTAL ON.
WRITE AT 1(sy-linsz) 'Hi'.
NEW-LINE.
WRITE AT 1(sy-linsz) 'Neha'.
FORMAT COLOR OFF.

Regards

Marcin

4 REPLIES 4

former_member386202
Active Contributor
0 Kudos

Hi,

Try like this

FORMAT ON.

WRITE:/ 'Hi',

/ 'Neha' color 3.

FORMAT OFF.

Regards,

Prashant

Former Member
0 Kudos

Hi,

Check the demo program

demo_list_format_color_2

Sujay

Former Member
0 Kudos

Check and run for testing


  FORMAT COLOR COL_TOTAL INTENSIFIED OFF.
  WRITE: /(138) 'TOTAL',sy-vline.
  FORMAT COLOR COL_NORMAL INTENSIFIED OFF.

MarcinPciak
Active Contributor
0 Kudos

...or like this


REPORT z_test1 LINE-SIZE 190.

FORMAT INTENSIFIED COLOR COL_TOTAL ON.
WRITE AT 1(sy-linsz) 'Hi'.
NEW-LINE.
WRITE AT 1(sy-linsz) 'Neha'.
FORMAT COLOR OFF.

Regards

Marcin