cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to select any row(s) in table/ALV

Former Member
0 Kudos

Hi ,

I am having a problem while selecting a row in a table/ALV.

I am displaying data in a table which is NOT set to 'Initialize lead selection' in the context.When it is displayed and I try to select a row the row does not get selected(highlighted) in the view.

However,I am able to perform tasks on 'Onselect' event on the rows.Just that its not getting highlighted neither in table nor in ALV.

What could be the reason for this ? I do not want the context element to be set as 'Initialize lead selection' as that would highlight the first line of the table when the view is rendered first time.

Thanks for your help,

Sandip.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

try this code for setting the ALV rows selectable:

data: l_value type ref to cl_salv_wd_config_table,

l_ref_interfacecontroller type ref to iwci_salv_wd_table.

l_ref_interfacecontroller = wd_this->wd_cpifc_yourcontextnode( ).

l_value = l_ref_interfacecontroller->get_model( ).

call method l_value->if_salv_wd_table_settings~set_row_selectable

exporting

value = abap_true.

Best Regards

Ingmar

Former Member
0 Kudos

hi sandip,

Try this method

lo_table_sett TYPE REF TO if_salv_wd_table_settings.

lo_config_tab TYPE REF TO cl_salv_wd_config_table.

lo_config_tab = lo_ref_interface_controller->get_model( ).

lo_table_sett ?= lo_config_tab.

lo_table_sett ->SET_SELECTION_MODE( value ).

value- '00' for auto

'02' for single

'04' for multi

'06' for none

'07' for singleNolead

'08' for multi Nolead

Regards,

janakiram

Former Member
0 Kudos

+

Former Member
0 Kudos

hi sandip,

set selection property of the node to 0 to n and check..

if u still face the problem let me know

Regards,

janakiram

Former Member
0 Kudos

No it did not help.

Any other possibilities ?