cancel
Showing results for 
Search instead for 
Did you mean: 

About selecting single column in a alv table.........

Former Member
0 Kudos

Hi Experts,

I need single column to be selected from a ALV table...selected in da sense to be highlighted....as it happens..by default for a row.....

I hope u understood my query...

Please help me out in this..

I know u all will surely help me...

Thks and Regards,

Runali.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Runali,

Get the reference to the column settings of your ALV Model. Then you can get the reference of each column by passing the column ID. There is a method set_selected_state in the column class, but that does not highlight the column as it does for a row. So what you can use is a cell design for a column that will highlight the column with a color or whatever.

lr_column = lr_column_settings->get_column( ID = id ).

lr_column->set_cell_design( preferred design ).

Hope this helps. Please award points if it solves your purpose.

Regards,

Nithya