<?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: ranges in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2700922#M625486</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;Ranges can be described as programatic version of select-option. They are used to filter data from database or internal table. They work similar to select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definition&lt;/P&gt;&lt;P&gt;RANGES : r_werks FOR mard-werks,&lt;/P&gt;&lt;P&gt;r_lgort FOR mard-lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filling it with data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_werks-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_werks-option = 'EQ'.&lt;/P&gt;&lt;P&gt;r_werks-low = p_werks1.&lt;/P&gt;&lt;P&gt;APPEND r_werks.&lt;/P&gt;&lt;P&gt;CLEAR r_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usage&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * from marc where werks in r_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Aug 2007 06:55:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-21T06:55:37Z</dc:date>
    <item>
      <title>ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2700920#M625484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is exact purpose of selection-screen 'ranges' and what are various advantages of  using 'ranges' .its urgent please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 06:51:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2700920#M625484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T06:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2700921#M625485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ranges is very usefull when you would like to make a SELECT with a list of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of &lt;/P&gt;&lt;P&gt;select ... into table ... from ... for all entries in ... where ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you remove the "for all entries in".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's just a problem of performance. Because for all entries make a lot of database access. &lt;/P&gt;&lt;P&gt;The danger with the ranges is the size, greater than 3000 entries, you will have a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 06:54:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2700921#M625485</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2007-08-21T06:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2700922#M625486</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;Ranges can be described as programatic version of select-option. They are used to filter data from database or internal table. They work similar to select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definition&lt;/P&gt;&lt;P&gt;RANGES : r_werks FOR mard-werks,&lt;/P&gt;&lt;P&gt;r_lgort FOR mard-lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filling it with data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_werks-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_werks-option = 'EQ'.&lt;/P&gt;&lt;P&gt;r_werks-low = p_werks1.&lt;/P&gt;&lt;P&gt;APPEND r_werks.&lt;/P&gt;&lt;P&gt;CLEAR r_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usage&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * from marc where werks in r_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 06:55:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2700922#M625486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T06:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2700923#M625487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT-OPTIONS: Declare an internal table that is also linked to input fields on a selection screen &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES: Declare an internal table with the same structure as in select-options, but without linking it to a selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR FURTHER DOCUMENTATION PLEASE GO THROUGH THE LINK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Difference Between Select-Options &amp;amp; Ranges &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Statical Declaration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection tables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Azhar&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 06:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2700923#M625487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T06:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2700924#M625488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both SELECT-OPTIONS &amp;amp; RANGES works for the same purpose.  They both are used for the range selection from selection screen.  The main diff. between them is, while we use SELECT-OPTIONS system implicitly creates the select options internal table which contains the fields of SIGN,OPTION,LOW &amp;amp; HIGH.  But in case of RANGES, this internal table should be defined explicitly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 06:56:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2700924#M625488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T06:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2700925#M625489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://72.14.203.104/search?q=cache:btyoj86smhEJ:www.sap-img.com/abap/difference-between-select-options-ranges.htm" target="test_blank"&gt;http://72.14.203.104/search?q=cache:btyoj86smhEJ:www.sap-img.com/abap/difference-between-select-options-ranges.htm&lt;/A&gt;&lt;EM&gt;Select-options&lt;/EM&gt;and&lt;EM&gt;ranges&lt;/EM&gt;IN+ABAP&amp;amp;hl=en&amp;amp;gl=in&amp;amp;ct=clnk&amp;amp;cd=1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 06:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2700925#M625489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T06:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2700926#M625490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Select-Options : They provides user with an option to enter value in the selection screen...... and it can be used in programs only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranges : This provides a way to populate the range of values programatially and for further use.. e.g. if you want to pass a range of values to a select query to some function module then select options will not work.....then you have to go with ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,CSR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 06:58:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2700926#M625490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T06:58:11Z</dc:date>
    </item>
  </channel>
</rss>

