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

Using color statement

Former Member
0 Likes
554

Hi All,

I have one internal table , in which i have only two fields of type char15.

I want to have the contents of first field in black color (by default it is black) and corresponding contents of second field in Red color.

Please help me in solving it such that second field contents are displayed in Red color on output screen.

We can use color 6 inverse on for red color text.but how to insert entries in table in red color or display them in red color.

3 REPLIES 3
Read only

Former Member
0 Likes
530

Hi

If you are using a table control on a screen you can use INTESIFIED Attribute

loop at screen.

if screen-name = 'SECON_FIELD'.

screen-intensified = 1.

modify screen.

endif.

endloop.

Please take the help of RSDEMO02

Best Regards

Ramchander Rao.K

Read only

Former Member
0 Likes
530

Hi

Be more clear about your requirement. where exactly you want the color ? which kind of screen..

Check out below code..

REPORT ZTEST.

WRITE : SY-DATUM COLOR 6 INVERSE ON.

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

Read only

Former Member
0 Likes
530

Hi,

just go through this link

hope this will help you.

Regards,

Anand