<?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: 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/2151452#M454258</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have changed the code as below.The cursor is coming now but it comes in the first filed always not to the filed where the error has actually occured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  Check_input  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module Check_input input.&lt;/P&gt;&lt;P&gt;*Plant&lt;/P&gt;&lt;P&gt; SELECT SINGLE werks FROM t001w INTO g_plant WHERE werks EQ t001w-werks&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e208(00) WITH text-012.&lt;/P&gt;&lt;P&gt;    SET CURSOR FIELD t001w-werks.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Shipping point&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT SINGLE vstel FROM tvst&lt;/P&gt;&lt;P&gt;                    INTO g_shippoint&lt;/P&gt;&lt;P&gt;          WHERE vstel EQ likp-vstel.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e208(00) WITH text-015.&lt;/P&gt;&lt;P&gt;    SET CURSOR FIELD likp-vstel.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Storage Location&lt;/P&gt;&lt;P&gt;  SELECT SINGLE lgort FROM t001l&lt;/P&gt;&lt;P&gt;                    INTO g_loc&lt;/P&gt;&lt;P&gt;          WHERE lgort EQ t001l-lgort.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e208(00) WITH text-014.&lt;/P&gt;&lt;P&gt;    SET CURSOR FIELD t001l-lgort.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Delivery type&lt;/P&gt;&lt;P&gt;  SELECT SINGLE lfart FROM tvlkt&lt;/P&gt;&lt;P&gt;                  INTO g_deltype&lt;/P&gt;&lt;P&gt;        WHERE lfart EQ tvlkt-lfart.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e208(00) WITH text-013.&lt;/P&gt;&lt;P&gt;    SET CURSOR FIELD tvlkt-lfart.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.                 " Check_input  INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Mar 2007 07:12:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-30T07:12:06Z</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/2151449#M454255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; After the user has entered an invalid input,the system should give an error msg and the cursor should automatically set in the invalid field entered.My code is as given below.Plz let me know what is wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;  MODULE status_0100.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; module select_category.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;  CHAIN.&lt;/P&gt;&lt;P&gt;    FIELD : t001w-werks,&lt;/P&gt;&lt;P&gt;           likp-vstel,&lt;/P&gt;&lt;P&gt;          t001l-lgort,&lt;/P&gt;&lt;P&gt;          tvlkt-lfart.&lt;/P&gt;&lt;P&gt;    MODULE check_input.&lt;/P&gt;&lt;P&gt;  ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE cancel AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE user_command_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  Check_input  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module Check_input input.&lt;/P&gt;&lt;P&gt;*Plant&lt;/P&gt;&lt;P&gt; SELECT SINGLE werks FROM t001w INTO g_plant WHERE werks EQ t001w-werks&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE s208(00) WITH text-012.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CALL SCREEN 100.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Shipping point&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT SINGLE vstel FROM tvst&lt;/P&gt;&lt;P&gt;                    INTO g_shippoint&lt;/P&gt;&lt;P&gt;          WHERE vstel EQ likp-vstel.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE s208(00) WITH text-015.&lt;/P&gt;&lt;P&gt;    CALL SCREEN 100.&lt;/P&gt;&lt;P&gt;    SET CURSOR FIELD likp-vstel.&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;*Storage Location&lt;/P&gt;&lt;P&gt;  SELECT SINGLE lgort FROM t001l&lt;/P&gt;&lt;P&gt;                    INTO g_loc&lt;/P&gt;&lt;P&gt;          WHERE lgort EQ t001l-lgort.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE s208(00) WITH text-014.&lt;/P&gt;&lt;P&gt;    CALL SCREEN 100.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Delivery type&lt;/P&gt;&lt;P&gt;  SELECT SINGLE lfart FROM tvlkt&lt;/P&gt;&lt;P&gt;                  INTO g_deltype&lt;/P&gt;&lt;P&gt;        WHERE lfart EQ tvlkt-lfart.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE s208(00) WITH text-013.&lt;/P&gt;&lt;P&gt;    CALL SCREEN 100.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.                 " Check_input  INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 06:59:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2151449#M454255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T06:59:27Z</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/2151450#M454256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rakesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comment out "CALL SCREEN 100" before "SET CURSOR".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, specify field name in quotes like this -&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SET CURSOR FIELD 'LIKP-VSTEL'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manish Joshi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;I hope you know how to award points&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 07:03:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2151450#M454256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T07:03:11Z</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/2151451#M454257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rakesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF sy-subrc NE 0.
SET CURSOR FIELD likp-vstel.
MESSAGE s208(00) WITH text-015.
CALL SCREEN 100.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Chandrasekhar Jagarlamudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 07:05:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2151451#M454257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T07:05:34Z</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/2151452#M454258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have changed the code as below.The cursor is coming now but it comes in the first filed always not to the filed where the error has actually occured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  Check_input  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module Check_input input.&lt;/P&gt;&lt;P&gt;*Plant&lt;/P&gt;&lt;P&gt; SELECT SINGLE werks FROM t001w INTO g_plant WHERE werks EQ t001w-werks&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e208(00) WITH text-012.&lt;/P&gt;&lt;P&gt;    SET CURSOR FIELD t001w-werks.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Shipping point&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT SINGLE vstel FROM tvst&lt;/P&gt;&lt;P&gt;                    INTO g_shippoint&lt;/P&gt;&lt;P&gt;          WHERE vstel EQ likp-vstel.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e208(00) WITH text-015.&lt;/P&gt;&lt;P&gt;    SET CURSOR FIELD likp-vstel.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Storage Location&lt;/P&gt;&lt;P&gt;  SELECT SINGLE lgort FROM t001l&lt;/P&gt;&lt;P&gt;                    INTO g_loc&lt;/P&gt;&lt;P&gt;          WHERE lgort EQ t001l-lgort.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e208(00) WITH text-014.&lt;/P&gt;&lt;P&gt;    SET CURSOR FIELD t001l-lgort.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Delivery type&lt;/P&gt;&lt;P&gt;  SELECT SINGLE lfart FROM tvlkt&lt;/P&gt;&lt;P&gt;                  INTO g_deltype&lt;/P&gt;&lt;P&gt;        WHERE lfart EQ tvlkt-lfart.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e208(00) WITH text-013.&lt;/P&gt;&lt;P&gt;    SET CURSOR FIELD tvlkt-lfart.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.                 " Check_input  INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 07:12:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2151452#M454258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T07:12:06Z</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/2151453#M454259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rakesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Wherever you are using SET CURSOR make sure that field name is in &amp;lt;b&amp;gt;quotes&amp;lt;/b&amp;gt; like this -&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET CURSOR FIELD 'T001W-WERKS'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Secondly control doesn't fall to next statement when you show error message. Write this way wherever applicable -&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SET CURSOR FIELD 'T001W-WERKS'.
MESSAGE e208(00) WITH text-012.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manish Joshi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Manish Joshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 07:17:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-not-working/m-p/2151453#M454259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T07:17:34Z</dc:date>
    </item>
  </channel>
</rss>

