<?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: restric  selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/restric-selection-screen/m-p/1738241#M320968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT-OPTIONS : s_enterp FOR v_enterpr NO INTERVALS  ,&lt;/P&gt;&lt;P&gt;1)If you want your SELECT -OPTIONS to behave like parameters. USe the option.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS ..... NO INTERVALS NO-EXTENSION&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Dec 2006 10:43:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-26T10:43:08Z</dc:date>
    <item>
      <title>restric  selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restric-selection-screen/m-p/1738240#M320967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;if i want to restric  selection screen with select-option and i should not use &amp;lt; or &amp;gt; options  ,what is the technique plz explian me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2006 10:41:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restric-selection-screen/m-p/1738240#M320967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-26T10:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: restric  selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restric-selection-screen/m-p/1738241#M320968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT-OPTIONS : s_enterp FOR v_enterpr NO INTERVALS  ,&lt;/P&gt;&lt;P&gt;1)If you want your SELECT -OPTIONS to behave like parameters. USe the option.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS ..... NO INTERVALS NO-EXTENSION&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2006 10:43:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restric-selection-screen/m-p/1738241#M320968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-26T10:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: restric  selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restric-selection-screen/m-p/1738242#M320969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or you can use FM 'SELECT_OPTIONS_RESTRICT'  to restrict select-options in your "initialization" event... it may be useful if you need to have different restricitons for different users for example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2006 16:55:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restric-selection-screen/m-p/1738242#M320969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-26T16:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: restric  selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restric-selection-screen/m-p/1738243#M320970</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 example..for material..IT will allow only EQ option.&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: mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: so_matnr FOR mara-matnr.&lt;/P&gt;&lt;P&gt;&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;DATA: gt_restrict      TYPE sscr_restrict.&lt;/P&gt;&lt;P&gt;DATA: lwa_optlist  TYPE sscr_opt_list,&lt;/P&gt;&lt;P&gt;      lwa_ass      TYPE sscr_ass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Restricting the selection to only EQ.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;lwa_optlist-name = 'OBJECTKEY1'.&lt;/P&gt;&lt;P&gt;lwa_optlist-options-eq = 'X'.&lt;/P&gt;&lt;P&gt;APPEND lwa_optlist TO gt_restrict-opt_list_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Assign the kind and the name.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;lwa_ass-kind = 'S'.&lt;/P&gt;&lt;P&gt;lwa_ass-name = 'SO_MATNR'.&lt;/P&gt;&lt;P&gt;lwa_ass-sg_main = 'I'.&lt;/P&gt;&lt;P&gt;lwa_ass-sg_addy = space.&lt;/P&gt;&lt;P&gt;lwa_ass-op_main = 'OBJECTKEY1'.&lt;/P&gt;&lt;P&gt;APPEND lwa_ass TO gt_restrict-ass_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call the function module to restrict the select-options&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          restriction            = gt_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;&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, 26 Dec 2006 17:10:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restric-selection-screen/m-p/1738243#M320970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-26T17:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: restric  selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restric-selection-screen/m-p/1738244#M320971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have a look at this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT selectoptionsrestrict.

* Author   :  Lakshmi Sunitha
* Date     :  February 19, 2003 

* 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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2006 17:22:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restric-selection-screen/m-p/1738244#M320971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-26T17:22:53Z</dc:date>
    </item>
  </channel>
</rss>

