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

colored text on screen?

Former Member
0 Likes
1,905

hi,

how to write colorfull text on screen?

regards

deepak

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,713

I think this is not possible.

Vasanth

hi,

how to write colorfull text on screen?

regards

deepak

5 REPLIES 5
Read only

Former Member
0 Likes
1,714

I think this is not possible.

Vasanth

Read only

0 Likes
1,713

When you write INTESIFY = 1 in LOOP AT SCREEN. Then Blue clour text will appear if the text box in non edit mode.

If the text box is in edit mode then RED colour will appear.

Read only

Former Member
0 Likes
1,713

Hi

You can assign COLOR for output fields in the reports

Where as for Screen fields we can't assign different colors.

we can make intensified or not.

Reward points for useful Answers

Regards

Anji

Read only

Former Member
0 Likes
1,713

Hi,

The options COLOR, INTENSIFIED, and INVERSE of the FORMAT statement influence the

colors of the output list.

To set colors in the program, use:

Syntax

FORMAT COLOR <n> [ON] INTENSIFIED [ON|OFF] INVERSE [ON|OFF].

To set colors at runtime, use:

Syntax

FORMAT COLOR = <c> INTENSIFIED = <int> INVERSE = <inv>.

Ex.

REPORT demo_list_format_color_1.

DATA i TYPE i VALUE 0.

DATA col(15) TYPE c.

WHILE i < 8.

CASE i.

WHEN 0. col = 'COL_BACKGROUND '.

WHEN 1. col = 'COL_HEADING '.

WHEN 2. col = 'COL_NORMAL '.

WHEN 3. col = 'COL_TOTAL '.

WHEN 4. col = 'COL_KEY '.

WHEN 5. col = 'COL_POSITIVE '.

WHEN 6. col = 'COL_NEGATIVE '.

WHEN 7. col = 'COL_GROUP '.

ENDCASE.

FORMAT INTENSIFIED COLOR = i.

WRITE: /(4) i, AT 7 sy-vline,

col, sy-vline,

col INTENSIFIED OFF, sy-vline,

col INVERSE.

i = i + 1.

ENDWHILE.

Regards,

Bhaskar

Read only

Former Member
0 Likes
1,713

hi,

<u>follow this synatax .</u>

<b>WRITE:/ <var> COLOR <n>. (here n = 1 to 7)</b>

the above statement used for printing the single variable in color format.

<b>FORMAT COLOR <n> [ON] INTENSIFIED [ON|OFF] INVERSE [ON|OFF].</b>

loop at itab.

write:/ var1,

var2.

endlop.

this statement used to print all the variables in color fromat.

<n> <c> Color Intended for

OFF or COL_BACKGROUND 0 depends on GUI background

1 or COL_HEADING 1 grey-blue headers

2 or COL_NORMAL 2 light grey list bodies

3 or COL_TOTAL 3 yellow totals

4 or COL_KEY 4 blue-green key columns

5 or COL_POSITIVE 5 green positive threshold value

6 or COL_NEGATIVE 6 red negative threshold value

7 or COL_GROUP 7 violet Control levels

The default setting is COLOR OFF.

regards,

Ashokreddy.

Message was edited by:

Ashok Reddy