<?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 Cursor setting in Screen fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-setting-in-screen-fields/m-p/1149618#M117129</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;In custom screen when i enter Customer number after pressing enter cursor should move into PO number field(like va01 screen). User inputs in PO number field &amp;amp; press enter cursor should jump to "PICKEDup field".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i set this? Is there is any properties available for this settings in Screen? Send me sample codes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;subashini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jan 2006 17:49:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-26T17:49:18Z</dc:date>
    <item>
      <title>Cursor setting in Screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-setting-in-screen-fields/m-p/1149618#M117129</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;In custom screen when i enter Customer number after pressing enter cursor should move into PO number field(like va01 screen). User inputs in PO number field &amp;amp; press enter cursor should jump to "PICKEDup field".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i set this? Is there is any properties available for this settings in Screen? Send me sample codes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;subashini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2006 17:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-setting-in-screen-fields/m-p/1149618#M117129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-26T17:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cursor setting in Screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-setting-in-screen-fields/m-p/1149619#M117130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Help me----&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt; it's urgent........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-subha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2006 18:37:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-setting-in-screen-fields/m-p/1149619#M117130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-26T18:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cursor setting in Screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-setting-in-screen-fields/m-p/1149620#M117131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want the cursor to move after pressing enter, you have to add code in the OK-Code processing in the PAI. For example, in the PAI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If SY-UCOMM = 'ENTE'. "(or whatever the Enter stands for. It could be a SPACE also.)&lt;/P&gt;&lt;P&gt;  set cursor field PO_NUMBER.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Bhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2006 18:41:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-setting-in-screen-fields/m-p/1149620#M117131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-26T18:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cursor setting in Screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-setting-in-screen-fields/m-p/1149621#M117132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the SET CURSOR statement and GET CURSOR statement.  You will have to keep track of your cusor.  In the PAI of the screen you will need to GET CURSOR and the PBO you will need to SET CURSOR.  In this example, if the user keeps hitting ENTER, then cursor will jump thru the fields on by one,  when it gets to the last field, it will jump to the top and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data:    cursorfield(20) type c.



module status_1500 output.

  set pf-status 'STDCONSOLE'.

&amp;lt;b&amp;gt;  set cursor field cursorfield.&amp;lt;/b&amp;gt;

endmodule.

*
*

module user_command_1500 input.

  case sy-ucomm.
    when 'ENTER'.
* Scroll thru fields when user hits enter
      &amp;lt;b&amp;gt;get cursor field cursorfield.
      case cursorfield.
        when 'P_TICNO'.
          cursorfield = 'P_PERNR'.
        when 'P_PERNR'.
          cursorfield = 'P_WERKS'.
        when 'P_WERKS'.
          cursorfield = 'P_LGORT'.
        when 'P_LGORT'.
          cursorfield = 'P_AREAC'.
        when 'P_AREAC'.
          cursorfield = 'P_TICNO'.
      endcase.&amp;lt;/b&amp;gt;
ENDMODULE.

&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2006 18:59:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-setting-in-screen-fields/m-p/1149621#M117132</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-26T18:59:30Z</dc:date>
    </item>
  </channel>
</rss>

