<?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 Grid Single Row Selection Only in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-single-row-selection-only/m-p/1925390#M384073</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;PRE&gt;&lt;CODE&gt;DATA:
* Internal table for indexes of selected rows
gi_index_rows TYPE lvc_t_row,
* Information about 1 row
g_selected_row LIKE lvc_s_row.

  CALL METHOD go_grid-&amp;gt;get_selected_rows
    IMPORTING
      et_index_rows = gi_index_rows.
  DESCRIBE TABLE gi_index_rows LINES l_lines.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the L_Lines will contain the number of rows selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Feb 2007 17:49:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-16T17:49:22Z</dc:date>
    <item>
      <title>ALV Grid Single Row Selection Only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-single-row-selection-only/m-p/1925389#M384072</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;I have a requirement to select a single row in an ALV grid using class &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with   layout-sel_mode   = 'B'  its not working, and don't want to use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call method g_grid-&amp;gt;get_selected_rows&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      et_row_no = lt_row_no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and check for number of rows and giving error message " select only one row".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to tackle this issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 17:30:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-single-row-selection-only/m-p/1925389#M384072</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-02-16T17:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid Single Row Selection Only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-single-row-selection-only/m-p/1925390#M384073</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;PRE&gt;&lt;CODE&gt;DATA:
* Internal table for indexes of selected rows
gi_index_rows TYPE lvc_t_row,
* Information about 1 row
g_selected_row LIKE lvc_s_row.

  CALL METHOD go_grid-&amp;gt;get_selected_rows
    IMPORTING
      et_index_rows = gi_index_rows.
  DESCRIBE TABLE gi_index_rows LINES l_lines.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the L_Lines will contain the number of rows selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 17:49:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-single-row-selection-only/m-p/1925390#M384073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T17:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid Single Row Selection Only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-single-row-selection-only/m-p/1925391#M384074</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;i think its not possible to restrict the selection to one row..with the method..&lt;/P&gt;&lt;P&gt;however in addition to the above code given by sudheer...description of&lt;/P&gt;&lt;P&gt;itab lines..u can flag en error msg stating the user to select only one row..&lt;/P&gt;&lt;P&gt;hope this helps u a bit,&lt;/P&gt;&lt;P&gt;all the best,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sampath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;mark helpful answers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 17:55:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-single-row-selection-only/m-p/1925391#M384074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T17:55:30Z</dc:date>
    </item>
  </channel>
</rss>

