<?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 Error message for ranges in selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-for-ranges-in-selection-screen/m-p/5476929#M1254028</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;i have this select option statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_fevor FOR afko-fevor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have written this code for error message display...&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON S_FEVOR.&lt;/P&gt;&lt;P&gt;I_FEVOR-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;I_FEVOR-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;I_FEVOR-LOW = S_FEVOR.&lt;/P&gt;&lt;P&gt;I_FEVOR-HIGH = S_FEVOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF not I_FEVOR-LOW EQ s_FEVOR .&lt;/P&gt;&lt;P&gt;SELECT  FEVOR&lt;/P&gt;&lt;P&gt;     FROM AFKO&lt;/P&gt;&lt;P&gt;       INTO S_FEVOR&lt;/P&gt;&lt;P&gt;         WHERE FEVOR = S_FEVOR.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            UP TO 1 ROWS.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; ENDSELECT.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;MESSAGE E000.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i enter the correct data then also it is giving error message&lt;/P&gt;&lt;P&gt;how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Smitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2009 06:59:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-14T06:59:57Z</dc:date>
    <item>
      <title>Error message for ranges in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-for-ranges-in-selection-screen/m-p/5476929#M1254028</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;i have this select option statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_fevor FOR afko-fevor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have written this code for error message display...&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON S_FEVOR.&lt;/P&gt;&lt;P&gt;I_FEVOR-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;I_FEVOR-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;I_FEVOR-LOW = S_FEVOR.&lt;/P&gt;&lt;P&gt;I_FEVOR-HIGH = S_FEVOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF not I_FEVOR-LOW EQ s_FEVOR .&lt;/P&gt;&lt;P&gt;SELECT  FEVOR&lt;/P&gt;&lt;P&gt;     FROM AFKO&lt;/P&gt;&lt;P&gt;       INTO S_FEVOR&lt;/P&gt;&lt;P&gt;         WHERE FEVOR = S_FEVOR.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            UP TO 1 ROWS.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; ENDSELECT.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;MESSAGE E000.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i enter the correct data then also it is giving error message&lt;/P&gt;&lt;P&gt;how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Smitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 06:59:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-for-ranges-in-selection-screen/m-p/5476929#M1254028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T06:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error message for ranges in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-for-ranges-in-selection-screen/m-p/5476930#M1254029</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;Refer this code:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT-OPTIONS: s_fevor FOR afko-fevor.

DATA : BEGIN OF t_fevor OCCURS 0,
         fevor TYPE afko-fevor,
       END OF t_fevor.

AT SELECTION-SCREEN FOR s_fevor.
  s_fevor-sign = 'I'.
  s_fevor-option = 'EQ'.
  s_fevor-low = S_FEVOR.
  s_fevor-high = S_FEVOR.
  APPEND s_fevor.
  CLEAR s_fevor.

  IF NOT s_fevor-low IN s_fevor.
    SELECT fevor
          FROM afko
          INTO TABLE t_fevor
          WHERE fevor IN s_fevor.
  
    IF sy-subrc NE 0.
      MESSAGE e000.
    ENDIF.
  ENDIF
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 07:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-for-ranges-in-selection-screen/m-p/5476930#M1254029</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-04-14T07:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error message for ranges in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-for-ranges-in-selection-screen/m-p/5476931#M1254030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN ON S_FEVOR.

SELECT FEVOR
FROM AFKO
INTO S_FEVOR
WHERE FEVOR IN S_FEVOR.            "  use IN instead of EQ
* UP TO 1 ROWS.
ENDSELECT.

IF SY-SUBRC NE 0.
MESSAGE E000.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 07:10:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-for-ranges-in-selection-screen/m-p/5476931#M1254030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T07:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error message for ranges in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-for-ranges-in-selection-screen/m-p/5476932#M1254031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you Tarun its working...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 07:12:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-for-ranges-in-selection-screen/m-p/5476932#M1254031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T07:12:15Z</dc:date>
    </item>
  </channel>
</rss>

