<?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 options -restricting the operator value options. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-restricting-the-operator-value-options/m-p/5173351#M1197764</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;In selection screen for the  select options or parameter declarations  I need to restrict the operator options , like when they click for any select options it will give options to select = , #, &amp;lt;, &amp;lt;= , &amp;gt; , &amp;gt;= &lt;/P&gt;&lt;P&gt;all these options right.&lt;/P&gt;&lt;P&gt;I would like to restrict the user  to select only &amp;gt; and &amp;gt;=  while passing values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me idea how I can approach this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Feb 2009 20:16:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-17T20:16:06Z</dc:date>
    <item>
      <title>Select options -restricting the operator value options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-restricting-the-operator-value-options/m-p/5173351#M1197764</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;In selection screen for the  select options or parameter declarations  I need to restrict the operator options , like when they click for any select options it will give options to select = , #, &amp;lt;, &amp;lt;= , &amp;gt; , &amp;gt;= &lt;/P&gt;&lt;P&gt;all these options right.&lt;/P&gt;&lt;P&gt;I would like to restrict the user  to select only &amp;gt; and &amp;gt;=  while passing values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me idea how I can approach this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 20:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-restricting-the-operator-value-options/m-p/5173351#M1197764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T20:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select options -restricting the operator value options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-restricting-the-operator-value-options/m-p/5173352#M1197765</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 use the function module SELECT_OPTIONS_RESTRICT in the INITIALIZATION event..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search in SDN with this function module you will get a sample code..Or put a where used list of this function module...you will get to know how to populate the parameters..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 20:20:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-restricting-the-operator-value-options/m-p/5173352#M1197765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T20:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select options -restricting the operator value options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-restricting-the-operator-value-options/m-p/5173353#M1197766</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 Code.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zs_list_select_option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Include type pool SSCR &lt;/P&gt;&lt;P&gt;type-pools sscr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : marc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;defining the selection-screen &lt;/P&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;P&gt;&lt;/P&gt;&lt;P&gt;Define the object to be passed to the RESTRICTION parameter &lt;/P&gt;&lt;P&gt;data restrict type sscr_restrict.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Auxiliary objects for filling RESTRICT &lt;/P&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;P&gt;&lt;/P&gt;&lt;P&gt;Restricting the MATNR selection to only EQ and 'BT'. &lt;/P&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;P&gt;&lt;/P&gt;&lt;P&gt;Restricting the WERKS selection to CP, GE, LT, NE. &lt;/P&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 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>Tue, 17 Feb 2009 22:46:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-restricting-the-operator-value-options/m-p/5173353#M1197766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T22:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select options -restricting the operator value options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-restricting-the-operator-value-options/m-p/5173354#M1197767</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 INTIALIZATION event, try to set the of select-option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;s_matnr-sign = 'I'.&lt;/P&gt;&lt;P&gt;s_matnr-option = 'GT',&lt;/P&gt;&lt;P&gt;s_matnr-option = '100'.&lt;/P&gt;&lt;P&gt;s_matnr-option = '300'.&lt;/P&gt;&lt;P&gt;append s_matnr.&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'). This means that you can considerably restrict the selections which can be entered on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: abhishek prakash on Feb 18, 2009 3:24 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 02:09:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-restricting-the-operator-value-options/m-p/5173354#M1197767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T02:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select options -restricting the operator value options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-restricting-the-operator-value-options/m-p/5173355#M1197768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use this FM...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT_OPTIONS_RESTRICT can be use to supress options available with a SELECT-OPTIONS on a selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jusy copy the code and execute it....It will give the exact output what u want.....&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;P&gt;TYPE-POOLS sscr.&lt;/P&gt;&lt;P&gt;TABLES : marc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Define the object to be passed to the RESTRICTION parameter&lt;/P&gt;&lt;P&gt;DATA restrict TYPE sscr_restrict.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Auxiliary objects for filling RESTRICT &lt;/P&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;*Defining the selection-screen &lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : 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;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Restricting the MATNR selection to only EQ and 'BT'.&lt;/P&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;P&gt;*Restricting the WERKS selection to CP, GE, LT, NE.&lt;/P&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;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;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 03:50:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-restricting-the-operator-value-options/m-p/5173355#M1197768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T03:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Select options -restricting the operator value options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-restricting-the-operator-value-options/m-p/5173356#M1197769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did u try that one..&lt;/P&gt;&lt;P&gt;I tried in my system..it is working...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 04:50:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-restricting-the-operator-value-options/m-p/5173356#M1197769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T04:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Select options -restricting the operator value options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-restricting-the-operator-value-options/m-p/5173357#M1197770</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;For select-optionsn you can restrict the values by using SELECT_OPTIONS_RESTRICT function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 05:10:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-restricting-the-operator-value-options/m-p/5173357#M1197770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T05:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Select options -restricting the operator value options.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-restricting-the-operator-value-options/m-p/5173358#M1197771</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;Thanks for all..&lt;/P&gt;&lt;P&gt;I solved the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 02:58:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-restricting-the-operator-value-options/m-p/5173358#M1197771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-19T02:58:05Z</dc:date>
    </item>
  </channel>
</rss>

