<?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: select-options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2337869#M514938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CHeck this sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0001 .

tables: bkpf.

* Type pools
type-pools: slis, sscr.

* Selection Screen
select-options: s_GJAHR for bkpf-GJAHR no intervals.

initialization.
  perform initilization.


************************************************************************
*  INITILIZATION
************************************************************************
form initilization.

* Restrict the select options for S_DATE
* to just a date range
  data: selopt   type sscr_ass,
        opt_list type sscr_opt_list,
        restrict type sscr_restrict.

  clear opt_list.
  opt_list-name          = 'EQ'.
  opt_list-options-eq    = 'X'.
  append opt_list to restrict-opt_list_tab.

  clear selopt.
  selopt-kind            = 'S'.
  selopt-name            = 'S_GJAHR'.
  selopt-sg_main         = 'I'.
  selopt-sg_addy         = ' '.
  selopt-op_main         = 'EQ'.
  selopt-op_addy         = 'EQ'.
  append selopt  to restrict-ass_tab.

  call function 'SELECT_OPTIONS_RESTRICT'
       exporting
            restriction            = restrict
       exceptions
            too_late               = 1
            repeated               = 2
            selopt_without_options = 5
            selopt_without_signs   = 6
            invalid_sign           = 7
            empty_option_list      = 9
            invalid_kind           = 10
            repeated_kind_a        = 11
            others                 = 12.


endform.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2007 13:27:25 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-05-31T13:27:25Z</dc:date>
    <item>
      <title>select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2337865#M514934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a selection screen for various inputs, including Fiscal Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to restrict the ability of users to input this field as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Include single values only and not be able to specify exclusions.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made use of the No Intervals option, but the user still has&lt;/P&gt;&lt;P&gt;the ability to include a range of values and to exclude values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want to use this function to further restrict the values that&lt;/P&gt;&lt;P&gt;can be inputted:  select_options_restrict.  But I have been unable&lt;/P&gt;&lt;P&gt;to configure the parameters in a way that the user can only include&lt;/P&gt;&lt;P&gt;values and also not be able to specify a range.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 13:15:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2337865#M514934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T13:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2337866#M514935</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 u want to restrict to only one value.&lt;/P&gt;&lt;P&gt;then use this:&lt;/P&gt;&lt;P&gt;Select-options: mat type mara-matnr no-interval no extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 13:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2337866#M514935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T13:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2337867#M514936</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 follow the option no extension of Slect-options :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-options: werks type werks no-interval no extension .&lt;/P&gt;&lt;P&gt;This will remove the extension box on the screen and this way values will be restricted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 13:25:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2337867#M514936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T13:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2337868#M514937</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;&amp;lt;b&amp;gt;this works fine:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zselopt_eq.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TYPE-POOLS : sscr.&lt;/P&gt;&lt;P&gt;DATA tr TYPE  sscr_restrict.&lt;/P&gt;&lt;P&gt;DATA w1 TYPE  sscr_opt_list.&lt;/P&gt;&lt;P&gt;DATA w2 TYPE  sscr_ass.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TABLES bkpf.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS gjahr FOR bkpf-gjahr.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  MOVE 'JUST_EQ'  TO w1-name.&lt;/P&gt;&lt;P&gt;  MOVE 'X' TO w1-options-eq.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MOVE 'X' TO w1-options-ne.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  APPEND w1 TO tr-opt_list_tab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  MOVE: 'S'          TO w2-kind,&lt;/P&gt;&lt;P&gt;        'GJAHR'      TO w2-name,&lt;/P&gt;&lt;P&gt;        'I'          TO w2-sg_main.&lt;/P&gt;&lt;P&gt;  MOVE   'N'          TO w2-sg_addy.&lt;/P&gt;&lt;P&gt;  MOVE   'JUST_EQ'    TO w2-op_main.&lt;/P&gt;&lt;P&gt;  APPEND w2 TO tr-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 = tr.&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;ravish&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz dont forget to reward points if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        ravish goyal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 13:26:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2337868#M514937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T13:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2337869#M514938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CHeck this sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0001 .

tables: bkpf.

* Type pools
type-pools: slis, sscr.

* Selection Screen
select-options: s_GJAHR for bkpf-GJAHR no intervals.

initialization.
  perform initilization.


************************************************************************
*  INITILIZATION
************************************************************************
form initilization.

* Restrict the select options for S_DATE
* to just a date range
  data: selopt   type sscr_ass,
        opt_list type sscr_opt_list,
        restrict type sscr_restrict.

  clear opt_list.
  opt_list-name          = 'EQ'.
  opt_list-options-eq    = 'X'.
  append opt_list to restrict-opt_list_tab.

  clear selopt.
  selopt-kind            = 'S'.
  selopt-name            = 'S_GJAHR'.
  selopt-sg_main         = 'I'.
  selopt-sg_addy         = ' '.
  selopt-op_main         = 'EQ'.
  selopt-op_addy         = 'EQ'.
  append selopt  to restrict-ass_tab.

  call function 'SELECT_OPTIONS_RESTRICT'
       exporting
            restriction            = restrict
       exceptions
            too_late               = 1
            repeated               = 2
            selopt_without_options = 5
            selopt_without_signs   = 6
            invalid_sign           = 7
            empty_option_list      = 9
            invalid_kind           = 10
            repeated_kind_a        = 11
            others                 = 12.


endform.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 13:27:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2337869#M514938</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-05-31T13:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2337870#M514939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gregory , &lt;/P&gt;&lt;P&gt;  please see the documentation of the FM , it contains a sample program also for the same.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 13:32:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2337870#M514939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T13:32:44Z</dc:date>
    </item>
  </channel>
</rss>

