<?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: ALV Select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-select/m-p/2451719#M549432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just skim the methods of the class CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i´m quite sure there should be a method select_all, deselect_all. or with some similar name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well if not, you gotta do it by hand. Loop at screen, and either set or remove the flag of the field selkz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2007 11:06:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-27T11:06:31Z</dc:date>
    <item>
      <title>ALV Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-select/m-p/2451717#M549430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys &lt;/P&gt;&lt;P&gt;My requirement is this &lt;/P&gt;&lt;P&gt;In my ALV  output,i created 2 buttons select and deselect,&lt;/P&gt;&lt;P&gt;When i select select all button,then all rows should be selected and deslect button all rows should be deselected,&lt;/P&gt;&lt;P&gt;Can anyone provide me how to proceed on that.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 11:01:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-select/m-p/2451717#M549430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T11:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-select/m-p/2451718#M549431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set the selection mode as Multi in your ALV. The select and deselect toggle button will come automatically. Why do you want to implement it separately?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 11:06:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-select/m-p/2451718#M549431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T11:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-select/m-p/2451719#M549432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just skim the methods of the class CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i´m quite sure there should be a method select_all, deselect_all. or with some similar name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well if not, you gotta do it by hand. Loop at screen, and either set or remove the flag of the field selkz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 11:06:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-select/m-p/2451719#M549432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T11:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-select/m-p/2451720#M549433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Can you eloborate on this plz??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 11:11:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-select/m-p/2451720#M549433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T11:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-select/m-p/2451721#M549434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you are using the old alv class CL_GUI_ALV_GRID, declare a variable for your layout of type lvc_s_layo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In lvc_s_layo, you have a field sel_mode. Set this to 'A' for multiple selection. Hope this helps. Let me know if you are using the new ALV cl_salv_table, it would be different then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points if it solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nithya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 11:14:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-select/m-p/2451721#M549434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T11:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-select/m-p/2451722#M549435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My code like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*object for custom container&lt;/P&gt;&lt;P&gt;  DATA : g_custom_container&lt;/P&gt;&lt;P&gt;         TYPE REF TO cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;*object for alv grid&lt;/P&gt;&lt;P&gt;         sap_grid&lt;/P&gt;&lt;P&gt;         TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;*layout for ALV grid&lt;/P&gt;&lt;P&gt;  DATA: g_layout TYPE lvc_s_layo,&lt;/P&gt;&lt;P&gt;        g_save   TYPE c,&lt;/P&gt;&lt;P&gt;        wa_fcat  TYPE lvc_s_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT g_custom_container&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   PARENT                      =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     container_name              = 'SUB_AREA'&lt;/P&gt;&lt;P&gt; CREATE OBJECT sap_grid&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     I_SHELLSTYLE      = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     I_LIFETIME        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         i_parent          = g_custom_container&lt;/P&gt;&lt;P&gt;CALL METHOD sap_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      I_BUFFER_ACTIVE               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      I_BYPASSING_BUFFER            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      I_CONSISTENCY_CHECK           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         i_structure_name             = 't_final'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      IS_VARIANT                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       i_save                         = g_save&lt;/P&gt;&lt;P&gt;       i_default                      = 'X'&lt;/P&gt;&lt;P&gt;       is_layout                      = g_layout&lt;/P&gt;&lt;P&gt; MODULE user_command_1200 INPUT.&lt;/P&gt;&lt;P&gt;    MOVE ok_code TO save_ok_code.&lt;/P&gt;&lt;P&gt;    CLEAR ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD cl_gui_cfw=&amp;gt;dispatch.&lt;/P&gt;&lt;P&gt;    CASE save_ok_code.&lt;/P&gt;&lt;P&gt;      WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;        CALL METHOD sap_grid-&amp;gt;check_changed_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; PERFORM grid_refresh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*on BACK leave program&lt;/P&gt;&lt;P&gt;      WHEN 'BACK'.&lt;/P&gt;&lt;P&gt;        CALL METHOD g_custom_container-&amp;gt;free.&lt;/P&gt;&lt;P&gt;        CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;        CLEAR g_custom_container.&lt;/P&gt;&lt;P&gt;        CLEAR sap_grid.&lt;/P&gt;&lt;P&gt;        LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 11:23:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-select/m-p/2451722#M549435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T11:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-select/m-p/2451723#M549436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before calling set_table_for_first_display, write g_layout-sel_mode = 'A'.&lt;/P&gt;&lt;P&gt;You will see a button on the top left corner of your ALV grid, which is for select all and deselect all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 11:29:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-select/m-p/2451723#M549436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T11:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-select/m-p/2451724#M549437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anyway iam getting that now also&lt;/P&gt;&lt;P&gt;i want to write in user command for my buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 11:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-select/m-p/2451724#M549437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T11:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-select/m-p/2451725#M549438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok! In the class cl_gui_alv_grid, you have a method set_selected_rows. Use that to set your rows as selected. You need to get the row count of the internal table that you have bound to the ALV table and pass each row index. Each row will get selected then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 12:01:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-select/m-p/2451725#M549438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T12:01:32Z</dc:date>
    </item>
  </channel>
</rss>

