<?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: Issue regarding cursor placement on screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-cursor-placement-on-screen/m-p/11563800#M1937542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If that is the case, can it be somehow related to &lt;SPAN style="text-decoration: line-through;"&gt;a refresh of the screen?&lt;/SPAN&gt; the refresh of the alv?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Feb 2016 12:44:44 GMT</pubDate>
    <dc:creator>Patrick_vN</dc:creator>
    <dc:date>2016-02-24T12:44:44Z</dc:date>
    <item>
      <title>Issue regarding cursor placement on screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-cursor-placement-on-screen/m-p/11563797#M1937539</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;We had built a custom report where an ALV grid appears in report once the transaction is executed. The user provides input in ALV grid on the screen.&lt;/P&gt;&lt;P&gt;Requirement : When we execute the transaction, the cursor goes to the first field in the screen.&lt;/P&gt;&lt;P&gt;Our requirement is that the cursor should go to the first editable cell in ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if anyone has any idea how to proceed here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 09:06:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-cursor-placement-on-screen/m-p/11563797#M1937539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-24T09:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue regarding cursor placement on screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-cursor-placement-on-screen/m-p/11563798#M1937540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Class CL_GUI_ALV_GRID has a method SET_CURRENT_CELL_VIA_ID that allows you to place the cursor where you want in the ALV (&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/0a/b55327d30911d2b467006094192fe3/content.htm" title="http://help.sap.com/saphelp_46c/helpdata/en/0a/b55327d30911d2b467006094192fe3/content.htm"&gt;set_current_cell_via_id - ALV Grid Control (BC-SRV-ALV) - SAP Library&lt;/A&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 09:23:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-cursor-placement-on-screen/m-p/11563798#M1937540</guid>
      <dc:creator>Patrick_vN</dc:creator>
      <dc:date>2016-02-24T09:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Issue regarding cursor placement on screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-cursor-placement-on-screen/m-p/11563799#M1937541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;We have tried to use that method, in fact we are using this method to move the cursor when user enters any data so that cursor goes to next input cell on ALV(works perfectly). But it does not work for initial display of ALV, when we use it during ALV first display it just highlights the specified cell in yellow color, the cursor is still on the 1st screen field of the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestions will be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 11:14:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-cursor-placement-on-screen/m-p/11563799#M1937541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-24T11:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issue regarding cursor placement on screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-cursor-placement-on-screen/m-p/11563800#M1937542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If that is the case, can it be somehow related to &lt;SPAN style="text-decoration: line-through;"&gt;a refresh of the screen?&lt;/SPAN&gt; the refresh of the alv?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 12:44:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-cursor-placement-on-screen/m-p/11563800#M1937542</guid>
      <dc:creator>Patrick_vN</dc:creator>
      <dc:date>2016-02-24T12:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issue regarding cursor placement on screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-cursor-placement-on-screen/m-p/11563801#M1937543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you try to add a call of set_selected_cells&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CALL&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;METHOD&lt;/SPAN&gt; alv_grid_p-&lt;SPAN style="color: #800097;"&gt;&amp;gt;&lt;/SPAN&gt;set_current_cell_via_id&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; is_row_no&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;row_no&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;" lvc_s_roid&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #0000ff;"&gt;REFRESH&lt;/SPAN&gt; cell_p&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CLEAR&lt;/SPAN&gt; r_cell&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;r_cell-row_id-index&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;row&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;" integer&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;r_cell-col_id-fieldname&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #4da616;"&gt;'FIELDNAME'&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #0000ff;"&gt;APPEND&lt;/SPAN&gt; r_cell &lt;SPAN style="color: #0000ff;"&gt;TO&lt;/SPAN&gt; cell_p&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CALL&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;METHOD&lt;/SPAN&gt; alv_grid_p-&lt;SPAN style="color: #800097;"&gt;&amp;gt;&lt;/SPAN&gt;set_selected_cells&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_cells&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;cell_p&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;" lvc_t_cell&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;




&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or you could&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Force SET_TABLE_FOR_FIRST_DISPLAY to execute with some &lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;cl_gui_cfw=&amp;gt;dispatch before execution of set_current_cell_via_id&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Set (again) cursor in event AFTER_REFRESH?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 13:58:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-cursor-placement-on-screen/m-p/11563801#M1937543</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-02-24T13:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issue regarding cursor placement on screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-cursor-placement-on-screen/m-p/11563802#M1937544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;I had already tried this method but I tried again, the result is it highlights the cell with a red border but cursor still is in other screen field.&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/894994" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the second method you suggested I am not clear, could you explain a bit more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 10:50:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-cursor-placement-on-screen/m-p/11563802#M1937544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-25T10:50:03Z</dc:date>
    </item>
  </channel>
</rss>

