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

ALV

Former Member
0 Likes
511

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..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
489

Hi there,

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,

Puneet

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..

3 REPLIES 3
Read only

Former Member
0 Likes
489

HI

simply select header text for the column.

Aditya

Read only

Former Member
0 Likes
489

hi,

use the link[http://saptechnical.com/Tutorials/ALV/ALVMainPage.htm]

this link has examples with screen shot

[http://yashtechiesabap.blogspot.com]---have simple examples

Reward if helpful

Regards,

priya.

Read only

Former Member
0 Likes
490

Hi there,

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,

Puneet