<?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: Enable Exclude Options Only : Using SELECT_OPTIONS_RESTRICT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-exclude-options-only-using-select-options-restrict/m-p/7987806#M1605323</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;Please check the below threads, You too can search as this has been answered many a times&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="8475733"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="8227278"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="498650"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://forums.sdn.sap.com/search.jspa?threadID=&amp;amp;q=Display" target="test_blank"&gt;http://forums.sdn.sap.com/search.jspa?threadID=&amp;amp;q=Display&lt;/A&gt;&lt;EM&gt;%22Exclude&lt;/EM&gt;Single&lt;EM&gt;Values%22&lt;/EM&gt;tab&lt;EM&gt;only&lt;/EM&gt;in&lt;EM&gt;a&lt;/EM&gt;Select&lt;EM&gt;Option&lt;/EM&gt;dialog+&amp;amp;objID=&amp;amp;dateRange=all&amp;amp;numResults=30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jul 2011 08:44:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-07-01T08:44:25Z</dc:date>
    <item>
      <title>Enable Exclude Options Only : Using SELECT_OPTIONS_RESTRICT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-exclude-options-only-using-select-options-restrict/m-p/7987805#M1605322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have select options for one field. I would like to include only "Excluded Single Values" Tab Only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody will suggest me how to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had tried to use various ways but didn't succeed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below sample code for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&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;&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; optlist-options-nb = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  optlist-options-ne = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; optlist-options-np = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;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;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 08:26:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enable-exclude-options-only-using-select-options-restrict/m-p/7987805#M1605322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-01T08:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Exclude Options Only : Using SELECT_OPTIONS_RESTRICT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-exclude-options-only-using-select-options-restrict/m-p/7987806#M1605323</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;Please check the below threads, You too can search as this has been answered many a times&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="8475733"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="8227278"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="498650"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://forums.sdn.sap.com/search.jspa?threadID=&amp;amp;q=Display" target="test_blank"&gt;http://forums.sdn.sap.com/search.jspa?threadID=&amp;amp;q=Display&lt;/A&gt;&lt;EM&gt;%22Exclude&lt;/EM&gt;Single&lt;EM&gt;Values%22&lt;/EM&gt;tab&lt;EM&gt;only&lt;/EM&gt;in&lt;EM&gt;a&lt;/EM&gt;Select&lt;EM&gt;Option&lt;/EM&gt;dialog+&amp;amp;objID=&amp;amp;dateRange=all&amp;amp;numResults=30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 08:44:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enable-exclude-options-only-using-select-options-restrict/m-p/7987806#M1605323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-01T08:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Exclude Options Only : Using SELECT_OPTIONS_RESTRICT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-exclude-options-only-using-select-options-restrict/m-p/7987807#M1605324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK it is not possible as you can only allow both or include only tabs (values allowed in  SG_MAIN field in SSCR_ASS). So you can only display only include tab with mandatoty NE option, which will not be very user-friendly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to restrict your select-option to a list of EQ values, and in your program AT SELECTIOn-SCREEN map the select-option to a range type, converting I-EQ records to E-EQ and use this range in your SELECT options. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Keep also in mind that usually SQL optimizers dislike Exclusions...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 09:14:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enable-exclude-options-only-using-select-options-restrict/m-p/7987807#M1605324</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-07-01T09:14:03Z</dc:date>
    </item>
  </channel>
</rss>

