cancel
Showing results for 
Search instead for 
Did you mean: 

Removing the select all icon from ALV

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Phil,

Just searched the forum and got this piece of nformation:

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

Regards,

Jagath

Answers (4)

Answers (4)

NeeleshJ
Advisor
Advisor

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

ssimsekler
Active Contributor
0 Kudos

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 <a href="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 ]</a>

Former Member
0 Kudos

In the first instance I wanted to be able to make certain rows 'greyed out' ie non-selectable but I couldn't find a way to do this. I do want the user to be able to select multiple rows but not have an easy way of selecting all the rows (as this would include all the rows I wanted to exlude). I will go down this route though and add a couple of buttons to the toolbar - unless you can adivese me how to make certain rows of an alv non selectable?

cheers

ssimsekler
Active Contributor
0 Kudos

Hi Phil

As far as I know there is no way to make particular rows selectable and some others not. Selection mode applies to the whole list. And as I mentioned earlier, giving the user multiple select option, you will always, even easy or not, give him the possibility to select all rows.

Regards

*--Serdar <a href="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 ]</a>

Former Member
0 Kudos

Okay, thanks for your help on this.

Former Member
0 Kudos

Hi Phil,

Just searched the forum and got this piece of nformation:

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

Regards,

Jagath

Former Member
0 Kudos

hi,

Thanks, for finding a related thread. I tried allsorts but couldnt fine one. However it still doesn't do the trick.

athavanraja
Active Contributor
0 Kudos

if you right click on the icon (select all on the top left corner of the gird) you have few options, you have exclude all of them to get rid of the icon.

Regards

Raja

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thanks for that. However I have that in and it doesn't seem to have worked...?

Former Member
0 Kudos

ps - it's not actually on the toolbar, it's directly above the selector buttons on the left side.