<?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 select option multiple single values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-single-values/m-p/1864102#M364541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using select option for user id in the selection screen . If i give any multiple single values and if there is no data for a particular user X , a message saying "no data for the user X" must be displayed . I dont know how to handle these multiple values . All the data is stored in an internal table .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jan 2007 21:56:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-16T21:56:48Z</dc:date>
    <item>
      <title>select option multiple single values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-single-values/m-p/1864102#M364541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using select option for user id in the selection screen . If i give any multiple single values and if there is no data for a particular user X , a message saying "no data for the user X" must be displayed . I dont know how to handle these multiple values . All the data is stored in an internal table .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 21:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-single-values/m-p/1864102#M364541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T21:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: select option multiple single values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-single-values/m-p/1864103#M364542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In the at selection-screen for s_opt-low event,&lt;/P&gt;&lt;P&gt;use a select query to check theUSR02 to chek the userid.&lt;/P&gt;&lt;P&gt;If it does not exist pop-up the erro message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have multiple selection option, write the same code in at selection-screen for s_opt-high also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regadrs&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 22:01:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-single-values/m-p/1864103#M364542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T22:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: select option multiple single values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-single-values/m-p/1864104#M364543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use FM SELECT_OPTIONS_RESTRICT to force the user to enter single values only. then you can loop throught the select-option to process values rather than use IN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 22:03:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-single-values/m-p/1864104#M364543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T22:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: select option multiple single values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-single-values/m-p/1864105#M364544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to check each value,  you need to LOOP at the select-option and check each value against the table.  Something like this, maybe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .

data: iusr01 type table of usr01 with header line.

select-options: s_bname for iusr01-bname.

at selection-screen.

check sy-ucomm = 'ONLI'
   or sy-ucomm = space.

  select * into table iusr01
                 from usr01
                        where bname in s_bname.

  loop at s_bname.

    read table iusr01 with key bname = s_bname-low.
    if sy-subrc  &amp;lt;&amp;gt;  0.
      message i001(00) with 'User ' s_bname-low ' does not exist'.
    endif.

  endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 22:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-single-values/m-p/1864105#M364544</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-16T22:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: select option multiple single values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-single-values/m-p/1864106#M364545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  IF s_user IS INITIAL.&lt;/P&gt;&lt;P&gt;    "Display enter user id message........"&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF not S_user[] IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check selected User ID exist in User Master&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    SELECT bname&lt;/P&gt;&lt;P&gt;           FROM usr01&lt;/P&gt;&lt;P&gt;           INTO d_bname&lt;/P&gt;&lt;P&gt;           WHERE bname IN S_user.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE "No data selected".&lt;/P&gt;&lt;P&gt;      STOP.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 22:11:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-single-values/m-p/1864106#M364545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T22:11:40Z</dc:date>
    </item>
  </channel>
</rss>

