<?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 initialization in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246204#M1013511</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:&lt;/P&gt;&lt;P&gt;suppose s_sel is the select-option&lt;/P&gt;&lt;P&gt;Initialization&lt;/P&gt;&lt;P&gt;s_sel-sign = 'I'.&lt;/P&gt;&lt;P&gt;s_sel-optipn = 'BT'&lt;/P&gt;&lt;P&gt;s_sel-low = '10'.&lt;/P&gt;&lt;P&gt;s_sel-high = '20'.&lt;/P&gt;&lt;P&gt;append s_sel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_sel-sign = 'E'.&lt;/P&gt;&lt;P&gt;s_sel-optipn = 'EQ'&lt;/P&gt;&lt;P&gt;s_sel-low = '11'.&lt;/P&gt;&lt;P&gt;append s_sel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;20-40 exclude 33 is the same logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pole&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pole li on Aug 7, 2008 9:08 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Aug 2008 07:07:53 GMT</pubDate>
    <dc:creator>pole_li</dc:creator>
    <dc:date>2008-08-07T07:07:53Z</dc:date>
    <item>
      <title>SELECT-OPTIONS initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246202#M1013509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI FRIENDS.&lt;/P&gt;&lt;P&gt;i am working on a SELECT-OPTIONS and in which i need to initialize the same as follows:&lt;/P&gt;&lt;P&gt;10-20 but need to be exclude 11,&lt;/P&gt;&lt;P&gt;20-40 need to exclude 33.&lt;/P&gt;&lt;P&gt;how to initialize the select-option plz provide me the sample code and how to code above logic.&lt;/P&gt;&lt;P&gt;plz help me.&lt;/P&gt;&lt;P&gt;mahesh'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 06:58:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246202#M1013509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T06:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246203#M1013510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mahesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do the initialization as following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

" Define a switch variable
DATA: gd_init   TYPE abap_bool.

AT SELECTION-SCREEN OUTPUT.

" Assures that the initialization happens only once
  IF ( gd_init = abap_false ).
    gd_init = abap_true.

    o_selopt-sign = 'I'.  " include
    o_selopt-option = 'BT'.  " between
    o_selopt-low     = 10.
    o_selopt-high    = 20.
    append o_selopt.

    clear: o_selopt.  " just the header line
    o_selopt-sign = 'E'.  " exclude
    o_selopt-option = 'EQ'.  " equal
    o_selopt-low     = 11.
    append o_selopt.    
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 07:04:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246203#M1013510</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-08-07T07:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246204#M1013511</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:&lt;/P&gt;&lt;P&gt;suppose s_sel is the select-option&lt;/P&gt;&lt;P&gt;Initialization&lt;/P&gt;&lt;P&gt;s_sel-sign = 'I'.&lt;/P&gt;&lt;P&gt;s_sel-optipn = 'BT'&lt;/P&gt;&lt;P&gt;s_sel-low = '10'.&lt;/P&gt;&lt;P&gt;s_sel-high = '20'.&lt;/P&gt;&lt;P&gt;append s_sel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_sel-sign = 'E'.&lt;/P&gt;&lt;P&gt;s_sel-optipn = 'EQ'&lt;/P&gt;&lt;P&gt;s_sel-low = '11'.&lt;/P&gt;&lt;P&gt;append s_sel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;20-40 exclude 33 is the same logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pole&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pole li on Aug 7, 2008 9:08 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 07:07:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246204#M1013511</guid>
      <dc:creator>pole_li</dc:creator>
      <dc:date>2008-08-07T07:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246205#M1013512</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;PRE&gt;&lt;CODE&gt;
DATA: L_V_SEL TYPE CHAR2.

SELECT-OPTIONS: S_SEL FOR L_V_SEL.


INITIALIZATION.

  S_SEL-SIGN   = 'I'.
  S_SEL-OPTION = 'BT'.
  S_SEL-LOW    = '10'.
  S_SEL-HIGH   = '20'.
  APPEND S_SEL.

  S_SEL-SIGN   = 'I'.
  S_SEL-OPTION = 'BT'.
  S_SEL-LOW    = '20'.
  S_SEL-HIGH   = '40'.
  APPEND S_SEL.

  S_SEL-SIGN   = 'E'.
  S_SEL-OPTION = 'EQ'.
  S_SEL-LOW    = '11'.
  APPEND S_SEL.

  S_SEL-SIGN   = 'E'.
  S_SEL-OPTION = 'EQ'.
  S_SEL-LOW    = '33'.
  APPEND S_SEL.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 07:10:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246205#M1013512</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2008-08-07T07:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246206#M1013513</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: s_matnr for mara-matnr.&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;s_matnr-sign = 'I'.&lt;/P&gt;&lt;P&gt;s_matnr-optipn = 'BT'&lt;/P&gt;&lt;P&gt;s_matnr-low = '10'.&lt;/P&gt;&lt;P&gt;s_matnr-high = '20'.&lt;/P&gt;&lt;P&gt;append s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_matnr-sign = 'E'.      " Its for EXCLUDE "&lt;/P&gt;&lt;P&gt;s_matnr-optipn = 'EQ'&lt;/P&gt;&lt;P&gt;s_matnr-low = '11'.&lt;/P&gt;&lt;P&gt;append s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same logic can be applied for 20 to 40.&lt;/P&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;thanx,&lt;/P&gt;&lt;P&gt;dhanashri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 07:13:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246206#M1013513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T07:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246207#M1013514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Plz follow below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: SNO FOR L_V_SEL.&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;  SNO-SIGN     = 'I'.&lt;/P&gt;&lt;P&gt;  SNO-OPTION = 'BT'.&lt;/P&gt;&lt;P&gt;  SNO-LOW      = '10'.&lt;/P&gt;&lt;P&gt;  SNO-HIGH      = '20'.&lt;/P&gt;&lt;P&gt;  APPEND SNO.&lt;/P&gt;&lt;P&gt;  CLEAR SNO.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  SNO-SIGN     = 'I'.             "INCLUDE&lt;/P&gt;&lt;P&gt;  SNO-OPTION = 'BT'.&lt;/P&gt;&lt;P&gt;  SNO-LOW     = '20'.&lt;/P&gt;&lt;P&gt;  SNO-HIGH    = '40'.&lt;/P&gt;&lt;P&gt;  APPEND SNO.&lt;/P&gt;&lt;P&gt;  CLEAR SNO.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  SNO-SIGN     = 'E'.              "EXCLUDE&lt;/P&gt;&lt;P&gt;  SNO-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;  SNO-LOW      = '11'.&lt;/P&gt;&lt;P&gt;  APPEND SNO.&lt;/P&gt;&lt;P&gt;  CLEAR SNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SNO-SIGN   = 'E'.&lt;/P&gt;&lt;P&gt;  SNO-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;  SNO-LOW    = '33'.&lt;/P&gt;&lt;P&gt;  APPEND SNO.&lt;/P&gt;&lt;P&gt;  CLEAR SNO.&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 07:20:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246207#M1013514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T07:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246208#M1013515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Mahesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try the code as follow:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : i TYPE i.

SELECT-OPTIONS n1 FOR i.
SELECT-OPTIONS n2 FOR i.

INITIALIZATION.

  n1-sign = 'I'.
  n1-option = 'BT'.
  n1-low = 10.
  n1-high = 20.
  APPEND n1.
  CLEAR n1.

  n1-sign = 'E'.
  n1-option = 'EQ'.
  n1-low = 11.
  APPEND n1.
  CLEAR n1.

  n2-sign = 'I'.
  n2-option = 'BT'.
  n2-low = 20.
  n2-high = 40.
  APPEND n2.
  CLEAR n2.

  n2-sign = 'E'.
  n2-option = 'EQ'.
  n2-low = 33.
  APPEND n2.
  CLEAR n2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And check the website as follow: &lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba71f35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba71f35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;, it will help you to understand it much more better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Stephanie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 08:24:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246208#M1013515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T08:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246209#M1013516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;Thank you all of you. i understood the same.&lt;/P&gt;&lt;P&gt;its been very helpful to me..&lt;/P&gt;&lt;P&gt;again thanking all of who replied me&lt;/P&gt;&lt;P&gt;take care.&lt;/P&gt;&lt;P&gt;mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 10:15:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246209#M1013516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T10:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246210#M1013517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mahes ....see this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_field-low = 11.&lt;/P&gt;&lt;P&gt;s_field-option = 'EQ'.&lt;/P&gt;&lt;P&gt;s_field-sign  = 'E'.&lt;/P&gt;&lt;P&gt;append s_feld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_field-low = 33.&lt;/P&gt;&lt;P&gt;append s_feld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear s_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_field-low = 1.&lt;/P&gt;&lt;P&gt;s_field-option = 'BT'.&lt;/P&gt;&lt;P&gt;s_field-sign  = 'I'.&lt;/P&gt;&lt;P&gt;s_field-high = 40.&lt;/P&gt;&lt;P&gt;append s_feld.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 10:20:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246210#M1013517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T10:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246211#M1013518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for helping me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 12:41:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-initialization/m-p/4246211#M1013518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T12:41:12Z</dc:date>
    </item>
  </channel>
</rss>

