<?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 problem. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-problem/m-p/939713#M62908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a selection screen where I have a parameter and a select-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;PARAMETERS : p_apofan type ymsm_apo_ahsname-apo_fan_name OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS s_werks FOR wa_werks.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am validating data entry in these fields at screen-selection:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  IF sy-ucomm = ' ' or sy-ucomm = 'ONLI'.&lt;/P&gt;&lt;P&gt;  PERFORM validate_apofan.&lt;/P&gt;&lt;P&gt;  PERFORM validate_plant.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the validation subroutine i have written validation code. If it not valid then show error message and set the cursor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE e023 WITH text-e04.&lt;/P&gt;&lt;P&gt;SET CURSOR FIELD 'S_WERKS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the cursor is not setting in s_werks field. What is the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have even tried SET CURSOR FIELD 'S_WERKS-LOW' and even then it is not setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is this happening? What am I doing wrong? how to set the cursor on a field in this situation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Aug 2005 06:40:45 GMT</pubDate>
    <dc:creator>gopalkrishna_baliga</dc:creator>
    <dc:date>2005-08-21T06:40:45Z</dc:date>
    <item>
      <title>Set cursor problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-problem/m-p/939713#M62908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a selection screen where I have a parameter and a select-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;PARAMETERS : p_apofan type ymsm_apo_ahsname-apo_fan_name OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS s_werks FOR wa_werks.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am validating data entry in these fields at screen-selection:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  IF sy-ucomm = ' ' or sy-ucomm = 'ONLI'.&lt;/P&gt;&lt;P&gt;  PERFORM validate_apofan.&lt;/P&gt;&lt;P&gt;  PERFORM validate_plant.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the validation subroutine i have written validation code. If it not valid then show error message and set the cursor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE e023 WITH text-e04.&lt;/P&gt;&lt;P&gt;SET CURSOR FIELD 'S_WERKS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the cursor is not setting in s_werks field. What is the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have even tried SET CURSOR FIELD 'S_WERKS-LOW' and even then it is not setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is this happening? What am I doing wrong? how to set the cursor on a field in this situation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Aug 2005 06:40:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-problem/m-p/939713#M62908</guid>
      <dc:creator>gopalkrishna_baliga</dc:creator>
      <dc:date>2005-08-21T06:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set cursor problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-problem/m-p/939714#M62909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try &lt;/P&gt;&lt;P&gt;at selection-screen on s_werks .&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;do the validation for s_werks here&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on p_apofan .&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;do the validation for p_apofan  here&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with this method you just need to issue the error message. no need the set the cursor , it will automatically happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Aug 2005 07:01:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-problem/m-p/939714#M62909</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-08-21T07:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set cursor problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-problem/m-p/939715#M62910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can't use "SET CURSOR" in PAI event ( AT SELECTION-SCREEN is PAI ). You can use "SET CURSOR" in PBO (AT SELECTION-SCREEN OUTPUT ). Also when you use SELECT-OPTIONS is better to specify the field (s_werks-low or s_werks-high). If you use error message in PBO, your screen will not be processed, so it's better to use in PBO anther type of message ( type "S").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you find some answers useful, please assign reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Svetlin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Svetlin Rusev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Aug 2005 07:45:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-problem/m-p/939715#M62910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-21T07:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set cursor problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-problem/m-p/939716#M62911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should be like this ,Thats all.&lt;/P&gt;&lt;P&gt;SET CURSOR FIELD 'S_WERKS'.&lt;/P&gt;&lt;P&gt;MESSAGE e023 WITH text-e04.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Aug 2005 14:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-problem/m-p/939716#M62911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-21T14:18:21Z</dc:date>
    </item>
  </channel>
</rss>

