<?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: Restricting Select-options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353519#M176809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Amar Singh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the f.Modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) RS_INT_SELOPT_RESTRICT&lt;/P&gt;&lt;P&gt;2) SELECT_OPTIONS_RESTRICT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the following Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT SELECTOPTIONSRESTRICT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Include type pool SSCR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPE-POOLS SSCR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES :&lt;/P&gt;&lt;P&gt;  MARC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;defining the selection-screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT-OPTIONS :&lt;/P&gt;&lt;P&gt;  S_MATNR FOR MARC-MATNR,&lt;/P&gt;&lt;P&gt;  S_WERKS FOR MARC-WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Define the object to be passed to the RESTRICTION parameter&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA RESTRICT TYPE SSCR_RESTRICT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Auxiliary objects for filling RESTRICT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA : OPTLIST TYPE SSCR_OPT_LIST,&lt;/P&gt;&lt;P&gt;           ASS TYPE SSCR_ASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Restricting the MATNR selection to only EQ and 'BT'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  OPTLIST-NAME = 'OBJECTKEY1'.&lt;/P&gt;&lt;P&gt;  OPTLIST-OPTIONS-EQ = 'X'.&lt;/P&gt;&lt;P&gt;  OPTLIST-OPTIONS-BT = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND OPTLIST TO RESTRICT-OPT_LIST_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ASS-KIND = 'S'.&lt;/P&gt;&lt;P&gt;  ASS-NAME = 'S_MATNR'.&lt;/P&gt;&lt;P&gt;  ASS-SG_MAIN = 'I'.&lt;/P&gt;&lt;P&gt;  ASS-SG_ADDY = SPACE.&lt;/P&gt;&lt;P&gt;  ASS-OP_MAIN = 'OBJECTKEY1'.&lt;/P&gt;&lt;P&gt;  APPEND ASS TO RESTRICT-ASS_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Restricting the WERKS selection to CP, GE, LT, NE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  OPTLIST-NAME = 'OBJECTKEY2'.&lt;/P&gt;&lt;P&gt;  OPTLIST-OPTIONS-CP = 'X'.&lt;/P&gt;&lt;P&gt;  OPTLIST-OPTIONS-GE = 'X'.&lt;/P&gt;&lt;P&gt;  OPTLIST-OPTIONS-LT = 'X'.&lt;/P&gt;&lt;P&gt;  OPTLIST-OPTIONS-NE = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND OPTLIST TO RESTRICT-OPT_LIST_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ASS-KIND = 'S'.&lt;/P&gt;&lt;P&gt;  ASS-NAME = 'S_WERKS'.&lt;/P&gt;&lt;P&gt;  ASS-SG_MAIN = 'I'.&lt;/P&gt;&lt;P&gt;  ASS-SG_ADDY = SPACE.&lt;/P&gt;&lt;P&gt;  ASS-OP_MAIN = 'OBJECTKEY2'.&lt;/P&gt;&lt;P&gt;  APPEND ASS TO RESTRICT-ASS_TAB.&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;P&gt;    RESTRICTION                  = RESTRICT&lt;/P&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;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 May 2006 06:04:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-24T06:04:14Z</dc:date>
    <item>
      <title>Restricting Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353514#M176804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to restrict select-options at runtime. can anybody suggest me that how it will do??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 05:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353514#M176804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T05:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353515#M176805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. SELECT_OPTIONS_RESTRICT&lt;/P&gt;&lt;P&gt;   This is the required FM for this purpose.&lt;/P&gt;&lt;P&gt;   (It is a little difficult to use,&lt;/P&gt;&lt;P&gt;    also see documentation on this FM).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. just copy paste in new program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;REPORT abc NO STANDARD PAGE HEADING.&lt;/P&gt;&lt;P&gt;TYPE-POOLS : sscr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;  Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : t001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; IMPORTANT VARIABLES&lt;/P&gt;&lt;P&gt;DATA : res TYPE sscr_restrict.&lt;/P&gt;&lt;P&gt;DATA : opt_list TYPE sscr_opt_list.&lt;/P&gt;&lt;P&gt;DATA : ass      TYPE sscr_ass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt; Sel Screen.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : bukrs FOR t001-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt; IMPORTANT CODE&lt;/P&gt;&lt;P&gt;  opt_list-name = 'A'.&lt;/P&gt;&lt;P&gt;  opt_list-options-eq = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND opt_list TO res-opt_list_tab.&lt;/P&gt;&lt;P&gt;  ass-kind = 'A'.&lt;/P&gt;&lt;P&gt;  ass-name = 'BUKRS'.&lt;/P&gt;&lt;P&gt;  ass-op_main = 'A'.&lt;/P&gt;&lt;P&gt;  ass-sg_main = '*'.&lt;/P&gt;&lt;P&gt;  APPEND ass TO res-ass_tab.&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                  = res&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;  BREAK-POINT.&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 06:00:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353515#M176805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T06:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353516#M176806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you mean by runtime?&lt;/P&gt;&lt;P&gt;NO-OPTIONS and NO-INTERVALS will restrict the select options. The function module &amp;lt;b&amp;gt; RS_INT_SELOPT_RESTRICT &amp;lt;/b&amp;gt; can be use to restrict the select options dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers and close the thread if the issue is resolved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 06:01:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353516#M176806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T06:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353517#M176807</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;You can check and restrict select-options in&lt;/P&gt;&lt;P&gt;"AT SELECTION-SCREEN".&lt;/P&gt;&lt;P&gt;There you can analyze the users input and react i.e. with an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand you can restirct them using add-on's to the SELECT-OPTIONS command (see help on the command).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some points would be fine if that helped a bit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 06:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353517#M176807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T06:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353518#M176808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;go thru the ABAP FAQs in the Home Page of this site ( SDN )..&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 06:03:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353518#M176808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T06:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353519#M176809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Amar Singh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the f.Modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) RS_INT_SELOPT_RESTRICT&lt;/P&gt;&lt;P&gt;2) SELECT_OPTIONS_RESTRICT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the following Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT SELECTOPTIONSRESTRICT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Include type pool SSCR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPE-POOLS SSCR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES :&lt;/P&gt;&lt;P&gt;  MARC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;defining the selection-screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT-OPTIONS :&lt;/P&gt;&lt;P&gt;  S_MATNR FOR MARC-MATNR,&lt;/P&gt;&lt;P&gt;  S_WERKS FOR MARC-WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Define the object to be passed to the RESTRICTION parameter&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA RESTRICT TYPE SSCR_RESTRICT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Auxiliary objects for filling RESTRICT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA : OPTLIST TYPE SSCR_OPT_LIST,&lt;/P&gt;&lt;P&gt;           ASS TYPE SSCR_ASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Restricting the MATNR selection to only EQ and 'BT'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  OPTLIST-NAME = 'OBJECTKEY1'.&lt;/P&gt;&lt;P&gt;  OPTLIST-OPTIONS-EQ = 'X'.&lt;/P&gt;&lt;P&gt;  OPTLIST-OPTIONS-BT = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND OPTLIST TO RESTRICT-OPT_LIST_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ASS-KIND = 'S'.&lt;/P&gt;&lt;P&gt;  ASS-NAME = 'S_MATNR'.&lt;/P&gt;&lt;P&gt;  ASS-SG_MAIN = 'I'.&lt;/P&gt;&lt;P&gt;  ASS-SG_ADDY = SPACE.&lt;/P&gt;&lt;P&gt;  ASS-OP_MAIN = 'OBJECTKEY1'.&lt;/P&gt;&lt;P&gt;  APPEND ASS TO RESTRICT-ASS_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Restricting the WERKS selection to CP, GE, LT, NE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  OPTLIST-NAME = 'OBJECTKEY2'.&lt;/P&gt;&lt;P&gt;  OPTLIST-OPTIONS-CP = 'X'.&lt;/P&gt;&lt;P&gt;  OPTLIST-OPTIONS-GE = 'X'.&lt;/P&gt;&lt;P&gt;  OPTLIST-OPTIONS-LT = 'X'.&lt;/P&gt;&lt;P&gt;  OPTLIST-OPTIONS-NE = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND OPTLIST TO RESTRICT-OPT_LIST_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ASS-KIND = 'S'.&lt;/P&gt;&lt;P&gt;  ASS-NAME = 'S_WERKS'.&lt;/P&gt;&lt;P&gt;  ASS-SG_MAIN = 'I'.&lt;/P&gt;&lt;P&gt;  ASS-SG_ADDY = SPACE.&lt;/P&gt;&lt;P&gt;  ASS-OP_MAIN = 'OBJECTKEY2'.&lt;/P&gt;&lt;P&gt;  APPEND ASS TO RESTRICT-ASS_TAB.&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;P&gt;    RESTRICTION                  = RESTRICT&lt;/P&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;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 06:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353519#M176809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T06:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353520#M176810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;GOOD&lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;On the "Multiple Selection" screen, you can also enter ranges for selection options with " NO INTERVALS ". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By combining this addition with " NO-EXTENSION ", you can restrict the user to entry of a single value for the selection option, but with the possibility of also choosing single value options like 'Greater than' or 'Less than or equal'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using the addition " NO INTERVALS " with SELECTION-SCREEN BEGIN OF BLOCK , you can activate the simplified display for all selection options in a block. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module SELECT_OPTIONS_RESTRICT allows you to restrict the set of selection options available for a SELECT-OPTION (for example, only single values and patterns, i.e. 'EQ' and 'CP' are allowed). You can also forbid the leading sign 'E' (= 'Exclude from selection'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;MRUTYUN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 06:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353520#M176810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T06:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353521#M176811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi amar,&lt;/P&gt;&lt;P&gt;tried out select-options-restrict FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Include type pool SSCR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPE-POOLS: sscr,&lt;/P&gt;&lt;P&gt;            slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Restricting the MATNR selection to only EQ and 'BT'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  opt_list-name = 'OBJECTKEY1'.&lt;/P&gt;&lt;P&gt;  opt_list-options-eq = 'X'.&lt;/P&gt;&lt;P&gt;  opt_list-options-bt = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND opt_list TO restrict-opt_list_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ass-kind = 'S'.&lt;/P&gt;&lt;P&gt;  ass-name = 'S_AYEAR'.&lt;/P&gt;&lt;P&gt;  ass-sg_main = 'I'.&lt;/P&gt;&lt;P&gt;  ass-sg_addy = space.&lt;/P&gt;&lt;P&gt;  ass-op_main = 'OBJECTKEY1'.&lt;/P&gt;&lt;P&gt;  APPEND ass TO restrict-ass_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  opt_list-name = 'OBJECTKEY2'.&lt;/P&gt;&lt;P&gt;  opt_list-options-eq = 'X'.&lt;/P&gt;&lt;P&gt;  opt_list-options-bt = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND opt_list TO restrict-opt_list_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ass-kind = 'S'.&lt;/P&gt;&lt;P&gt;  ass-name = 'S_APERD'.&lt;/P&gt;&lt;P&gt;  ass-sg_main = 'I'.&lt;/P&gt;&lt;P&gt;  ass-sg_addy = space.&lt;/P&gt;&lt;P&gt;  ass-op_main = 'OBJECTKEY2'.&lt;/P&gt;&lt;P&gt;  APPEND ass TO restrict-ass_tab.&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;P&gt;      restriction            = restrict&lt;/P&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;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 09:07:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353521#M176811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T09:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353522#M176812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;    
REPORT TESTREP.

* 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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 09:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353522#M176812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T09:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353523#M176813</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..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ZTEST_OPTIONS_RESTRICT.

* Include type pool SSCR
TYPE-POOLS sscr.
TABLES :
  marc.
* defining the selection-screen
select-options :
  s_matnr for marc-matnr,
  s_werks for marc-werks.

* Define the object to be passed to the RESTRICTION parameter
DATA restrict TYPE sscr_restrict.

* Auxiliary objects for filling RESTRICT
DATA : optlist TYPE sscr_opt_list,
           ass type sscr_ass.

INITIALIZATION.

* Restricting the MATNR selection to only EQ and 'BT'.
  optlist-name = 'OBJECTKEY1'.
  optlist-options-eq = 'X'.
  optlist-options-bt = 'X'.
  APPEND optlist TO restrict-opt_list_tab.

  ass-kind = 'S'.
  ass-name = 'S_MATNR'.
  ass-sg_main = 'I'.
  ass-sg_addy = space.
  ass-op_main = 'OBJECTKEY1'.
  APPEND ass TO restrict-ass_tab.

* Restricting the WERKS selection to CP, GE, LT, NE.
  optlist-name = 'OBJECTKEY2'.
  optlist-options-cp = 'X'.
  optlist-options-ge = 'X'.
  optlist-options-lt = 'X'.
  optlist-options-ne = 'X'.
  APPEND optlist TO restrict-opt_list_tab.

  ass-kind = 'S'.
  ass-name = 'S_WERKS'.
  ass-sg_main = 'I'.
  ass-sg_addy = space.
  ass-op_main = 'OBJECTKEY2'.
  APPEND ass TO restrict-ass_tab.

  CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
   EXPORTING
    restriction                  = restrict
   EXCEPTIONS
     TOO_LATE                     = 1
     REPEATED                     = 2
     SELOPT_WITHOUT_OPTIONS       = 3
     SELOPT_WITHOUT_SIGNS         = 4
     INVALID_SIGN                 = 5
     EMPTY_OPTION_LIST            = 6
     INVALID_KIND                 = 7
     REPEATED_KIND_A              = 8
     OTHERS                       = 9
            .
  IF sy-subrc &amp;lt;&amp;gt; 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 09:34:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/1353523#M176813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T09:34:18Z</dc:date>
    </item>
  </channel>
</rss>

