<?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-&amp;gt;GET_SELECTED_ROWS returns empty table in edit mode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-gt-get-selected-rows-returns-empty-table-in-edit-mode/m-p/2231566#M480177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found out that the problem occurs when I try to get selected rows in user_command event (after pressing on grid's toolbar button), then get_selected_rows method returns empty table. When I call this method using e.g. gui status button then it works ok. Strange thing, looks like the grid clears the selection when toolbar button is pressed and grid is in edit mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2007 14:25:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-08T14:25:45Z</dc:date>
    <item>
      <title>ALV Grid-&gt;GET_SELECTED_ROWS returns empty table in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-gt-get-selected-rows-returns-empty-table-in-edit-mode/m-p/2231565#M480176</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 saw similar threads on this forum, but didn't find the answer. Do you know if that is possible to force grid to return selected rows when is in edit mode? When I switch to display mode everything works just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 13:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-gt-get-selected-rows-returns-empty-table-in-edit-mode/m-p/2231565#M480176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T13:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid-&gt;GET_SELECTED_ROWS returns empty table in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-gt-get-selected-rows-returns-empty-table-in-edit-mode/m-p/2231566#M480177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found out that the problem occurs when I try to get selected rows in user_command event (after pressing on grid's toolbar button), then get_selected_rows method returns empty table. When I call this method using e.g. gui status button then it works ok. Strange thing, looks like the grid clears the selection when toolbar button is pressed and grid is in edit mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 14:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-gt-get-selected-rows-returns-empty-table-in-edit-mode/m-p/2231566#M480177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T14:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid-&gt;GET_SELECTED_ROWS returns empty table in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-gt-get-selected-rows-returns-empty-table-in-edit-mode/m-p/2231567#M480178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is necessary to enforce the ALV to transport data from the frontend to the backend. Therefore register the event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Register 'Enter' event&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD go_alv-&amp;gt;register_edit_event&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After then clicking 'ENTER', the data should be available in the ABAP program. Without any user interaction it is not possible (as far as I know).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 15:49:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-gt-get-selected-rows-returns-empty-table-in-edit-mode/m-p/2231567#M480178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T15:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid-&gt;GET_SELECTED_ROWS returns empty table in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-gt-get-selected-rows-returns-empty-table-in-edit-mode/m-p/2231568#M480179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, yes, I have registered edit event before, but this is not behaviour which I wanted to have. Because normally, if you press the button delete, the you would expect that after that all the changes are triggered to the backend, but it works only after you press enter. I just changed the application a bit, and registered edit event mc_evt_modified. It is still not exactly what I wanted to have, but is better then before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 07:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-gt-get-selected-rows-returns-empty-table-in-edit-mode/m-p/2231568#M480179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T07:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid-&gt;GET_SELECTED_ROWS returns empty table in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-gt-get-selected-rows-returns-empty-table-in-edit-mode/m-p/2231569#M480180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try calling method &amp;lt;alv_list&amp;gt;-&amp;gt;check_changed before proceeding. This method does a sync between GUI and application server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2008 13:20:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-gt-get-selected-rows-returns-empty-table-in-edit-mode/m-p/2231569#M480180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-22T13:20:57Z</dc:date>
    </item>
  </channel>
</rss>

