<?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 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/1805065#M345599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     am trying to set the cursor in a tablecontrol line, where the entry is made wrongly...but it always goes to the first line of the field, which i have set the cursor for...can anyone tell me the exact logic behind this set cursor?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where am i going wrong in my code? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my pbo flow logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT   ITAB_TBL2&lt;/P&gt;&lt;P&gt;       WITH CONTROL TBLCTRL2&lt;/P&gt;&lt;P&gt;       CURSOR TBLCTRL2-CURRENT_LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MODULE SET_CURSOR_VERID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE SET_CURSOR_VERID OUTPUT.&lt;/P&gt;&lt;P&gt;  IF VER = 'X''. &lt;/P&gt;&lt;P&gt;        SET CURSOR FIELD 'VERID' LINE TBLCTRL2-CURRENT_LINE .&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    CLEAR: VER.&lt;/P&gt;&lt;P&gt;ENDMODULE.     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the error msg. is triggered, i am setting a flag ver and in the pbo of the tblctrl2, i am trying to set the cursor, but it's by default, going to first line of the tblctrl2...i tried even assigning the current_line to a variable and hardcoded like set cursor field verid line 1...still the same result...moreover, will set cursor work for character fields or is it confined only for num. fields? thanks all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Dec 2006 10:39:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-25T10:39:20Z</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/1805065#M345599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     am trying to set the cursor in a tablecontrol line, where the entry is made wrongly...but it always goes to the first line of the field, which i have set the cursor for...can anyone tell me the exact logic behind this set cursor?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where am i going wrong in my code? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my pbo flow logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT   ITAB_TBL2&lt;/P&gt;&lt;P&gt;       WITH CONTROL TBLCTRL2&lt;/P&gt;&lt;P&gt;       CURSOR TBLCTRL2-CURRENT_LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MODULE SET_CURSOR_VERID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE SET_CURSOR_VERID OUTPUT.&lt;/P&gt;&lt;P&gt;  IF VER = 'X''. &lt;/P&gt;&lt;P&gt;        SET CURSOR FIELD 'VERID' LINE TBLCTRL2-CURRENT_LINE .&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    CLEAR: VER.&lt;/P&gt;&lt;P&gt;ENDMODULE.     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the error msg. is triggered, i am setting a flag ver and in the pbo of the tblctrl2, i am trying to set the cursor, but it's by default, going to first line of the tblctrl2...i tried even assigning the current_line to a variable and hardcoded like set cursor field verid line 1...still the same result...moreover, will set cursor work for character fields or is it confined only for num. fields? thanks all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Dec 2006 10:39:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/1805065#M345599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-25T10:39: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/1805066#M345600</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 using set cursor field in loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Asvhen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Dec 2006 14:52:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/1805066#M345600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-25T14:52:37Z</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/1805067#M345601</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;&lt;/P&gt;&lt;P&gt;SET CURSOR FIELD 'VERID' LINE TBLCTRL2-CURRENT_LINE . should be&lt;/P&gt;&lt;P&gt;in the last line of the PBO logic. i.e after this statement there should not be any other statement in PBO.&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Vinsa.R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2006 01:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/1805067#M345601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-26T01:29:14Z</dc:date>
    </item>
  </channel>
</rss>

