<?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 Set cursor in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor/m-p/2519147#M570063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I have a problem when setting the cursor position in table control,&lt;/P&gt;&lt;P&gt;Here the table control contains 5 line items (mat-no and ser no). My requirement is when i press enter after enter the ser no from the first line item my cursor position should come to the ser no field of  2nd line item.  &lt;/P&gt;&lt;P&gt; if i press enter after entering the ser-no in the second line item my cursor should come to the ser-no field of the 3rd line item and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Here i have used the command &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF OK_CODE = 'CONT'&lt;/P&gt;&lt;P&gt;         AND GS_TC_COMP-MATNR IS NOT INITIAL&lt;/P&gt;&lt;P&gt;         AND GS_TC_COMP-SERNR IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SET CURSOR FIELD 'GS_TC_COMP-SERNR' LINE g_tc_comps-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i got the problem that when i press enter from the field ser-no in the first line item my cursor goes to the last line item in the table control instead od coming to 2nd 3rd and 4th line items...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ok_code = cont (when i press enter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope u understand my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give me a solution for this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Murugan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jul 2007 05:21:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-20T05:21:04Z</dc:date>
    <item>
      <title>Set cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor/m-p/2519147#M570063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I have a problem when setting the cursor position in table control,&lt;/P&gt;&lt;P&gt;Here the table control contains 5 line items (mat-no and ser no). My requirement is when i press enter after enter the ser no from the first line item my cursor position should come to the ser no field of  2nd line item.  &lt;/P&gt;&lt;P&gt; if i press enter after entering the ser-no in the second line item my cursor should come to the ser-no field of the 3rd line item and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Here i have used the command &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF OK_CODE = 'CONT'&lt;/P&gt;&lt;P&gt;         AND GS_TC_COMP-MATNR IS NOT INITIAL&lt;/P&gt;&lt;P&gt;         AND GS_TC_COMP-SERNR IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SET CURSOR FIELD 'GS_TC_COMP-SERNR' LINE g_tc_comps-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i got the problem that when i press enter from the field ser-no in the first line item my cursor goes to the last line item in the table control instead od coming to 2nd 3rd and 4th line items...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ok_code = cont (when i press enter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope u understand my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give me a solution for this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Murugan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 05:21:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor/m-p/2519147#M570063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T05:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor/m-p/2519148#M570064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your code as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA linno TYPE i.

IF OK_CODE = 'CONT'
AND GS_TC_COMP-MATNR IS NOT INITIAL
AND GS_TC_COMP-SERNR IS INITIAL.

GET CURSOR LINE linno.

IF sy-subrc EQ 0.
linno = linno + 1.
ELSE.
linno = 1.
ENDIF.

SET CURSOR FIELD 'GS_TC_COMP-SERNR' LINE linno.

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 05:28:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor/m-p/2519148#M570064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T05:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor/m-p/2519149#M570065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;get the screen name of that field not the internal table field name through which you are looping at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set cursor field 'name of the field' line table_control_name-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 05:34:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor/m-p/2519149#M570065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T05:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor/m-p/2519150#M570066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manoj V Kumar &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While using your code,  for the first cursor position it works well. Then it set to last cursor line not to the next cursor position.  Whats wrong with my code.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. help me to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 05:36:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor/m-p/2519150#M570066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T05:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor/m-p/2519151#M570067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just try to clear the variable linno before the GET CURSOR statement. Even if that also doesnt work, just paste your new code here. I will try to help you out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 05:40:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor/m-p/2519151#M570067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T05:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor/m-p/2519152#M570068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Manoj V Kumar  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Can u give me your mail-id. I will send the detailed requirement and Screen shots.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me to solve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 06:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor/m-p/2519152#M570068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T06:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor/m-p/2519153#M570069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can send it to manoj.vijayakumar@gmail.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 06:05:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor/m-p/2519153#M570069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T06:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor/m-p/2519154#M570070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Manoj V Kumar ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have sent detailed mail to u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 06:21:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor/m-p/2519154#M570070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T06:21:04Z</dc:date>
    </item>
  </channel>
</rss>

