<?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 Regarding Cursor Position in Module Pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-cursor-position-in-module-pool/m-p/4846279#M1133434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am working on Dialog Programming, when i enter values into input fields in the screen and press Enter , the cursor is moving into the first input field .... but i want that cursor on the same input field where the user press enter. How can i do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for ur reply....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------" /&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Nov 2008 10:54:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-20T10:54:37Z</dc:date>
    <item>
      <title>Regarding Cursor Position in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-cursor-position-in-module-pool/m-p/4846279#M1133434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am working on Dialog Programming, when i enter values into input fields in the screen and press Enter , the cursor is moving into the first input field .... but i want that cursor on the same input field where the user press enter. How can i do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for ur reply....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------" /&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 10:54:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-cursor-position-in-module-pool/m-p/4846279#M1133434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T10:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Cursor Position in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-cursor-position-in-module-pool/m-p/4846280#M1133435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sreenath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use the key word SET CURSOR &lt;/P&gt;&lt;P&gt;for futher help go through the key word documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will serve your purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 11:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-cursor-position-in-module-pool/m-p/4846280#M1133435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T11:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Cursor Position in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-cursor-position-in-module-pool/m-p/4846281#M1133436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting the Cursor Position &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a screen is displayed, the system automatically places the cursor in the first field that is ready for input. However, you can also define on which screen element the cursor should appear in your program. The screen element does not have to be an input field. Positioning the cursor can make applications more user-friendly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can set the cursor position either statically in the Screen Painter or dynamically in your ABAP program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Static Cursor Position&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To define the cursor position statically, enter the name of the required screen element in the Cursor position screen attribute in the Screen Painter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dynamic Cursor Position&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To set the cursor position dynamically, use the following statement in an ABAP dialog module in the PBO event:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET CURSOR FIELD &amp;lt;f&amp;gt; [OFFSET &amp;lt;off&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;f&amp;gt; can be a literal or a variable containing the name of a screen element. You can use the OFFSET addition to place the cursor at a particular point within an input/output field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer this link for more details:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbac0b35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbac0b35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Nov 2008 05:24:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-cursor-position-in-module-pool/m-p/4846281#M1133436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-23T05:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Cursor Position in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-cursor-position-in-module-pool/m-p/4846282#M1133437</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;1. Get field name where cursor is. use command GET CURSOR FIELD in PAI.&lt;/P&gt;&lt;P&gt;2. Set the cursor into the field. Use command SET CURSOR FIELD in PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;MODULE set_cursor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;MODULE get_cursor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE get_CURSOR INPUT.&lt;/P&gt;&lt;P&gt;data : wa_cursor(40).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get CURSOR FIELD wa_cursor.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " SET_CURSOR  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE SET_CURSOR OUTPUT.&lt;/P&gt;&lt;P&gt;set CURSOR FIELD wa_cursor.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " SET_CURSOR  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is working fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2008 05:32:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-cursor-position-in-module-pool/m-p/4846282#M1133437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-01T05:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Cursor Position in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-cursor-position-in-module-pool/m-p/4846283#M1133438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can place the cursor at the required field using Set Cursor&lt;/P&gt;&lt;P&gt;Syntax : SET CURSOR FIELD fieldname OFFSET numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to check where the cursor is currently use Get cursor.&lt;/P&gt;&lt;P&gt;Syntax : GET CURSOR FIELD fld.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 06:50:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-cursor-position-in-module-pool/m-p/4846283#M1133438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T06:50:07Z</dc:date>
    </item>
  </channel>
</rss>

