<?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-option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2470278#M555273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Declaration of a selection criterion for which a single comparison is possible on the selection screen, but multiple selection isnot possible.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA spfli_wa TYPE spfli. 

SELECT-OPTIONS s_carrid FOR spfli_wa-carrid NO-EXTENSION 
                                            NO INTERVALS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if it is usefull ...&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jul 2007 11:47:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-04T11:47:52Z</dc:date>
    <item>
      <title>select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2470275#M555270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;I want list of value than giving ranges.. so that I used no intervals option. while pressing the push button there is ranges is available is it possible to use only list of value than ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want single value tab alone need to remove the ranges tab is it possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if possible tell me hoe to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz, its urgent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 11:40:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2470275#M555270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T11:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2470276#M555271</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; Give like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select-options: lifnr for lfa1-lifnr no intervals no-extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Haritha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 11:43:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2470276#M555271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T11:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2470277#M555272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;yes..check this


REPORT TESTREP.

* Include type pool SSCR
TYPE-POOLS SSCR.

* Define the object to be passed to the RESTRICTION parameter
DATA RESTRICT TYPE SSCR_RESTRICT.

* Auxiliary objects for filling RESTRICT
DATA OPT_LIST TYPE SSCR_OPT_LIST.
DATA ASS      TYPE SSCR_ASS.

* Define the selection screen objects
* First block: 3 SELECT-OPTIONS
SELECTION-SCREEN BEGIN OF BLOCK BLOCK_0 WITH FRAME TITLE TEXT-BL0.
  SELECT-OPTIONS SEL_0_0 FOR SY-TVAR0.
  SELECT-OPTIONS SEL_0_1 FOR SY-TVAR1.
  SELECT-OPTIONS SEL_0_2 FOR SY-TVAR2.
  SELECT-OPTIONS SEL_0_3 FOR SY-TVAR3.
SELECTION-SCREEN END   OF BLOCK BLOCK_0.

* Second block: 2 SELECT-OPTIONS
SELECTION-SCREEN BEGIN OF BLOCK BLOCK_1 WITH FRAME TITLE TEXT-BL1.
  SELECT-OPTIONS SEL_1_0 FOR SY-SUBRC.
  SELECT-OPTIONS SEL_1_1 FOR SY-REPID.
SELECTION-SCREEN END   OF BLOCK BLOCK_1.

INITIALIZATION.

* Define the option list
* ALL: All options allowed
  MOVE 'ALL'        TO OPT_LIST-NAME.
  MOVE 'X' TO: OPT_LIST-OPTIONS-BT,
               OPT_LIST-OPTIONS-CP,
               OPT_LIST-OPTIONS-EQ,
               OPT_LIST-OPTIONS-GE,
               OPT_LIST-OPTIONS-GT,
               OPT_LIST-OPTIONS-LE,
               OPT_LIST-OPTIONS-LT,
               OPT_LIST-OPTIONS-NB,
               OPT_LIST-OPTIONS-NE,
               OPT_LIST-OPTIONS-NP.
  APPEND OPT_LIST TO RESTRICT-OPT_LIST_TAB.

* NOPATTERN: CP and NP not allowed
  CLEAR OPT_LIST.
  MOVE 'NOPATTERN'  TO OPT_LIST-NAME.
  MOVE 'X' TO: OPT_LIST-OPTIONS-BT,
               OPT_LIST-OPTIONS-EQ,
               OPT_LIST-OPTIONS-GE,
               OPT_LIST-OPTIONS-GT,
               OPT_LIST-OPTIONS-LE,
               OPT_LIST-OPTIONS-LT,
               OPT_LIST-OPTIONS-NB,
               OPT_LIST-OPTIONS-NE.
  APPEND OPT_LIST TO RESTRICT-OPT_LIST_TAB.

* NOINTERVLS: BT and NB not allowed
  CLEAR OPT_LIST.
  MOVE 'NOINTERVLS' TO OPT_LIST-NAME.
  MOVE 'X' TO: OPT_LIST-OPTIONS-CP,
               OPT_LIST-OPTIONS-EQ,
               OPT_LIST-OPTIONS-GE,
               OPT_LIST-OPTIONS-GT,
               OPT_LIST-OPTIONS-LE,
               OPT_LIST-OPTIONS-LT,
               OPT_LIST-OPTIONS-NE,
               OPT_LIST-OPTIONS-NP.
  APPEND OPT_LIST TO RESTRICT-OPT_LIST_TAB.

* EQ_AND_CP: only EQ and CP allowed
  CLEAR OPT_LIST.
  MOVE 'EQ_AND_CP'  TO OPT_LIST-NAME.
  MOVE 'X' TO: OPT_LIST-OPTIONS-CP,
               OPT_LIST-OPTIONS-EQ.
  APPEND OPT_LIST TO RESTRICT-OPT_LIST_TAB.

* JUST_EQ: Only EQ allowed
  CLEAR OPT_LIST.
  MOVE 'JUST_EQ' TO OPT_LIST-NAME.
  MOVE 'X' TO OPT_LIST-OPTIONS-EQ.
  APPEND OPT_LIST TO RESTRICT-OPT_LIST_TAB.

* Assign selection screen objects to option list and sign

* KIND = 'A': applies to all SELECT-OPTIONS
  MOVE: 'A'          TO ASS-KIND,
        '*'          TO ASS-SG_MAIN,
        'NOPATTERN'  TO ASS-OP_MAIN,
        'NOINTERVLS' TO ASS-OP_ADDY.
  APPEND ASS TO RESTRICT-ASS_TAB.

* KIND = 'B': applies to all SELECT-OPTIONS in block BLOCK_0,
*             that is, SEL_0_0, SEL_0_1, SEL_0_2
  CLEAR ASS.
  MOVE: 'B'          TO ASS-KIND,
        'BLOCK_0'    TO ASS-NAME,
        'I'          TO ASS-SG_MAIN,
        '*'          TO ASS-SG_ADDY,
        'NOINTERVLS' TO ASS-OP_MAIN.
  APPEND ASS TO RESTRICT-ASS_TAB.

* KIND = 'S': applies to SELECT-OPTION SEL-0-2
  CLEAR ASS.
MOVE: 'S'          TO ASS-KIND,
      'SEL_0_2'    TO ASS-NAME,
      'I'          TO ASS-SG_MAIN,
      '*'          TO ASS-SG_ADDY,
      'EQ_AND_CP'  TO ASS-OP_MAIN,
      'ALL'        TO ASS-OP_ADDY.
APPEND ASS TO RESTRICT-ASS_TAB.

KIND = 'S': Applies to SELECT-OPTION SEL_0_3
CLEAR ASS.
MOVE: 'S'        TO ASS-KIND,
      'SEL_0_3'  TO ASS-NAME,
      'I'        TO ASS-SG_MAIN,
      'N'        TO ASS-SG_ADDY,
      'JUST_EQ'  TO ASS-OP_MAIN.
APPEND ASS TO RESTRICT-ASS_TAB.

Call function module
CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
     EXPORTING
          RESTRICTION                = RESTRICT
          DB                         = ' '

     EXCEPTIONS
          TOO_LATE                   = 1
          REPEATED                   = 2
          NOT_DURING_SUBMIT          = 3
          DB_CALL_AFTER_REPORT_CALL  = 4
          SELOPT_WITHOUT_OPTIONS     = 5
          SELOPT_WITHOUT_SIGNS       = 6
          INVALID_SIGN               = 7
          REPORT_CALL_AFTER_DB_ERROR = 8
          EMPTY_OPTION_LIST          = 9
          INVALID_KIND               = 10
          REPEATED_KIND_A            = 11
          OTHERS                     = 12.
* Exception handling
  IF SY-SUBRC NE 0.
    ...
  ENDIF.

  ...

START-OF-SELECTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 11:46:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2470277#M555272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T11:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2470278#M555273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Declaration of a selection criterion for which a single comparison is possible on the selection screen, but multiple selection isnot possible.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA spfli_wa TYPE spfli. 

SELECT-OPTIONS s_carrid FOR spfli_wa-carrid NO-EXTENSION 
                                            NO INTERVALS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if it is usefull ...&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 11:47:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2470278#M555273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T11:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2470279#M555274</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;SELECT-OPTIONS&lt;/P&gt;&lt;P&gt;Declares selection criteria for a selection screen.&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS &amp;lt;sel&amp;gt; FOR &amp;lt;f&amp;gt;&lt;/P&gt;&lt;P&gt;[DEFAULT &amp;lt;g&amp;gt; [to &amp;lt;h&amp;gt;] [OPTION &amp;lt;op&amp;gt;] SIGN &amp;lt;s&amp;gt;]&lt;/P&gt;&lt;P&gt;[MEMORY ID &amp;lt;pid&amp;gt;]&lt;/P&gt;&lt;P&gt;[LOWER CASE]&lt;/P&gt;&lt;P&gt;[OBLIGATORY]&lt;/P&gt;&lt;P&gt;[NO-DISPLAY]&lt;/P&gt;&lt;P&gt;[MODIF ID &amp;lt;key&amp;gt;]&lt;/P&gt;&lt;P&gt;[NO-EXTENSION]&lt;/P&gt;&lt;P&gt;[NO INTERVALS]&lt;/P&gt;&lt;P&gt;[NO DATABASE SELECTION].&lt;/P&gt;&lt;P&gt;Declares a selection table &amp;lt;sel&amp;gt; for the field &amp;lt;f&amp;gt;, and also places input fields on the&lt;/P&gt;&lt;P&gt;corresponding selection screen. The additions allow you to set a default value, accept input in&lt;/P&gt;&lt;P&gt;lowercase, define a required field, suppress or modify the display on the selection screen, restrict the selection table to a line or a selection to a single field, or prevent input from being passed to a&lt;/P&gt;&lt;P&gt;logical database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;DATA WA TYPE SPFLI.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS S_CARRID FOR WA-CARRID.&lt;/P&gt;&lt;P&gt;IF 'LH' IN S_CARRID.&lt;/P&gt;&lt;P&gt;WRITE 'LH was selected'.&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;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 11:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2470279#M555274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T11:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2470280#M555275</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;try like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: matnr for mara-matnr no intervals no-extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it will simply work as a parameter even though it is a select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u wanna have more than one values for selection options and excluding intervals [ranges] then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: matnr for mara-matnr  no-extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 11:56:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2470280#M555275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T11:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2470281#M555276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi chandra&lt;/P&gt;&lt;P&gt;   thx for ur answer. my problem is solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 12:37:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2470281#M555276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T12:37:56Z</dc:date>
    </item>
  </channel>
</rss>

