<?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/2589451#M592774</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;&amp;lt;u&amp;gt;Define a range:&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranges: r_field for &amp;lt;table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not field1 is initial.&lt;/P&gt;&lt;P&gt;r_field-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_field-option = 'EQ'.&lt;/P&gt;&lt;P&gt;r_field-option-low = field1.&lt;/P&gt;&lt;P&gt;append r_field.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not field2 is initial.&lt;/P&gt;&lt;P&gt;r_field-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_field-option = 'EQ'.&lt;/P&gt;&lt;P&gt;r_field-option-low = field2.&lt;/P&gt;&lt;P&gt;append r_field.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if field1 is initial and field2 is initial.&lt;/P&gt;&lt;P&gt;r_field-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_field-option = 'EQ'.&lt;/P&gt;&lt;P&gt;append r_field.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from &amp;lt;table&amp;gt; where field1 in r_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'I' value in the SIGN field denotes 'Include', that means to Include the values given in the LOW and HIGH fields.&lt;/P&gt;&lt;P&gt;U may use 'E' here to exclude these values, when u r using the range in a SELECT query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. select-options is for screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If we dont want to display anything on screen,&lt;/P&gt;&lt;P&gt;we can use RANGES&lt;/P&gt;&lt;P&gt;having the same functionality&lt;/P&gt;&lt;P&gt;and us it&lt;/P&gt;&lt;P&gt;in sql using IN statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jul 2007 05:55:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-24T05:55:37Z</dc:date>
    <item>
      <title>Ranges????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2589446#M592769</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;Can ne1 plz tell me the concept of Ranges????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how is is different from the Selection Table????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where is it used exactly????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mohit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 05:40:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2589446#M592769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T05:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2589447#M592770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Mohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/difference-between-select-options-ranges.htm" target="test_blank"&gt;http://www.sap-img.com/abap/difference-between-select-options-ranges.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;also refer&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2383937"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3305910"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1275739"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 05:43:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2589447#M592770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T05:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2589448#M592771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    declaration:&lt;/P&gt;&lt;P&gt;ranges: r_matnr type mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Filling ranges is similar to select-options.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_matnr-low = 'I'.&lt;/P&gt;&lt;P&gt;r_matnr-sign = 'EQ'.&lt;/P&gt;&lt;P&gt;r_matnr-low = '000000000000018'.&lt;/P&gt;&lt;P&gt;append r_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usage in Selects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara into table it_mara&lt;/P&gt;&lt;P&gt;where matnr in r_matnr.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 05:45:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2589448#M592771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T05:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2589449#M592772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * from marc where werks in r_werks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 05:45:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2589449#M592772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T05:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2589450#M592773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ranges are same like select-options and use is also same ... but the difference is if you declare&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;it will create the selection screen automatically and user can give the input in thatr field and you can use it further for selecting the data on the user input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if you are writting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges : s_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;then selection screen will not be generated and user can not give the input for that .. generally if you want to restrict the select query with some set of values without the user input then use ranges or in some cases for using the index fields also we are passing the empty ranges for increasing the performance.. i.e. if your user want only few fields from the indexed fields in the selection screen then you can use rest of the fields as empty ranges to make use of all the indexed fields to increase the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 05:49:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2589450#M592773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T05:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2589451#M592774</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;&amp;lt;u&amp;gt;Define a range:&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranges: r_field for &amp;lt;table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not field1 is initial.&lt;/P&gt;&lt;P&gt;r_field-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_field-option = 'EQ'.&lt;/P&gt;&lt;P&gt;r_field-option-low = field1.&lt;/P&gt;&lt;P&gt;append r_field.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not field2 is initial.&lt;/P&gt;&lt;P&gt;r_field-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_field-option = 'EQ'.&lt;/P&gt;&lt;P&gt;r_field-option-low = field2.&lt;/P&gt;&lt;P&gt;append r_field.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if field1 is initial and field2 is initial.&lt;/P&gt;&lt;P&gt;r_field-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_field-option = 'EQ'.&lt;/P&gt;&lt;P&gt;append r_field.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from &amp;lt;table&amp;gt; where field1 in r_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'I' value in the SIGN field denotes 'Include', that means to Include the values given in the LOW and HIGH fields.&lt;/P&gt;&lt;P&gt;U may use 'E' here to exclude these values, when u r using the range in a SELECT query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. select-options is for screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If we dont want to display anything on screen,&lt;/P&gt;&lt;P&gt;we can use RANGES&lt;/P&gt;&lt;P&gt;having the same functionality&lt;/P&gt;&lt;P&gt;and us it&lt;/P&gt;&lt;P&gt;in sql using IN statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 05:55:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2589451#M592774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T05:55:37Z</dc:date>
    </item>
  </channel>
</rss>

