Skip to Content
avatar image
Former Member

Double click functionality on ALV

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,

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 22, 2008 at 10:19 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

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