<?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: Restrict Select-option tab view in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-select-option-tab-view/m-p/6406425#M1407082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sir let me try this ... will inform as soon as i tried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Dec 2009 09:44:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-01T09:44:18Z</dc:date>
    <item>
      <title>Restrict Select-option tab view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-select-option-tab-view/m-p/6406423#M1407080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Guru,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an encountered an issue which i am fighting to resolve .&lt;/P&gt;&lt;P&gt;The issue is as below :&lt;/P&gt;&lt;P&gt;i have defined a selection screen like in my prog as below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN : BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
SELECT-OPTIONS: s_field FOR dd03l-fieldname NO INTERVALS OBLIGATORY.
SELECTION-SCREEN : END OF BLOCK b2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above select-option is giving 4 possible option &lt;/P&gt;&lt;P&gt;1.Select single value(1) --&amp;gt; 1st Tab&lt;/P&gt;&lt;P&gt;2.Select ranges --&amp;gt; 2nd Tab&lt;/P&gt;&lt;P&gt;3.Exclude Single values --&amp;gt; 3rd tab&lt;/P&gt;&lt;P&gt;4.Exclude Ranges --&amp;gt; 4th tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to keep option of 1st tab only and remaining other tab(2nd, 3rd, 4th) should be hide/disabled.&lt;/P&gt;&lt;P&gt;Please provide some guideline to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Saifur Rahaman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 09:18:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-select-option-tab-view/m-p/6406423#M1407080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-01T09:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Select-option tab view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-select-option-tab-view/m-p/6406424#M1407081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use the FM: SELECT_OPTIONS_RESTRICT for this purpose. Read the documentation for details on how to use this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample code on how to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS: SSCR.

INITIALIZATION.

* Define the object to be passed to the RESTRICTION parameter
  DATA: IT_RESTRICT TYPE SSCR_RESTRICT.

* Auxiliary objects for filling RESTRICT
  DATA: WA_OPT_LIST TYPE SSCR_OPT_LIST,
        WA_ASS      TYPE SSCR_ASS.

* JUST_EQ: Only EQ allowed
  CLEAR WA_OPT_LIST.
  MOVE 'JUST_EQ' TO WA_OPT_LIST-NAME.
  MOVE 'X' TO WA_OPT_LIST-OPTIONS-EQ.
  APPEND WA_OPT_LIST TO IT_RESTRICT-OPT_LIST_TAB.

* KIND = 'S': applies to particular SELECT-OPTION 'S_MSGTYP'
  MOVE: 'S'          TO WA_ASS-KIND,
  'S_FIELD'   TO WA_ASS-NAME, "Pass the name if the SELECT-OPTION (in CAPS)
  'I'          TO WA_ASS-SG_MAIN,
  'JUST_EQ'    TO WA_ASS-OP_MAIN,
  'JUST_EQ'    TO WA_ASS-OP_ADDY.

  APPEND WA_ASS TO IT_RESTRICT-ASS_TAB.
  CLEAR WA_ASS.

* Call the FM to restrict the SELECT-OPTIONS
  CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
    EXPORTING
      RESTRICTION            = IT_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.
*    No processing reqd
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 09:25:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-select-option-tab-view/m-p/6406424#M1407081</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-12-01T09:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Select-option tab view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-select-option-tab-view/m-p/6406425#M1407082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sir let me try this ... will inform as soon as i tried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 09:44:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-select-option-tab-view/m-p/6406425#M1407082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-01T09:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Select-option tab view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-select-option-tab-view/m-p/6406426#M1407083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Saha da tomar code ta kaj korechhey...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx a lot dada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 12:52:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-select-option-tab-view/m-p/6406426#M1407083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-01T12:52:31Z</dc:date>
    </item>
  </channel>
</rss>

