<?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 cl_gui_alv_grid cursor problems in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-cursor-problems/m-p/5691522#M1293259</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;Hi i have a alv which contains 10 rows  and a delete icon  on tool bar &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i select 10 th row and delete it then the coursor goes to 1st row &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i select 5 th row and delete it then the cursor goes to 6th row .....which variable is controlling cursor &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is which ever row i delete my cursor should go to 1st row , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know how to do this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jun 2009 11:39:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-12T11:39:48Z</dc:date>
    <item>
      <title>cl_gui_alv_grid cursor problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-cursor-problems/m-p/5691522#M1293259</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;Hi i have a alv which contains 10 rows  and a delete icon  on tool bar &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i select 10 th row and delete it then the coursor goes to 1st row &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i select 5 th row and delete it then the cursor goes to 6th row .....which variable is controlling cursor &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is which ever row i delete my cursor should go to 1st row , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know how to do this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 11:39:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-cursor-problems/m-p/5691522#M1293259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T11:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: cl_gui_alv_grid cursor problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-cursor-problems/m-p/5691523#M1293260</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;There are two methods:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;GET_FIRST_VISIBLE_ROW&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SET_FIRST_VISIBLE_ROW&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;but both are proteced so you can't directly use them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are refreshing a display with method &lt;EM&gt;refresh_table_display&lt;/EM&gt; after deleting the entry, the you can do the following.&lt;/P&gt;&lt;P&gt;- get seleted rows with method &lt;EM&gt;GET_SELECTED_ROWS&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;- fill parameter &lt;STRONG&gt;IS_STABLE&lt;/STRONG&gt; of method &lt;EM&gt;refresh_table_display&lt;/EM&gt; with first selected rows returned by previous method&lt;/P&gt;&lt;P&gt;- refresh display using parameter &lt;STRONG&gt;IS_STABLE&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you can controll "alv cursor" &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>Fri, 12 Jun 2009 11:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-cursor-problems/m-p/5691523#M1293260</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-06-12T11:59:02Z</dc:date>
    </item>
  </channel>
</rss>

