cancel
Showing results for 
Search instead for 
Did you mean: 

Double click functionality on ALV

Former Member
0 Kudos

Hi Experts,

Do we have double click functionality on ALV. My requirement is, when user double clicks on alv, I want to call another view which has the detailed information for that line. So definately I need the line info also where user has double clicked.

Thanks,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I dont know about the Double click functionality but you can do it in alternative way.

1) Create 1st view and assign it to 1st window(For initial screen).

- provide Event OnAction Functionality

Once you click on this event call the 2nd View( attach this view in 2nd window)

with detailed information as well as information you wanted from the first screen.

Thanks,

Sree.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Sorry, no double click event for the ALV. Consider using the LeadSelection or placing a button or linkToAction in the row.

Former Member
0 Kudos

I am going to close the thread. Double Click on ALV is not possible but there are other ways around, like Thomas has mentioned in his reply.

Thanks,

adil_gndz
Explorer
0 Kudos

Hi Thomas,

How can i give a link to a row of alv?

Thanks

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You can't make any entire row a link directly. You can however change the cell editor one column at a time and turn the field into a LinkToAction. I suppose if you wanted you could perform this operation on each column in the table.

Here is some sample code:

data: l_ref_cmp_usage type ref to if_wd_component_usage.
  l_ref_cmp_usage =   wd_this->wd_cpuse_alv_basic( ).
  if l_ref_cmp_usage->has_active_component( ) is initial.
    l_ref_cmp_usage->create_component( ).
  endif.

  data l_salv_wd_table type ref to iwci_salv_wd_table.
  l_salv_wd_table = wd_this->wd_cpifc_alv_basic( ).
  data l_table type ref to cl_salv_wd_config_table.
  l_table = l_salv_wd_table->get_model( ).
  data l_column type ref to cl_salv_wd_column.

 data linkview type ref to cl_salv_wd_uie_link_to_action.
  l_column = l_table->if_salv_wd_column_settings~get_column( 'ADD_PARTICIPANTS' ).
  create object linkview.
  linkview->set_text_fieldname( 'ADD_PARTICIPANTS' ).
  l_column->set_cell_editor( linkview ).