<?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: cursor in screen painter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-in-screen-painter/m-p/2879104#M676085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.Iam confused little.My purpose is that if it is Valid Er_Id, the cursor should go to er_name,if not the message.So I have used 'If' loop and searched records for entered Er_id, if it fetch records I displayed the message and in else part (it will not fetch record) the cursor should go to next field (i.e Er_name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I was not wrong, your code checks if record exists, if yes it displays the message.To say virtually,First I enter '1' the message 'already exist' is display then I clear 1 , enter 100 and press enter,at this point the cursor stands in er_id field without any message(its correct) but I want to move the cursor to er_name field if entered er_id doesnt exist in table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if Iam wrong.Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Sep 2007 06:20:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-25T06:20:56Z</dc:date>
    <item>
      <title>cursor in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-in-screen-painter/m-p/2879102#M676083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to move the cursor to next field in scree painter?&lt;/P&gt;&lt;P&gt;scenario:&lt;/P&gt;&lt;P&gt;I have validate 'Employer Id' field by using field er_id module m1&lt;/P&gt;&lt;P&gt;module m1 input.&lt;/P&gt;&lt;P&gt;select * from employer where er_id = er_id&lt;/P&gt;&lt;P&gt;if sy-dbcnt &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message e000&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; Here I want to move to next field,if it is valid er_id(not existing one)&lt;/P&gt;&lt;P&gt;set cursor to 'er_name'.---&amp;gt;its not working&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understood my query,thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2007 11:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-in-screen-painter/m-p/2879102#M676083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-24T11:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: cursor in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-in-screen-painter/m-p/2879103#M676084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A few dot points:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You don't need the cursor on the field to validate it.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. There's no need for the "else" for the "if sy-dbcnt &amp;lt;&amp;gt; 0."  as the "e000." will prevent the program going further e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if sy-dbcnt &amp;lt;&amp;gt; 0.
  message e000. "explain what the message says in the comments
endif.

*" now check the name field:
if er_name is initial. "blank provided
  set cursor field 'ER_NAME'.
  message e398(00) with 'Employee name must be provided'
    space space space.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. You can have a "set cursor" in the PBO logic if you want to have the cursor start in a field other than the first of the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2007 21:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-in-screen-painter/m-p/2879103#M676084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-24T21:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: cursor in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-in-screen-painter/m-p/2879104#M676085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.Iam confused little.My purpose is that if it is Valid Er_Id, the cursor should go to er_name,if not the message.So I have used 'If' loop and searched records for entered Er_id, if it fetch records I displayed the message and in else part (it will not fetch record) the cursor should go to next field (i.e Er_name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I was not wrong, your code checks if record exists, if yes it displays the message.To say virtually,First I enter '1' the message 'already exist' is display then I clear 1 , enter 100 and press enter,at this point the cursor stands in er_id field without any message(its correct) but I want to move the cursor to er_name field if entered er_id doesnt exist in table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if Iam wrong.Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2007 06:20:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-in-screen-painter/m-p/2879104#M676085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-25T06:20:56Z</dc:date>
    </item>
  </channel>
</rss>

