<?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: set cursor not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2053171#M423505</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;Please try this instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...
set cursor field 'ACCNT'.           &amp;lt;--- in capital letter and quotes
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2007 19:36:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-20T19:36:46Z</dc:date>
    <item>
      <title>set cursor not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2053169#M423503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The set cursor statement in the code below has no effect.  Whatever field is in the first 'get cursor' statement is exactly the same in the last 'get cursor' statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why the set cursor statement is ignored?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      get cursor field cursorfield.&lt;/P&gt;&lt;P&gt;      cursorfield = 'ACCNT'.&lt;/P&gt;&lt;P&gt;      set cursor field cursorfield.&lt;/P&gt;&lt;P&gt;      get cursor field cursorfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 19:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2053169#M423503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T19:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: set cursor not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2053170#M423504</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;But where have you placed that code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 19:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2053170#M423504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T19:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: set cursor not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2053171#M423505</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;Please try this instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...
set cursor field 'ACCNT'.           &amp;lt;--- in capital letter and quotes
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 19:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2053171#M423505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T19:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: set cursor not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2053172#M423506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same result if using&lt;/P&gt;&lt;P&gt;set cursor field 'ACCNT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is in the AT Selection-screen part of the program.  I am trying to set the cursor at the first field on the variant screen when the screen comes back if the user wants to enter another record.  The cursor defaults to whichever was the the last field the user had their cursor in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 19:41:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2053172#M423506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T19:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: set cursor not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2053173#M423507</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SET CURSOR FIELD 'ACCNT' LINE SY-LILLI.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check this link on SET CURSOR FIELD f.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/set_curs.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/set_curs.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 19:49:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2053173#M423507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T19:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: set cursor not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2053174#M423508</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;AT SELECTION-SCREEN is triggered after doing something, so here you can't &amp;lt;u&amp;gt;SET&amp;lt;/u&amp;gt; the cursor, here you can only &amp;lt;u&amp;gt;GET&amp;lt;/u&amp;gt; it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U should use the event AT SELECTION-SCREEN OUTPUT to set the cursor:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: P1(2), P2(2).

DATA FIELD(30).

AT SELECTION-SCREEN OUTPUT.

  SET CURSOR FIELD 'P2'.

AT SELECTION-SCREEN.


  GET CURSOR FIELD FIELD.

START-OF-SELECTION.

  WRITE FIELD.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 19:52:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2053174#M423508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T19:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: set cursor not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2053175#M423509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still the same.  I had looked at that documentation and can not see the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My guess is that it isn't finding the field that is on the selection screen so it is ignoring the statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 19:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2053175#M423509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T19:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: set cursor not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2053176#M423510</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;Try my sample: it's working fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 19:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2053176#M423510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T19:58:52Z</dc:date>
    </item>
  </channel>
</rss>

