Skip to Content
avatar image
-2
Former Member

How to remove the Multiple selection button in Alv Grid ?

Hi ,

Can anyone tell how to remove the select all button in oo alv grid..

I have tried various things and did R&D ,but could not get the required result..

Please find the attachment ..

Regards,

Rohan

image.png (17.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Using CL_GUI_ALV_GRID, CL_SALV_TABLE, or anything else?

  • Former Member Sandra Rossi

    Hi Sandra,

    Thank you for reply..

    I have used CL_GUI_ALV_GRID for displaying the grid..so that is the reason why that SELECT ALL button is coming defaultly..Now I need to hide or remove it..Please suggest is there any way..

    Regards,

    Rohan

  • Get RSS Feed

4 Answers

  • Jan 09, 2017 at 06:59 AM

    If you are not able in your version to disable the function selet all, try to handle event before_user_command, there 'intercept' this command e_ucomm = cl_gui_alv_grid=>mc_fc_select_all, there reset the function code with mygrid->set_user_command( i_ucomm = space ).

    Regards,
    Raymond

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 07, 2017 at 10:41 AM

    I guess this button is present only when the layout is setup to allow selecting several lines at a time. I think the default behavior is maximum one line, but anyway, to do it:

    Via CL_GUI_ALV_GRID, set this value via the layout : LVC_S_LAYO-SEL_MODE = 'B'

    Via CL_SALV_TABLE, use lo_table->get_selections( )->set_selection_mode( IF_SALV_C_SELECTION_MODE=>SINGLE ).

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 09, 2017 at 06:52 AM

    Hi,

    Could you please share the screen shot of your ALV Grid Display Output.

    Thanks ,

    Vamsi.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 09, 2017 at 06:57 AM

    Hi,

    Actually in your class, method-- CL_GUI_ALV_Grid=>Set_table_for_first_Display ...We have a parameter like IT_TOOLBAR_EXCLUDING there you can pass what ever you want to hide then it will be disappear as per you mention FCODE over there in the above Parameter IT_TOOLBAR_Excluding.

    Hope it would be helpful for your problem...

    Thanks,

    Vamsi

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Vamsi,

      If i wanted to remove the tool bar icons ,then i need to populate that parameter..

      I want to remove the Select All icon which is deputed into ALV grid..Please check the above image which i have marked..

      Regards,

      Rohan