<?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: Reg:  Difference between single, select-options and ranges...? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-difference-between-single-select-options-and-ranges/m-p/2113870#M442227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;SINGLE is used to retrieve a single record from the desired table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS &amp;amp; RANGES are similar in functionality. But coming to select-options system will define an internal table in runtime. &lt;/P&gt;&lt;P&gt;Where as in Ranges we have to define the internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Mar 2007 11:59:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-29T11:59:59Z</dc:date>
    <item>
      <title>Reg:  Difference between single, select-options and ranges...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-difference-between-single-select-options-and-ranges/m-p/2113862#M442219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;What is the exact difference between single, select-options and ranges&amp;#133;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in Advance&amp;#133;.&lt;/P&gt;&lt;P&gt;Akshitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 09:52:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-difference-between-single-select-options-and-ranges/m-p/2113862#M442219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T09:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:  Difference between single, select-options and ranges...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-difference-between-single-select-options-and-ranges/m-p/2113863#M442220</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;Here 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;Select-options : s_pernr for pa0000-pernr. &lt;/P&gt;&lt;P&gt;(This is diaplayed on the selection screen)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranges : r_pernr for pa0000-pernr.&lt;/P&gt;&lt;P&gt;(This is not displayed on the sel. screen)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The structure for Select-options and ranges will be&lt;/P&gt;&lt;P&gt;the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select options are mainly used in the initial selects&lt;/P&gt;&lt;P&gt;to filter the data based on the selection criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If U already know what the values are,then ranges are &lt;/P&gt;&lt;P&gt;used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Simha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 09:54:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-difference-between-single-select-options-and-ranges/m-p/2113863#M442220</guid>
      <dc:creator>Simha_</dc:creator>
      <dc:date>2007-03-29T09:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:  Difference between single, select-options and ranges...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-difference-between-single-select-options-and-ranges/m-p/2113864#M442221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select-options and ranges are the same except that select-options are the parameters displayed on selection screen ,where as you have to build the ranges&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 09:54:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-difference-between-single-select-options-and-ranges/m-p/2113864#M442221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T09:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:  Difference between single, select-options and ranges...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-difference-between-single-select-options-and-ranges/m-p/2113865#M442222</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;&lt;/P&gt;&lt;P&gt;Single selects single value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this thread&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Select-options are the normal select options that you define on Selection screen.&lt;/P&gt;&lt;P&gt;While Ranges are similar to Select options in the way it creates a internal table of the same form as that of Select-options. The internal table that is created has the fields&lt;/P&gt;&lt;P&gt;HIGH&lt;/P&gt;&lt;P&gt;LOW&lt;/P&gt;&lt;P&gt;SIGN&lt;/P&gt;&lt;P&gt;OPTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the difference between Select-options and ranges are that we don't need to define the ranges in Selection screen. It is created by explicitly coding in the Program. (see Example below). And we can fill the internal table for ranges in the program code itself and then can use it in the same manner as we use Select-option of screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Here r_belnr is range while s_bukrs and s_gsber is Select-options.&lt;/P&gt;&lt;P&gt;Here i have defined a range and then filling it internally in the program coding and then using it in select query.&lt;/P&gt;&lt;P&gt;TYPES: ty_belnr TYPE RANGE OF bkpf-belnr.&lt;/P&gt;&lt;P&gt;DATA: r_belnr TYPE ty_belnr WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_bkpf INTO wa_bkpf.&lt;/P&gt;&lt;P&gt;r_belnr-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_belnr-option = 'EQ'.&lt;/P&gt;&lt;P&gt;r_belnr-low = wa_bkpf-belnr.&lt;/P&gt;&lt;P&gt;APPEND r_belnr.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;CLEAR r_belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT belnr&lt;/P&gt;&lt;P&gt;aufnr&lt;/P&gt;&lt;P&gt;FROM bseg&lt;/P&gt;&lt;P&gt;INTO TABLE i_bseg&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN i_aufk&lt;/P&gt;&lt;P&gt;WHERE bukrs IN s_bukrs&lt;/P&gt;&lt;P&gt;AND belnr IN r_belnr&lt;/P&gt;&lt;P&gt;AND gjahr EQ p_gjahr&lt;/P&gt;&lt;P&gt;AND gsber IN s_gsber&lt;/P&gt;&lt;P&gt;AND aufnr EQ i_aufk-aufnr.&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;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 09:57:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-difference-between-single-select-options-and-ranges/m-p/2113865#M442222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T09:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:  Difference between single, select-options and ranges...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-difference-between-single-select-options-and-ranges/m-p/2113866#M442223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think here single means parameter if it is so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parmeter can take only one value so when you are further checking with parameter you have to put = for checking&lt;/P&gt;&lt;P&gt;parameters : p_matnr like mara-matnr.&lt;/P&gt;&lt;P&gt;select * from mara where matnr = p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-option can take multiple values and as well as range.&lt;/P&gt;&lt;P&gt;actually it is inttable with four fields sign option low high.&lt;/P&gt;&lt;P&gt;when you give any value in selection screen it automatically filled those 4 fields and update the select option table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here in select you have to write the query like this&lt;/P&gt;&lt;P&gt;select-options : s_op for mara-matnr.&lt;/P&gt;&lt;P&gt;select * from mara where matnr in s_op.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges are same like select option but it will not appear in selection screen so you have to fill the range table programitically.&lt;/P&gt;&lt;P&gt;ranges : r_ng for mara-matnr.&lt;/P&gt;&lt;P&gt;r_ng-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_ng-option = 'BT'.&lt;/P&gt;&lt;P&gt;r_ng-low = '10000'.&lt;/P&gt;&lt;P&gt;r_ng-high = '2000'.&lt;/P&gt;&lt;P&gt;append r_ng.&lt;/P&gt;&lt;P&gt;select * from mara where matnr in r_ng.&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>Thu, 29 Mar 2007 10:01:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-difference-between-single-select-options-and-ranges/m-p/2113866#M442223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T10:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:  Difference between single, select-options and ranges...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-difference-between-single-select-options-and-ranges/m-p/2113867#M442224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SINGLE gives one value from the tyable..&lt;/P&gt;&lt;P&gt;Select Single * from table...gives single record from the table...this reduces the database interaction and will increase the program speed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-options: is used to get the result in selection screen.&lt;/P&gt;&lt;P&gt;this is used to give the range and will get the reult based ont he range...the values will be stored in internal table and we can use intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranges: ios used when we know the values ...so that we can give in program and we can refer in the code logic...This ios used to get the result based on range...but nodisplay in selection screen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 10:03:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-difference-between-single-select-options-and-ranges/m-p/2113867#M442224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T10:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:  Difference between single, select-options and ranges...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-difference-between-single-select-options-and-ranges/m-p/2113868#M442225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SINGLE gives one value from the tyable..&lt;/P&gt;&lt;P&gt;Select Single * from table...gives single record from the table...this reduces the database interaction and will increase the program speed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-options: is used to get the result in selection screen.&lt;/P&gt;&lt;P&gt;this is used to give the range and will get the reult based ont he range...the values will be stored in internal table and we can use intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranges: ios used when we know the values ...so that we can give in program and we can refer in the code logic...This ios used to get the result based on range...but nodisplay in selection screen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 10:05:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-difference-between-single-select-options-and-ranges/m-p/2113868#M442225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T10:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:  Difference between single, select-options and ranges...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-difference-between-single-select-options-and-ranges/m-p/2113869#M442226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi akshitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranges is a part of SELECT-OPTIONS command which allows u for multiple selections ie, you can specify the range of values here &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereas 'SINGLE' is used in a SELECT statement to retrieve a single record from the desired table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sowmya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 10:13:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-difference-between-single-select-options-and-ranges/m-p/2113869#M442226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T10:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:  Difference between single, select-options and ranges...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-difference-between-single-select-options-and-ranges/m-p/2113870#M442227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;SINGLE is used to retrieve a single record from the desired table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS &amp;amp; RANGES are similar in functionality. But coming to select-options system will define an internal table in runtime. &lt;/P&gt;&lt;P&gt;Where as in Ranges we have to define the internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 11:59:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-difference-between-single-select-options-and-ranges/m-p/2113870#M442227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T11:59:59Z</dc:date>
    </item>
  </channel>
</rss>

