<?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: difference between ranges and select -options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-ranges-and-select-options/m-p/1719938#M314285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Oct 2006 11:22:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-30T11:22:56Z</dc:date>
    <item>
      <title>difference between ranges and select -options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-ranges-and-select-options/m-p/1719937#M314284</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;Please provide example code describing the difference between  ranges and select-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepthi Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 11:16:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-ranges-and-select-options/m-p/1719937#M314284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T11:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: difference between ranges and select -options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-ranges-and-select-options/m-p/1719938#M314285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 11:22:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-ranges-and-select-options/m-p/1719938#M314285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T11:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: difference between ranges and select -options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-ranges-and-select-options/m-p/1719939#M314286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Selection options is for you to create a field on the selection screen. Where as TYPE RANGE OF does not create you any field on the screen it only gives you an internal table with similar structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So use range tables if you want to pass data to a selection screen when you submit to a program with selection screen or when you want to pass data to FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no difference in structure only difference is to get an input field on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 11:27:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-ranges-and-select-options/m-p/1719939#M314286</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2006-10-30T11:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: difference between ranges and select -options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-ranges-and-select-options/m-p/1719940#M314287</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;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;Hope now u have got the difference between Select-options and ranges. Get back to me if u still ahve doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. : Award points if the answer is helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 11:28:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-ranges-and-select-options/m-p/1719940#M314287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T11:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: difference between ranges and select -options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-ranges-and-select-options/m-p/1719941#M314288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They are the same, except SELECT-OPTIONS will provide an interface on the selection screen for the user to input data. For 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;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 11:28:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-ranges-and-select-options/m-p/1719941#M314288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T11:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: difference between ranges and select -options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-ranges-and-select-options/m-p/1719942#M314289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi deepthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Normally no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Select-option :  shows some entry element on screen,  thats all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. The underlying internal table of 4 fields, is same in both case.&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 11:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-ranges-and-select-options/m-p/1719942#M314289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T11:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: difference between ranges and select -options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-ranges-and-select-options/m-p/1719943#M314290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Techinically speaking:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges s_matnr foe mara-matnr. = select-options s_matnr for mara-matnr no-display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 11:33:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-ranges-and-select-options/m-p/1719943#M314290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T11:33:29Z</dc:date>
    </item>
  </channel>
</rss>

