<?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 ALV Grid - multiple selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024292#M81979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created an ALV Grid the oop way.  I am trying to get the selection buttons on each row to stay selected as I do not want to select individual lines while holding down Ctrl.  Sel_mode in my layout table is set to A. I am using event button_click.  I have used get_selected_rows in the PAI and set_selected_rows in the PBO and still I cannot get the lines to stay selected when I selected a different line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest how I can do this?&lt;/P&gt;&lt;P&gt;Any suggestions would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2005 12:38:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-18T12:38:17Z</dc:date>
    <item>
      <title>ALV Grid - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024292#M81979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created an ALV Grid the oop way.  I am trying to get the selection buttons on each row to stay selected as I do not want to select individual lines while holding down Ctrl.  Sel_mode in my layout table is set to A. I am using event button_click.  I have used get_selected_rows in the PAI and set_selected_rows in the PBO and still I cannot get the lines to stay selected when I selected a different line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest how I can do this?&lt;/P&gt;&lt;P&gt;Any suggestions would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 12:38:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024292#M81979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T12:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024293#M81980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try any of the other values for SEL_MODE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;'A'
 Column and row selection

(see graphic)
 Multiple columns 
Multiple rows
 The user selects the rows through pushbuttons at the left border of the grid control.
 
'B'
 Simple selection, list box
 Multiple columns
Multiple rows
   
'C'
 Multiple selection, list box
 Multiple columns
Multiple rows
   
'D'
 Cell selection
 Multiple columns
Multiple rows 
Any cells
 The user selects the rows through pushbuttons at the left border of the grid control&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 12:43:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024293#M81980</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-10-18T12:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024294#M81981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare&lt;/P&gt;&lt;P&gt;data: gs_layout   TYPE lvc_s_layo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gs_layout-sel_mode = 'A'. multiple row &amp;amp; column selection&lt;/P&gt;&lt;P&gt;  or you can have&lt;/P&gt;&lt;P&gt;gs_layout-sel_mode = 'C'. multiple selection listbox (multiple row &amp;amp; column selection)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;               is_layout      = gs_layout&lt;/P&gt;&lt;P&gt;               (other export parameter)&lt;/P&gt;&lt;P&gt;            CHANGING&lt;/P&gt;&lt;P&gt;               it_outtab =  (your itab)&lt;/P&gt;&lt;P&gt;               it_fieldcatalog = (your fieldcat).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 12:47:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024294#M81981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T12:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024295#M81982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I have tried the others.  What I want is upon pressing the selection button on the row, this continues to be selected until I process those lines or clear the selections. There is no checkbox field in my ALV structure so could this be my problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 12:59:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024295#M81982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T12:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024296#M81983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No,  not have a checkbox in the row is not the problem.  But using the checkbox in the row would probably solve your problem.  The functionality built in for selecting rows is pretty standard.   You have to hold down control to do muliple selection when skipping rows.  This is how the gui works.   Have checkboxes in your ALV grid for row selection would solved your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 13:02:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024296#M81983</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-10-18T13:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024297#M81984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From SAP HELP PAGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/ef/a2e9eff88311d2b48d006094192fe3/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/ef/a2e9eff88311d2b48d006094192fe3/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt; Mode&lt;/P&gt;&lt;P&gt; Possible selections&lt;/P&gt;&lt;P&gt; Comment&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SPACE&lt;/P&gt;&lt;P&gt; same as 'B'&lt;/P&gt;&lt;P&gt; see 'B'&lt;/P&gt;&lt;P&gt; Default setting&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;'A'&lt;/P&gt;&lt;P&gt; Column and row selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(see graphic)&lt;/P&gt;&lt;P&gt; Multiple columns &lt;/P&gt;&lt;P&gt;Multiple rows&lt;/P&gt;&lt;P&gt; The user selects the rows through pushbuttons at the left border of the grid control.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;'B'&lt;/P&gt;&lt;P&gt; Simple selection, list box&lt;/P&gt;&lt;P&gt; Multiple columns&lt;/P&gt;&lt;P&gt;Multiple rows&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;'C'&lt;/P&gt;&lt;P&gt; Multiple selection, list box&lt;/P&gt;&lt;P&gt; Multiple columns&lt;/P&gt;&lt;P&gt;Multiple rows&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;'D'&lt;/P&gt;&lt;P&gt; Cell selection&lt;/P&gt;&lt;P&gt; Multiple columns&lt;/P&gt;&lt;P&gt;Multiple rows &lt;/P&gt;&lt;P&gt;Any cells&lt;/P&gt;&lt;P&gt; The user selects the rows through pushbuttons at the left border of the grid control.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CHERZ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 13:12:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024297#M81984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T13:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024298#M81985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could people please stop pasting information about the various A, B,C,D selection modes.  I understand all that.  I have used all that. This is being able to single click on say line 1, then line 3 and line 1 still being selected without having to use the Ctrl button to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Larissa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 13:43:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024298#M81985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T13:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024299#M81986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, dupplicated post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alejandro Bindi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 18:16:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024299#M81986</guid>
      <dc:creator>alejandro_bindi</dc:creator>
      <dc:date>2007-05-29T18:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024300#M81987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm in exactly the same situation with an OO ALV. Is it possible to do what Larissa asked for? I would prefer using standard ALV selection without a checkbox (sel_mode = 'A').&lt;/P&gt;&lt;P&gt;You can get an example of the functionality I want anytime you get asked to activate several inactive programs at once: you can select some of them, without pressing Ctrl. But that's implemented with a Table control instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or the only similar option is to implement an additional field with checkbox as Rich suggests?&lt;/P&gt;&lt;P&gt;In that case, how do you handle selection with checkbox? I've already declared an additional field as C, and loaded the fieldcatalog accordingly:&lt;/P&gt;&lt;P&gt;    lwa_fieldcat-checkbox  = k_true.&lt;/P&gt;&lt;P&gt;    lwa_fieldcat-edit      = k_true.&lt;/P&gt;&lt;P&gt;But the clickings in the checkboxes don't get reflected in the internal table behind the ALV.&lt;/P&gt;&lt;P&gt;Should I implement an event handler? Can you please help me out with this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: Standard example program BCALV_EDIT_05 has this functionality using checkboxes. So post only if you know how to do what Larissa asked for in the first post.&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 18:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024300#M81987</guid>
      <dc:creator>alejandro_bindi</dc:creator>
      <dc:date>2007-05-29T18:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024301#M81988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Larissa Maryniuk,&lt;/P&gt;&lt;P&gt;      I dont think button_click event is triggered once U select a row. So try to provide a field like button as the 1st field and when U click on u can use Ur previous logic of using the button_click event and in it U can set the rows as selected using set_selected_rows.One thing I am not able to understand if this happens continuously the when should the deselection happen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 05:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-multiple-selection/m-p/1024301#M81988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T05:55:53Z</dc:date>
    </item>
  </channel>
</rss>

