<?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 Select options with specific range in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-with-specific-range/m-p/6684477#M1450118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I wish to give the possibility to the user to show only two selections among many values for e specific fied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-options: s_org1 for lfm1-ekorg NO INTERVALS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want to give the possibility to the user to use/dispplay only two data of the above list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This "short" range of values is necessary to me in a query using IN s_org1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea will be well appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance for your kind support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Luigi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Feb 2010 09:36:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-23T09:36:38Z</dc:date>
    <item>
      <title>Select options with specific range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-with-specific-range/m-p/6684477#M1450118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I wish to give the possibility to the user to show only two selections among many values for e specific fied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-options: s_org1 for lfm1-ekorg NO INTERVALS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want to give the possibility to the user to use/dispplay only two data of the above list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This "short" range of values is necessary to me in a query using IN s_org1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea will be well appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance for your kind support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Luigi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 09:36:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-with-specific-range/m-p/6684477#M1450118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-23T09:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select options with specific range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-with-specific-range/m-p/6684478#M1450119</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;If i understand correctly you want to provide default values to the SELECT-OPTIONS &amp;amp; make the field display-only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you want ?&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, 23 Feb 2010 09:39:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-with-specific-range/m-p/6684478#M1450119</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-02-23T09:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select options with specific range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-with-specific-range/m-p/6684479#M1450120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi Luigi, 
&amp;lt;li&amp;gt;Try this way.
&lt;PRE&gt;&lt;CODE&gt;
REPORT ztest_notepad.
TABLES lfm1.
SELECT-OPTIONS: s_org1 FOR lfm1-ekorg NO INTERVALS .
DATA lines TYPE i.

AT SELECTION-SCREEN.
  DESCRIBE TABLE s_org1 LINES lines.
  IF lines &amp;gt; 2.
    DATA msg TYPE string.
    msg = 'S_ORG1 has more than two values'.
    MESSAGE msg TYPE 'E'.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 09:43:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-with-specific-range/m-p/6684479#M1450120</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2010-02-23T09:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select options with specific range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-with-specific-range/m-p/6684480#M1450121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More exaclty I want to set only two values (not consecutive) from the list of values of the field ekorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words, I want to set, from the beginning, only two values (i.e. 0010000001 and 0010000015). The range can show me i.e 0010000001 0010000002 0010000003 0010000004 0010000015 0010000018.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Luigi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 10:24:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-with-specific-range/m-p/6684480#M1450121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-23T10:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select options with specific range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-with-specific-range/m-p/6684481#M1450122</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;It is Possible. Select the data from table and build the range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : R_EKORG tyoe ekorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R_ekorg-Opton  = '' IN "&lt;/P&gt;&lt;P&gt;R_EKORG-LOW = " LOW VALUE " &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT EKORG FROM TABLE (EKKO)  WHERE EKORG IN S_EKORG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND RANGES.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 10:37:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-with-specific-range/m-p/6684481#M1450122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-23T10:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Select options with specific range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-with-specific-range/m-p/6684482#M1450123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used:&lt;/P&gt;&lt;P&gt;RANGES: codart FOR lfm1-ekorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;      codart-sign = 'I'.&lt;/P&gt;&lt;P&gt;      codart-option = 'E'.&lt;/P&gt;&lt;P&gt;      codart-low = 'IT15'.&lt;/P&gt;&lt;P&gt;      APPEND codart.&lt;/P&gt;&lt;P&gt;      codart-sign = 'I'.&lt;/P&gt;&lt;P&gt;      codart-option = 'E'.&lt;/P&gt;&lt;P&gt;      codart-low = 'IT25'.&lt;/P&gt;&lt;P&gt;      APPEND codart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_org1 FOR codart NO INTERVALS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I can't see the values set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 10:37:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-with-specific-range/m-p/6684482#M1450123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-23T10:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Select options with specific range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-with-specific-range/m-p/6684483#M1450124</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;For this you have to use either INITIALIZATION or AT SELECTION-SCREEN OUTPUT event and not AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS: s_org1 FOR lfm1-ekorg NO INTERVALS MODIF-ID 'M1'.

INITIALIZATION.
s_org1-sign = 'I'.
s_org1-option = 'E'.
s_org1-low = 'IT15'.
APPEND s_org1.
s_org1-sign = 'I'.
s_org1-option = 'E'.
s_org1-high = 'IT25'.
APPEND s_org1.

LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'M1'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
&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, 23 Feb 2010 10:46:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-with-specific-range/m-p/6684483#M1450124</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-02-23T10:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Select options with specific range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-with-specific-range/m-p/6684484#M1450125</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;You can use this FM at selection-screen event F4IF_INT_TABLE_VALUE_REQUEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sudeshna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 11:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-with-specific-range/m-p/6684484#M1450125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-23T11:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select options with specific range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-with-specific-range/m-p/6684485#M1450126</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;Lets say your have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select-options : s_ekorg for ekko-ekorg.
data : r_ekorg type range of ekko-ekorg, " Declare these 2 Extra in your program
wa_ekorg like line of r_ekorg.
then 

at selection-screen output. " Implement this Event
refresh r_ekorg.
clear wa_ekorg.
wa_ekorg-sign = 'I'.
wa_ekorg-option = 'BT'.
wa_ekorg-low = '0010000001'
wa_ekorg-high =  '00100000018'.
append wa_ekorg to r_ekorg.
s_ekorg[] = r_ekorg[].  " This will give you default value to your Select Options.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;In other words, I want to set, from the beginning, only two values (i.e. 0010000001 and 0010000015). The range can show me i.e 0010000001 0010000002 0010000003 0010000004 0010000015 0010000018.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 11:26:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-with-specific-range/m-p/6684485#M1450126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-23T11:26:59Z</dc:date>
    </item>
  </channel>
</rss>

