Skip to Content
0

CL_SALV_TABLE - T_COLOR column ignored

Nov 12, 2016 at 07:45 AM

98

avatar image

I am using CL_SALV_TABLE. My internal table has a column named t_color TYPE lvc_t_scol. When I call the Factory method the columns reference is created. It contains all the fields of my internal table except for t_color. I suppose that this is related to the table type. However having a t_color type lvc_t_scol is supposed to work according to the examples I found around the internet for colouring entire rows.

Why is my T_COLOR column missing in lo_alv->get_columns( )?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sandra Rossi Nov 12, 2016 at 09:26 AM
0

If you want to use a column of type lvc_t_scol, i.e. for colorizing individual cells, you have to use the method SET_COLOR_COLUMN of CL_SALV_COLUMNS_LIST. So you don't need to get this technical column via GET_COLUMNS.

Share
10 |10000 characters needed characters left characters exceeded