<?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: GRID set focus (OO) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/grid-set-focus-oo/m-p/9240958#M1719732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Anybody ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jan 2013 11:32:46 GMT</pubDate>
    <dc:creator>glauco</dc:creator>
    <dc:date>2013-01-30T11:32:46Z</dc:date>
    <item>
      <title>GRID set focus (OO)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/grid-set-focus-oo/m-p/9240957#M1719731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on ECC 6.0 EHP6. I created a report with a screen 0100, and put a custom container. So I created a ALV GRID (OO) on it type ref to cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was reading some old posts, but I think my case is a bit different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run my transaction, always, the system focuses the option button bellow my grid. When I try to change the focused field with tab key (keyborad), the focus changes from some field to others, but never goes to my GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using an event on load grid, like bellow, after o_grid &lt;SPAN class="L0S70"&gt;-&amp;gt;set_table_for_first_display&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_row = row_id.&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_col = 'VBELN'.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL METHOD o_grid-&amp;gt;set_current_cell_via_id&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is_row_id&amp;nbsp;&amp;nbsp;&amp;nbsp; = ls_row&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is_column_id = ls_col.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works, but in a unexpected way, to me. It sets focus to the correct cell (inside the grid, it changes to yellow collor), but altogether, the system put focus in the next field on the screen, bellow the custom container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there are two levels of focuses:&lt;/P&gt;&lt;P&gt;- One is the GRID itself,&lt;/P&gt;&lt;P&gt;- Other is on a screen field, when it has precedence comparing to the GRID. So the cursor goes to this next field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody helpe me, folks ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;Glauco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 19:10:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/grid-set-focus-oo/m-p/9240957#M1719731</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2013-01-28T19:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: GRID set focus (OO)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/grid-set-focus-oo/m-p/9240958#M1719732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Anybody ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 11:32:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/grid-set-focus-oo/m-p/9240958#M1719732</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2013-01-30T11:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: GRID set focus (OO)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/grid-set-focus-oo/m-p/9240959#M1719733</link>
      <description>&lt;P&gt;same problem here&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2020 13:28:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/grid-set-focus-oo/m-p/9240959#M1719733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-06-14T13:28:02Z</dc:date>
    </item>
  </channel>
</rss>

