Skip to Content
avatar image
Former Member

CL_SALV_TABLE - T_COLOR column ignored

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( )?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 12, 2016 at 09:26 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded