<?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 Please select entry Error with cl_gui_alv_grid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-select-entry-error-with-cl-gui-alv-grid/m-p/12759496#M2022420</link>
    <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
  &lt;P&gt;I try to select a entry of a table using the class "cl_gui_alv_grid". When I select the first entry and push a button and go through my code, working with the entry, it works perfectly fine. But the second time it wont select the entry or rather the table lt_selected_rows is empty. Heres my code: &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;CALL METHOD grid1-&amp;gt;get_selected_rows&lt;BR /&gt;    IMPORTING&lt;BR /&gt;      et_index_rows = lt_selected_rows.&lt;BR /&gt;  CASE lines( lt_selected_rows ).&lt;BR /&gt;    WHEN 0.&lt;BR /&gt;      MESSAGE 'Please select entry' TYPE 'I' DISPLAY LIKE 'E'.&lt;BR /&gt;    WHEN 1.&lt;BR /&gt;      READ TABLE gt_output INTO ls_output INDEX lt_selected_rows[ 1 ]-index.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    WHEN OTHERS.&lt;BR /&gt;      MESSAGE 'Please select one entry' TYPE 'I' DISPLAY LIKE 'E'.&lt;BR /&gt;  ENDCASE.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;PRE&gt;&lt;CODE&gt;Your help would be appreciated&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 28 Jul 2023 12:05:33 GMT</pubDate>
    <dc:creator>former_member656551</dc:creator>
    <dc:date>2023-07-28T12:05:33Z</dc:date>
    <item>
      <title>Please select entry Error with cl_gui_alv_grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-select-entry-error-with-cl-gui-alv-grid/m-p/12759496#M2022420</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
  &lt;P&gt;I try to select a entry of a table using the class "cl_gui_alv_grid". When I select the first entry and push a button and go through my code, working with the entry, it works perfectly fine. But the second time it wont select the entry or rather the table lt_selected_rows is empty. Heres my code: &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;CALL METHOD grid1-&amp;gt;get_selected_rows&lt;BR /&gt;    IMPORTING&lt;BR /&gt;      et_index_rows = lt_selected_rows.&lt;BR /&gt;  CASE lines( lt_selected_rows ).&lt;BR /&gt;    WHEN 0.&lt;BR /&gt;      MESSAGE 'Please select entry' TYPE 'I' DISPLAY LIKE 'E'.&lt;BR /&gt;    WHEN 1.&lt;BR /&gt;      READ TABLE gt_output INTO ls_output INDEX lt_selected_rows[ 1 ]-index.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    WHEN OTHERS.&lt;BR /&gt;      MESSAGE 'Please select one entry' TYPE 'I' DISPLAY LIKE 'E'.&lt;BR /&gt;  ENDCASE.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;PRE&gt;&lt;CODE&gt;Your help would be appreciated&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Jul 2023 12:05:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-select-entry-error-with-cl-gui-alv-grid/m-p/12759496#M2022420</guid>
      <dc:creator>former_member656551</dc:creator>
      <dc:date>2023-07-28T12:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Please select entry Error with cl_gui_alv_grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-select-entry-error-with-cl-gui-alv-grid/m-p/12759497#M2022421</link>
      <description>&lt;P&gt;I guess the problem is that you have re-instantiated the ALV grid. Only the first-instantiated grid is displayed, the next ones are lost somewhere... I mean grid1 is referencing the one which is not displayed, so there are no selected rows.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 13:10:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-select-entry-error-with-cl-gui-alv-grid/m-p/12759497#M2022421</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-07-28T13:10:00Z</dc:date>
    </item>
  </channel>
</rss>

