Skip to Content
avatar image
Former Member

Removing the select all icon from ALV

Hi

I'm using CL_GUI_ALV_GRID to display an ALV grid. Can I get rid of the standard "select all" icon from the top left corner of the grid? I don't want the user to be able to use this icon, but can't see a way of removing it.

Regards

Phil

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 03, 2005 at 03:13 PM

    Hi Phil,

    Just searched the forum and got this piece of nformation:

    alv-grid-exclude-a-menu-button

    please check it out and let me know if it was useful.

    Regards,

    Jagath

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 31, 2013 at 10:45 AM

    Hi Phil,

    I also came across the same problem you mentioned.

    There are two ways of doing this-

    1. you dont want Icon but you want individual row selection-

                   in this you can use NO_HEADERS field in layout structure of LVC_S_LAYO.

                   so put this flag to true and you can get rid of "Select All" Icon.

    2. if you not at all want either icon or selection-

                   in this you can use NO_ROWMARKS field in layout structure of LVC_S_LAYO.

                   so put this flag to true.

    Regards,

    Neel

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 03, 2005 at 03:15 PM

    Hi Phil,

    Just searched the forum and got this piece of nformation:

    alv-grid-exclude-a-menu-button

    please check it out and let me know if it was useful.

    Regards,

    Jagath

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 04, 2005 at 10:49 AM

    Hi Phil

    That means you do not want the user to select multiple rows. Because letting the user to select multiple rows always gives him the opportunity to select all rows even without using the button you mentioned.

    Then you must set the "sel_mode" of the layout structure to "B" to make user select one row only.

    Regards

    *--Serdar https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 03, 2005 at 02:53 PM

    Hi Phil,

    You can pass the value CL_GUI_ALV_GRID=>MC_FC_SELECT_ALL to the IT_TOOLBAR_EXCLUDING parameter of the method SET_TABLE_FOR_FIRST_DISPLAY .

    Regards,

    Anand Mandalika.

    Add comment
    10|10000 characters needed characters exceeded