cancel
Showing results for 
Search instead for 
Did you mean: 

wda alv coloumn header settings

Former Member
0 Kudos

Hi All,

I am using ALV table display how to remove auto lead selection???

2) can i change alv column header alignment and colour???

Can any doby give me suggesions.

Thanks&Regards

Revathi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi suman,

Thank you for u r reply.

by using set_selection_mode( none) we cant select any row.

but i want to select the row. but i dont want to see automatically( i dodnt want default selection ).

when ever i will select the row then only it should take that row as lead selected.

Thanks

revathi

Former Member
0 Kudos

Hi revathi,

In the context node itself u can remove the lead selection.

The node which is mapped to that alv will have a property, initialization lead selection. you have to uncheck that checkbox.

so that there will not be any default lead selection.

Regards,

Arun.

Former Member
0 Kudos

Hi Revathi,

These are the possible values you can pass to my previous code.

Constant Value Selection Mode

AUTO '00' Automatic

SINGLE '02' Single selection with lead selection

MULTI '04' Multiple selection with lead selection

NONE '06' No selection

SINGLENOLEAD '07' Single selection without lead selection

MULTINOLEAD '08' Multiple selection without lead selection

for single selection

value->IFSALV_WD_TABLE_SETTINGS~SET_SELECTION_MODE( '02' ).

Thanks

Suman

Edited by: suman kumar chinnam on Sep 8, 2008 9:54 AM

Edited by: suman kumar chinnam on Sep 8, 2008 9:55 AM

Answers (1)

Answers (1)

Former Member
0 Kudos

check this code to remove the Lead selecetion...

*Remove Lead selection

l_value->IF_SALV_WD_TABLE_SETTINGS~SET_SELECTION_MODE(

CL_WD_TABLE=>E_SELECTION_MODE-NONE ).

I think we cann't change the alignment of the header as well as color.You can add any text and images to the header like...

*Create Header

data: l_header type ref to cl_salv_wd_header,

str type string.

*Add Text and Image to the Header

l_header = l_value->if_salv_wd_table_settings~create_header( ).

str = 'Flights Details'.

l_header->set_text( value = str ).

l_header->set_image_source( value = 'ICON_FLIGHT' ).

Thanks

Suman

Edited by: suman kumar chinnam on Sep 8, 2008 8:06 AM