<?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: main  difference  ( select-options and range) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-difference-select-options-and-range/m-p/1544249#M247720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both are same..only difference is if you declare the select-options then it will be displayed in the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Aug 2006 18:25:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-24T18:25:24Z</dc:date>
    <item>
      <title>main  difference  ( select-options and range)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-difference-select-options-and-range/m-p/1544247#M247718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;  Could  you tell  what  is  main difference  between  select-options  and range.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 18:19:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/main-difference-select-options-and-range/m-p/1544247#M247718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T18:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: main  difference  ( select-options and range)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-difference-select-options-and-range/m-p/1544248#M247719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select-options define an input field on the selection screen whereas ranges doesnt.itz intended for passing range of values for validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 18:23:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/main-difference-select-options-and-range/m-p/1544248#M247719</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-08-24T18:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: main  difference  ( select-options and range)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-difference-select-options-and-range/m-p/1544249#M247720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both are same..only difference is if you declare the select-options then it will be displayed in the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 18:25:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/main-difference-select-options-and-range/m-p/1544249#M247720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T18:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: main  difference  ( select-options and range)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-difference-select-options-and-range/m-p/1544250#M247721</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;Basically there is no difference...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;RANGES&amp;lt;/b&amp;gt; sel FOR f. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Effect&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Defines an internal table similar to a selection criterion sel defined using the SELECT-OPTIONS sel FOR f statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above statement is identical to: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF sel OCCURS 10,&lt;/P&gt;&lt;P&gt;         SIGN(1),&lt;/P&gt;&lt;P&gt;         OPTION(2),&lt;/P&gt;&lt;P&gt;         LOW  LIKE f,&lt;/P&gt;&lt;P&gt;         HIGH LIKE f,&lt;/P&gt;&lt;P&gt;      END   OF sel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;If you use the IN operator in conjunction with SUBMIT , CHECK , IF , WHILE or SELECT , always define the associated internal table using SELECT-OPTIONS or RANGES (never directly). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic form&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT-OPTIONS&amp;lt;/b&amp;gt; sel FOR f. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declares a variable selection option. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement only makes sense in reports, i.e. in programs defined as type 1 in the attributes. You can execute reports with the SUBMIT statement. The statements SELECT-OPTIONS and PARAMETERS determine the technical interface and the user interface. The parameters and selection options you specify are displayed on the selection screen for the user to enter values (see also the addition NO-DISPLAY or SUBMIT without the addition VIA SELECTION-SCREEN . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sel must be 1 - 8 characters long. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement defines an internal table sel with a fixed structure which consists of the fields sel-SIGN , sel-OPTION , sel-LOW and sel-HIGH . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 18:26:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/main-difference-select-options-and-range/m-p/1544250#M247721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T18:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: main  difference  ( select-options and range)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-difference-select-options-and-range/m-p/1544251#M247722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Range can be said to be programatic representation of select-option. Basically, using Select-Option it displays the field on the selection screen while for range you can populate the same in the ABAP and use in validations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 19:11:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/main-difference-select-options-and-range/m-p/1544251#M247722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T19:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: main  difference  ( select-options and range)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-difference-select-options-and-range/m-p/1544252#M247723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no diff between select-options and ranges...&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;ranges         r_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options will allow user to enter values on seletion screen, as you know it creates an internal table with the user values. you can use this table in select queries for validation in where condition like where matnr in s_matnr or you can use this also in validataions like  'if ( v_matnr in s_matnr )'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; where as in ranges programmer has to fill the table dynamically in the program it has similar structure as selection table. so you can use it in queries and conditions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically when you use either select table or ranges table in a select query it works as 'for all entries in' in a select query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 19:42:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/main-difference-select-options-and-range/m-p/1544252#M247723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T19:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: main  difference  ( select-options and range)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-difference-select-options-and-range/m-p/1544253#M247724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Asha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are only two minor differences between select-options and ranges:&lt;/P&gt;&lt;P&gt;(1) The name of select-options is restricted to 8 characters&lt;/P&gt;&lt;P&gt;(2) Within the program select-options behave like internal tables WITH header line. Ranges do not have header lines.&lt;/P&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, 24 Aug 2006 19:45:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/main-difference-select-options-and-range/m-p/1544253#M247724</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-08-24T19:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: main  difference  ( select-options and range)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-difference-select-options-and-range/m-p/1544254#M247725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is another difference between select-options and ranges. The select-option can be used in a CHECK statement, but a range cannot:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ztest MESSAGE-ID 00.

TABLES: bkpf.

SELECT-OPTIONS: s_dat FOR bkpf-budat.

RANGES: r_dat FOR bkpf-budat.

SELECT * FROM bkpf.

  CHECK s_dat.
* CHECK r_dat.

  WRITE: /001 bkpf-budat.

ENDSELECT.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you uncomment the CHECK r_dat, you should get a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is used mainly in logical database programs, but can be used in reports. I doubt if it's recommended there though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 19:49:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/main-difference-select-options-and-range/m-p/1544254#M247725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T19:49:45Z</dc:date>
    </item>
  </channel>
</rss>

