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: 

Color text in table control

Former Member
0 Kudos

hi,

is it posiible to include colors to the rows in table control

3 REPLIES 3

Former Member
0 Kudos

With a Table Control, about the only way to change colors is to use screen flags like INTENSIFIED.

In your PBO routine, you would handle it where you do something like this.


  module TBLCLT_ZLMPERS_change_col_attr.   "<== Here for the Entire Column
  LOOP AT   wt_zlmpers
       INTO wt_zlmpers_rec
       WITH CONTROL tblclt_zlmpers
       CURSOR tblclt_zlmpers-current_line.
          module TBLCLT_ZLMPERS_change_field_attr  "<== Here for the single field.
  ENDLOOP.

If you want more control and more colors, you need to look into ALV OO

Former Member
0 Kudos

hi,

Check out the below related thread

Regards,

Santosh

Former Member
0 Kudos

Hi

try this

at flow logic of screen

PBO

loop at itab including sy-repid sy-dynnr.

module color_data.

endlloop.

form color_data.

*set color as requred

endform.

Aditya