<?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: Select-Option: Multiple Selection Exclude values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586011#M591706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is using that Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        PROGRAM                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            restriction            = restriction&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        DB                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;       too_late               = 1&lt;/P&gt;&lt;P&gt;       repeated               = 2&lt;/P&gt;&lt;P&gt;       selopt_without_options = 3&lt;/P&gt;&lt;P&gt;       selopt_without_signs   = 4&lt;/P&gt;&lt;P&gt;       invalid_sign           = 5&lt;/P&gt;&lt;P&gt;       empty_option_list      = 6&lt;/P&gt;&lt;P&gt;       invalid_kind           = 7&lt;/P&gt;&lt;P&gt;       repeated_kind_a        = 8&lt;/P&gt;&lt;P&gt;       OTHERS                 = 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Tom M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2007 15:13:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-27T15:13:14Z</dc:date>
    <item>
      <title>Select-Option: Multiple Selection Exclude values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586007#M591702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an old program that only allows to "include" a certain range of values on the selection-screen. I need to be able to choose "excluded" values. I cannot remember the syntax. The code is below.&lt;/P&gt;&lt;P&gt;                          Thank-You.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: cusobj FOR objs-objectname OBLIGATORY,&lt;/P&gt;&lt;P&gt;                                   stype FOR objs-objecttype NO-DISPLAY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 15:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586007#M591702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T15:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Option: Multiple Selection Exclude values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586008#M591703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom, this kind of thing can be handled in the coding of your program.  Can you post all of the code of the program so we can make sure that it is not be restricted via code.  IF it is, it might be using funciton module SELECT_OPTION_RESTRICT.&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>Fri, 27 Jul 2007 15:06:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586008#M591703</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-07-27T15:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Option: Multiple Selection Exclude values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586009#M591704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Syntax would be some what like this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options smatnr for mara-matnr DEFAULT 0 TO 'ZZZZZZZZ' sign E.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if usefull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Veerendrnath maddula.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 15:12:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586009#M591704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T15:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Option: Multiple Selection Exclude values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586010#M591705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   You can write the code under initialization section of the program to include or exclude some values.&lt;/P&gt;&lt;P&gt;Here is the sample code&lt;/P&gt;&lt;P&gt;Initialization.&lt;/P&gt;&lt;P&gt;s_vbeln-opt = 'I'.&lt;/P&gt;&lt;P&gt;s_vbeln-sign = 'BT'.&lt;/P&gt;&lt;P&gt;s_vbeln-low = 100.&lt;/P&gt;&lt;P&gt;s_vbeln-high = 800.&lt;/P&gt;&lt;P&gt;append s_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_vbeln-opt = 'E'.&lt;/P&gt;&lt;P&gt;s_vbeln-sign = 'BT'.&lt;/P&gt;&lt;P&gt;s_vbeln-low = 120.&lt;/P&gt;&lt;P&gt;s_vbeln-high = 150.&lt;/P&gt;&lt;P&gt;append s_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 15:13:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586010#M591705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T15:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Option: Multiple Selection Exclude values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586011#M591706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is using that Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        PROGRAM                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            restriction            = restriction&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        DB                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;       too_late               = 1&lt;/P&gt;&lt;P&gt;       repeated               = 2&lt;/P&gt;&lt;P&gt;       selopt_without_options = 3&lt;/P&gt;&lt;P&gt;       selopt_without_signs   = 4&lt;/P&gt;&lt;P&gt;       invalid_sign           = 5&lt;/P&gt;&lt;P&gt;       empty_option_list      = 6&lt;/P&gt;&lt;P&gt;       invalid_kind           = 7&lt;/P&gt;&lt;P&gt;       repeated_kind_a        = 8&lt;/P&gt;&lt;P&gt;       OTHERS                 = 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Tom M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 15:13:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586011#M591706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T15:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Option: Multiple Selection Exclude values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586012#M591707</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;Comment NO-DISPLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT-OPTIONS: cusobj FOR objs-objectname OBLIGATORY,
* MEMORY ID dvi,
stype FOR objs-objecttype. " NO-DISPLAY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 15:19:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586012#M591707</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-07-27T15:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Option: Multiple Selection Exclude values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586013#M591708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That that is the mechisum that is restricting the select-options to only allow you to enter "include" range.  You must modify this coding to allow your "Excule" range as well.  Can you post all surrounding code associated with this function module call.  &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>Fri, 27 Jul 2007 15:22:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586013#M591708</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-07-27T15:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Option: Multiple Selection Exclude values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586014#M591709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  SELOPT_NO_INTERV&lt;/P&gt;&lt;P&gt;*&amp;amp;----&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;      Selektionsoption wird auf Eingabe von Einzelwerten beschränkt&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      UF25081999&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&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;     --&amp;gt;P_SELOPT   Name der Selektionsoption&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FORM selopt_no_interv USING    value(p_selopt) TYPE blockname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: restriction TYPE sscr_restrict,&lt;/P&gt;&lt;P&gt;        w_opt_list TYPE sscr_opt_list,&lt;/P&gt;&lt;P&gt;        w_ass_tab TYPE sscr_ass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  w_opt_list-name = 'NO_EXCL'.&lt;/P&gt;&lt;P&gt;  w_opt_list-options-eq = 'X'.&lt;/P&gt;&lt;P&gt;  w_opt_list-options-bt = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND w_opt_list TO restriction-opt_list_tab.&lt;/P&gt;&lt;P&gt;  w_ass_tab-kind = 'S'.&lt;/P&gt;&lt;P&gt;  w_ass_tab-name = p_selopt.&lt;/P&gt;&lt;P&gt;  w_ass_tab-sg_main = 'I'.&lt;/P&gt;&lt;P&gt;  w_ass_tab-sg_addy = ' '.&lt;/P&gt;&lt;P&gt;  w_ass_tab-op_main = 'NO_EXCL'.&lt;/P&gt;&lt;P&gt;  w_ass_tab-op_addy = 'NO_EXCL'.&lt;/P&gt;&lt;P&gt;  APPEND w_ass_tab TO restriction-ass_tab.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        PROGRAM                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            restriction            = restriction&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        DB                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;       too_late               = 1&lt;/P&gt;&lt;P&gt;       repeated               = 2&lt;/P&gt;&lt;P&gt;       selopt_without_options = 3&lt;/P&gt;&lt;P&gt;       selopt_without_signs   = 4&lt;/P&gt;&lt;P&gt;       invalid_sign           = 5&lt;/P&gt;&lt;P&gt;       empty_option_list      = 6&lt;/P&gt;&lt;P&gt;       invalid_kind           = 7&lt;/P&gt;&lt;P&gt;       repeated_kind_a        = 8&lt;/P&gt;&lt;P&gt;       OTHERS                 = 9.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                               " SELOPT_NO_INTERV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 15:24:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586014#M591709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T15:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Option: Multiple Selection Exclude values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586015#M591710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Small Correction:&lt;/P&gt;&lt;P&gt;Below code need to change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_opt_list-name = 'NO_EXCL'.&lt;/P&gt;&lt;P&gt;w_opt_list-options-eq = 'X'. "comment out&lt;/P&gt;&lt;P&gt;w_opt_list-options-bt = 'X'.  "comment out&lt;/P&gt;&lt;P&gt;w_opt_list-options-nb = 'X'.  "insert  - SELECT-OPTIONS: Exclude range active&lt;/P&gt;&lt;P&gt;w_opt_list-options-ne = 'X'.  "insert  - SELECT-OPTIONS: Exclude single value  &lt;/P&gt;&lt;P&gt;                                                      active&lt;/P&gt;&lt;P&gt;w_opt_list-options-np = 'X'.  "insert  - SELECT-OPTIONS: Exclude pattern active&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check RSOPTIONS structure which is used for the reference w_opt_list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 15:34:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586015#M591710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T15:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Option: Multiple Selection Exclude values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586016#M591711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so do you want to allow the user to exclude as well?  If so, simply comment all this coding out.  Or do you only want to allow them to do  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include single&lt;/P&gt;&lt;P&gt;include range&lt;/P&gt;&lt;P&gt;exclude range&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>Fri, 27 Jul 2007 15:36:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586016#M591711</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-07-27T15:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Option: Multiple Selection Exclude values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586017#M591712</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;Check this sample code, may this will help you in changing the program according your needs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report  zz_selection_screen_test                .

* Include type pool SSCR
type-pools sscr.

* Define the object to be passed to the RESTRICTION parameter
data restrict type sscr_restrict.

* Auxiliary objects for filling RESTRICT
data opt_list type sscr_opt_list.
data ass      type sscr_ass.

* Define the selection screen objects
* First block: 3 SELECT-OPTIONS
selection-screen begin of block block_0 with frame title text-bl0.
  select-options sel_0_0 for sy-tvar0.
  select-options sel_0_1 for sy-tvar1.
  select-options sel_0_2 for sy-tvar2.
  select-options sel_0_3 for sy-tvar3.
selection-screen end   of block block_0.

* Second block: 2 SELECT-OPTIONS
selection-screen begin of block block_1 with frame title text-bl1.
  select-options sel_1_0 for sy-subrc.
  select-options sel_1_1 for sy-repid.
selection-screen end   of block block_1.

initialization.

* Define the option list

* ALL: All options allowed
  move 'ALL'        to opt_list-name.
  move 'X' to: opt_list-options-bt,
               opt_list-options-cp,
               opt_list-options-eq,
               opt_list-options-ge,
               opt_list-options-gt,
               opt_list-options-le,
               opt_list-options-lt,
               opt_list-options-nb,
               opt_list-options-ne,
               opt_list-options-np.
  append opt_list to restrict-opt_list_tab.

* NOPATTERN: CP and NP not allowed
  clear opt_list.
  move 'NOPATTERN'  to opt_list-name.
  move 'X' to: opt_list-options-bt,
               opt_list-options-eq,
               opt_list-options-ge,
               opt_list-options-gt,
               opt_list-options-le,
               opt_list-options-lt,
               opt_list-options-nb,
               opt_list-options-ne.
  append opt_list to restrict-opt_list_tab.

* NOINTERVLS: BT and NB not allowed
  clear opt_list.
  move 'NOINTERVLS' to opt_list-name.
  move 'X' to: opt_list-options-cp,
               opt_list-options-eq,
               opt_list-options-ge,
               opt_list-options-gt,
               opt_list-options-le,
               opt_list-options-lt,
               opt_list-options-ne,
               opt_list-options-np.
  append opt_list to restrict-opt_list_tab.

* EQ_AND_CP: only EQ and CP allowed
  clear opt_list.
  move 'EQ_AND_CP'  to opt_list-name.
  move 'X' to: opt_list-options-cp,
               opt_list-options-eq.
  append opt_list to restrict-opt_list_tab.

* JUST_EQ: Only EQ allowed
  clear opt_list.
  move 'JUST_EQ' to opt_list-name.
  move 'X' to opt_list-options-eq.
  append opt_list to restrict-opt_list_tab.

* Assign selection screen objects to option list and sign

* KIND = 'A': applies to all SELECT-OPTIONS
  move: 'A'          to ass-kind,
        '*'          to ass-sg_main,
        'NOPATTERN'  to ass-op_main,
        'NOINTERVLS' to ass-op_addy.
  append ass to restrict-ass_tab.

* KIND = 'B': applies to all SELECT-OPTIONS in block BLOCK_0,
*             that is, SEL_0_0, SEL_0_1, SEL_0_2
  clear ass.

  move: 'B'          to ass-kind,
        'BLOCK_0'    to ass-name,
        'I'          to ass-sg_main,
        '*'          to ass-sg_addy,
        'NOINTERVLS' to ass-op_main.
  append ass to restrict-ass_tab.

* KIND = 'S': applies to SELECT-OPTION SEL-0-2
  clear ass.
  move: 'S'          to ass-kind,
        'SEL_0_2'    to ass-name,
        'I'          to ass-sg_main,
        '*'          to ass-sg_addy,
        'EQ_AND_CP'  to ass-op_main,
        'ALL'        to ass-op_addy.
  append ass to restrict-ass_tab.

* KIND = 'S': Applies to SELECT-OPTION SEL_0_3
  clear ass.
  move: 'S'        to ass-kind,
        'SEL_0_3'  to ass-name,
        'I'        to ass-sg_main,
        'N'        to ass-sg_addy,
        'JUST_EQ'  to ass-op_main.
  append ass to restrict-ass_tab.

* Call function module
  call function 'SELECT_OPTIONS_RESTRICT'
       exporting
             restriction                = restrict
*           DB                          = ' '
       exceptions
             too_late                   = 1
             repeated                   = 2
             not_during_submit          = 3
             db_call_after_report_call  = 4
             selopt_without_options     = 5
             selopt_without_signs       = 6
             invalid_sign               = 7
             report_call_after_db_error = 8
             empty_option_list          = 9
             invalid_kind               = 10
             repeated_kind_a            = 11
             others                     = 12.

* Exception handling
  if sy-subrc ne 0.
*     ...
  endif.

*  ...

start-of-selection.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 15:39:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-multiple-selection-exclude-values/m-p/2586017#M591712</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-07-27T15:39:02Z</dc:date>
    </item>
  </channel>
</rss>

