<?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/788789#M39850</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;Olaf's solution should be OK. Always use uppercase for this kind of variable values. I guess you've already seen, but the FM has a documentation if you need more information on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Oct 2004 10:12:48 GMT</pubDate>
    <dc:creator>ssimsekler</dc:creator>
    <dc:date>2004-10-27T10:12:48Z</dc:date>
    <item>
      <title>Restricting select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/788787#M39848</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;I came across this piece of code in ABAP FAQ. It is supposed to restrict the select-options so that the user can enter only specific options like only intervals or single values or patterns etc. But for some reason its not working for me. I am using SAP 4.7. &lt;/P&gt;&lt;P&gt;Any pointers will be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Restricting the selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZDANY_RESTRICT_SELECTION.&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;    TABLES : sflight.&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_carrid for sflight-carrid,&lt;/P&gt;&lt;P&gt;        s_connid for sflight-connid.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Restricting the carrid 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_carrid'.&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 connid 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_connid'.&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;Regards,&lt;/P&gt;&lt;P&gt;Sudeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2004 04:52:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/788787#M39848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-10-27T04:52:18Z</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/788788#M39849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudeep,&lt;/P&gt;&lt;P&gt;please correct the code as follows:&lt;/P&gt;&lt;P&gt;ass-name = 'S_CARRID'. =&amp;gt; always upper case&lt;/P&gt;&lt;P&gt;ass-name = 'S_CONNID'. =&amp;gt; always upper case&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Olaf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2004 07:12:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/788788#M39849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-10-27T07:12:55Z</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/788789#M39850</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;Olaf's solution should be OK. Always use uppercase for this kind of variable values. I guess you've already seen, but the FM has a documentation if you need more information on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2004 10:12:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-select-options/m-p/788789#M39850</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2004-10-27T10:12:48Z</dc:date>
    </item>
  </channel>
</rss>

