<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Select all button in ALV container in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-all-button-in-alv-container/m-p/8084555#M1614785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know, there's no 'Select All' or 'Deselect All' buttons in an OO ALV Grid standard toolbar. However if you wanna add them, it is just as simple as using the event toolbar of the standard class CL_GUI_ALV_GRID&lt;/P&gt;&lt;P&gt;You just need to define an appropiate event_handler and add them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  TYPE-POOLS: icon.

  DATA: ls_toolbar TYPE stb_button.

  CLEAR ls_toolbar.
  MOVE 3 TO ls_toolbar-butn_type.
  MOVE ' ' TO ls_toolbar-disabled.
  APPEND ls_toolbar TO p_object-&amp;gt;mt_toolbar.

  CLEAR ls_toolbar.
  MOVE 0 TO ls_toolbar-butn_type.
  MOVE 'SEL_ALL' TO ls_toolbar-function.
  MOVE icon_select_all TO ls_toolbar-icon.
  MOVE 'Select All' TO ls_toolbar-quickinfo.
  MOVE ' ' TO ls_toolbar-disabled.
  APPEND ls_toolbar TO p_object-&amp;gt;mt_toolbar.

  CLEAR ls_toolbar.
  MOVE 3 TO ls_toolbar-butn_type.
  MOVE ' ' TO ls_toolbar-disabled.
  APPEND ls_toolbar TO p_object-&amp;gt;mt_toolbar.

  CLEAR ls_toolbar.
  MOVE 0 TO ls_toolbar-butn_type.
  MOVE 'DES_ALL' TO ls_toolbar-function.
  MOVE icon_deselect_all TO ls_toolbar-icon.
  MOVE 'Deselect All'' TO ls_toolbar-quickinfo.
  MOVE ' ' TO ls_toolbar-disabled.
  APPEND ls_toolbar TO p_object-&amp;gt;mt_toolbar.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Aug 2011 13:33:23 GMT</pubDate>
    <dc:creator>former_member209703</dc:creator>
    <dc:date>2011-08-10T13:33:23Z</dc:date>
    <item>
      <title>Select all button in ALV container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-all-button-in-alv-container/m-p/8084554#M1614784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to add a Select All and Deselect All button in an ALV container and not in the PF-STATUS. The buttons should appear in the same line as other buttons like Refresh, Sort, etc.  I also want to add them in the exclude table later on for hiding the same.&lt;/P&gt;&lt;P&gt;I know it is possible to add user defined buttons with the same functionality. However, I want to know if there is a standard way of adding the same. Is the standard Select All button not present for an AVL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Romil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 13:18:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-all-button-in-alv-container/m-p/8084554#M1614784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-10T13:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Select all button in ALV container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-all-button-in-alv-container/m-p/8084555#M1614785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know, there's no 'Select All' or 'Deselect All' buttons in an OO ALV Grid standard toolbar. However if you wanna add them, it is just as simple as using the event toolbar of the standard class CL_GUI_ALV_GRID&lt;/P&gt;&lt;P&gt;You just need to define an appropiate event_handler and add them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  TYPE-POOLS: icon.

  DATA: ls_toolbar TYPE stb_button.

  CLEAR ls_toolbar.
  MOVE 3 TO ls_toolbar-butn_type.
  MOVE ' ' TO ls_toolbar-disabled.
  APPEND ls_toolbar TO p_object-&amp;gt;mt_toolbar.

  CLEAR ls_toolbar.
  MOVE 0 TO ls_toolbar-butn_type.
  MOVE 'SEL_ALL' TO ls_toolbar-function.
  MOVE icon_select_all TO ls_toolbar-icon.
  MOVE 'Select All' TO ls_toolbar-quickinfo.
  MOVE ' ' TO ls_toolbar-disabled.
  APPEND ls_toolbar TO p_object-&amp;gt;mt_toolbar.

  CLEAR ls_toolbar.
  MOVE 3 TO ls_toolbar-butn_type.
  MOVE ' ' TO ls_toolbar-disabled.
  APPEND ls_toolbar TO p_object-&amp;gt;mt_toolbar.

  CLEAR ls_toolbar.
  MOVE 0 TO ls_toolbar-butn_type.
  MOVE 'DES_ALL' TO ls_toolbar-function.
  MOVE icon_deselect_all TO ls_toolbar-icon.
  MOVE 'Deselect All'' TO ls_toolbar-quickinfo.
  MOVE ' ' TO ls_toolbar-disabled.
  APPEND ls_toolbar TO p_object-&amp;gt;mt_toolbar.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 13:33:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-all-button-in-alv-container/m-p/8084555#M1614785</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-08-10T13:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Select all button in ALV container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-all-button-in-alv-container/m-p/8084556#M1614786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to check in below link: &lt;/P&gt;&lt;P&gt;/thread/492162 &lt;B&gt;[original link is broken]&lt;/B&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 14:15:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-all-button-in-alv-container/m-p/8084556#M1614786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-10T14:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Select all button in ALV container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-all-button-in-alv-container/m-p/8084557#M1614787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! This was the answer i was looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 04:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-all-button-in-alv-container/m-p/8084557#M1614787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-06T04:46:18Z</dc:date>
    </item>
  </channel>
</rss>

