<?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 selection screen error message question in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message-question/m-p/1580690#M262023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On a selection screen, I have a selection-options for kunnr. If the user enters other than 100001 or 100002 or 100003 for this field, I want to display a error message. How do you do that? Can you please provide a sample code for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Sep 2006 14:34:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-13T14:34:51Z</dc:date>
    <item>
      <title>selection screen error message question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message-question/m-p/1580690#M262023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On a selection screen, I have a selection-options for kunnr. If the user enters other than 100001 or 100002 or 100003 for this field, I want to display a error message. How do you do that? Can you please provide a sample code for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 14:34:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message-question/m-p/1580690#M262023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T14:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen error message question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message-question/m-p/1580691#M262024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM check_selection_screen_data.&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;      Form  check_selection_screen_data&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;      Check for the selection screen data&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;&lt;/P&gt;&lt;P&gt;  CLEAR but000.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * INTO but000&lt;/P&gt;&lt;P&gt;            FROM but000&lt;/P&gt;&lt;P&gt;            WHERE partner IN s_cust.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e001(zesspa) WITH text-002.&lt;/P&gt;&lt;P&gt;                 "Business Partner entered is not valid&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 14:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message-question/m-p/1580691#M262024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T14:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen error message question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message-question/m-p/1580692#M262025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also define your select-option with no-intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s_kunnr-low = '10001' or s_kunnr-low = '10002' or&lt;/P&gt;&lt;P&gt;   s_kunnr-low = '10003'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  Error message.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 14:38:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message-question/m-p/1580692#M262025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T14:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen error message question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message-question/m-p/1580693#M262026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Krishen,&lt;/P&gt;&lt;P&gt; do this way ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;at selection-screen.
if s_kunnr-low = '10001' or 
   s_kunnr-low = '10002' or
   s_kunnr-low = '10003'.

&amp;lt;do something&amp;gt;

else.

 message e001 ' Enter Correct Details '.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 14:40:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message-question/m-p/1580693#M262026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T14:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen error message question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message-question/m-p/1580694#M262027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; try this&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; SELECT-OPTIONS s_kunnr for kna1-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; RANGES: r_kunnr type kna1-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; r_kunnr-sign = 'I'.&lt;/P&gt;&lt;P&gt; r_kunnr-option = 'EQ'.&lt;/P&gt;&lt;P&gt; r_kunnr-Low = '100001'&lt;/P&gt;&lt;P&gt; append r_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; r_kunnr-sign = 'I'.&lt;/P&gt;&lt;P&gt; r_kunnr-option = 'EQ'.&lt;/P&gt;&lt;P&gt; r_kunnr-Low = '100002'&lt;/P&gt;&lt;P&gt; append r_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; r_kunnr-sign = 'I'.&lt;/P&gt;&lt;P&gt; r_kunnr-option = 'EQ'.&lt;/P&gt;&lt;P&gt; r_kunnr-Low = '100003'&lt;/P&gt;&lt;P&gt; append r_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if s_kunnr IN r_kunnr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  do nothing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; ELSE.&lt;/P&gt;&lt;P&gt;  MESSAGE e000 with 'Other Values Not Permitted'.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 14:40:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message-question/m-p/1580694#M262027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T14:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen error message question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message-question/m-p/1580695#M262028</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 this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; tables : kna1.
 data: begin of it_kna1 occurs 0,
          kunnr like kna1-kunnr,
       end of it_kna1,
       v_fnd.
 select-options : s_kunnr for kna1-kunnr.

 at selection-screen on s_kunnr.

   select kunnr from kna1
                into table it_kna1
               where kunnr in s_kunnr.
   if sy-subrc = 0.
      read table it_kna1 with key kunnr = '0000100001'
                         binary search.
      if sy-subrc &amp;lt;&amp;gt; 0.
        read table it_kna1 with key kunnr = '0000100002'
                           binary search.
        if sy-subrc &amp;lt;&amp;gt; 0.
          read table it_kna1 with key kunnr = '0000100003'
                             binary search.
          if sy-subrc = 0.
            v_fnd = 'X'.
          endif.
        else.
          v_fnd = 'X'.
        endif.
      else.
        v_fnd = 'X'.
      endif.
   endif.
  if v_fnd = ' '.
    message e000(zz) with 'Invalid customer'.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sailaja N.L.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 14:41:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message-question/m-p/1580695#M262028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T14:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen error message question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message-question/m-p/1580696#M262029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   at selection-screen.&lt;/P&gt;&lt;P&gt;    r_kunnr for kna1-kunnr.&lt;/P&gt;&lt;P&gt;     r_kunnr-sign = 'I'.&lt;/P&gt;&lt;P&gt;     r_kunnr-option = 'EQ'.&lt;/P&gt;&lt;P&gt;     r_kunnr-low = '100001'.&lt;/P&gt;&lt;P&gt;     append r_kunnr.&lt;/P&gt;&lt;P&gt;       r_kunnr-low = '100002'.&lt;/P&gt;&lt;P&gt;     append r_kunnr.&lt;/P&gt;&lt;P&gt;     r_kunnr-low = '1000031'.&lt;/P&gt;&lt;P&gt;     append r_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     if not s_kunnr in r_kunnr.&lt;/P&gt;&lt;P&gt;       message eoo 'Invaid input' &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;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 14:51:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message-question/m-p/1580696#M262029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T14:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen error message question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message-question/m-p/1580697#M262030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:v_kunnr like kna1-kunnr.&lt;/P&gt;&lt;P&gt;select-options:s_kunnr for kna1-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;if s_kunnr[] is not initial.&lt;/P&gt;&lt;P&gt;if s_kunnr-low = ' 100001' or&lt;/P&gt;&lt;P&gt;   s_kunnr-low = ' 100002' or&lt;/P&gt;&lt;P&gt;   s_kunnr-low = ' 100003'.&lt;/P&gt;&lt;P&gt;   select single kunnr&lt;/P&gt;&lt;P&gt;       from kna1&lt;/P&gt;&lt;P&gt;       into v_kunnr&lt;/P&gt;&lt;P&gt;       where kunnr in  s_kunnr.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;message e000 with 'Plz enter valid customer'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 14:54:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message-question/m-p/1580697#M262030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T14:54:45Z</dc:date>
    </item>
  </channel>
</rss>

