<?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/2136796#M449593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Balu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-options and ranges represent the same technology..meaning their internal &lt;/P&gt;&lt;P&gt;representations are the are the same. They are used to store a range of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But select-options is used as a selection screen component while&lt;/P&gt;&lt;P&gt;ranges are used to create internal tables of type select-options, to store a range&lt;/P&gt;&lt;P&gt;in order to use in select queries...(mainly, for using the IN option in the where clause&lt;/P&gt;&lt;P&gt;of a select query, for a variable for which a select-option does not exist)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;Sajan Joseph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2007 04:19:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-17T04:19:26Z</dc:date>
    <item>
      <title>ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2136791#M449588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the difference between select-options and ranges?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 03:43:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2136791#M449588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T03:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2136792#M449589</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;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;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Satyendra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 03:45:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2136792#M449589</guid>
      <dc:creator>satykumar</dc:creator>
      <dc:date>2007-04-17T03:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2136793#M449590</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 is a componenet of selection screen where user can provide the required input .&lt;/P&gt;&lt;P&gt;ranges is also similar to selct-options but not a selection screen component.&lt;/P&gt;&lt;P&gt;we can use ranges in the program but we need to populate the ranges table in the program and then we can use the same for extracting the data .&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, 17 Apr 2007 03:45:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2136793#M449590</guid>
      <dc:creator>shishupalreddy</dc:creator>
      <dc:date>2007-04-17T03:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2136794#M449591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through this info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the difference between SELECT-OPTIONS &amp;amp; RANGES? &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;Eg. to SELECT-OPTIONS : &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT YARSELECT. &lt;/P&gt;&lt;P&gt;TABLES YTXLFA1. &lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : VENDOR FOR YTXLFA1-LIFNR. &lt;/P&gt;&lt;P&gt;INITIALIZATION. &lt;/P&gt;&lt;P&gt;VENDOR-LOW    =   1000.               " It specifies the range starting value. &lt;/P&gt;&lt;P&gt;VENDOR-HIGH    =   2000.               " It specifies the range ending value. &lt;/P&gt;&lt;P&gt;VENDOR-OPTION  =  'BT'.                " specifies ranges value is in between. &lt;/P&gt;&lt;P&gt;VENDOR-SIGN      = 'I'.                     "specifies both inclussive. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND VENDOR. &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 LIFNR LAND1 NAME1 FROM LFA1 INTO TABLE ITAB  &lt;/P&gt;&lt;P&gt;WHERE LIFNR IN VENDOR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg. to RANGES: &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT YARRANGE. &lt;/P&gt;&lt;P&gt;TABLES YTXLFA1. &lt;/P&gt;&lt;P&gt;RANGES: VENDOR FOR YTXFLA1-LIFNR. &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;&lt;/P&gt;&lt;P&gt;SELECT LIFNR LAND1 NAME1 FROM LFA1 INTO TABLE ITAB  &lt;/P&gt;&lt;P&gt;WHERE LIFNR IN VENDOR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here with RANGES  user has to design an internal table with fields -  &lt;/P&gt;&lt;P&gt;SIGN,OPTION,LOW and HIGH EXPLICITLY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;select-options: bukrs for zstock-bukrs. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Should the user fill in 'ABFI' in BUKRS on the selection screen, BUKRS will look like this: &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;IEQABFI &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;This is because BUKRS is set as a table as follows: &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;begin of bukrs occurs 0, &lt;/P&gt;&lt;P&gt;  SIGN(1)    type c, &lt;/P&gt;&lt;P&gt;  OPTION(2) type c, &lt;/P&gt;&lt;P&gt;  LOW         like bukrs, &lt;/P&gt;&lt;P&gt;  HIGH         like bukrs, &lt;/P&gt;&lt;P&gt;end of bukrs. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Now, when you create the following range, it will have the exact same fields set inside its table: &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Ranges: bukrs for zstock-bukrs. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;The difference is, because ranges doesn't show on the selection screen, you will have to fill it yourself, meaning you will have to fill bukrs-sign, bukrs-option, bukrs-low &amp;amp; bukrs-high all manually. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Some tips: &lt;/P&gt;&lt;P&gt;Sign is always I (for Include) or E (for Exclude) &lt;/P&gt;&lt;P&gt;Option can be a whole range, which includes: &lt;/P&gt;&lt;P&gt;EQ        (Equal)  &lt;/P&gt;&lt;P&gt;BT        (Between))  &lt;/P&gt;&lt;P&gt;CP        (Contain Pattern) &lt;/P&gt;&lt;P&gt;So let's say you want to have the range check for all company codes not starting with AB, you will set your code as follow: &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;ranges: bukrs for zstock-bukrs. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;bukrs-sign = 'E'.             "Exclude &lt;/P&gt;&lt;P&gt;bukrs-option = 'CP'.        "Pattern &lt;/P&gt;&lt;P&gt;bukrs-low = 'AB*'.            "Low Value &lt;/P&gt;&lt;P&gt;bukrs-high = ''.                "High Value &lt;/P&gt;&lt;P&gt;append bukrs. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Always remember to APPEND your range when you fill it, as the WHERE clause checks against the lines of the range table, not against the header line. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Hope this explains it well enough. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does SIGN "I" &amp;amp; "E" mean? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "I" stands for Include, and the "E" for Exclude. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;The easiest way to learn how the range selections work is, create the following dummy program: &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;report dummy. &lt;/P&gt;&lt;P&gt;tables: mara. &lt;/P&gt;&lt;P&gt;select-options: matnr for mara-matnr. &lt;/P&gt;&lt;P&gt;start-of-selection. &lt;/P&gt;&lt;P&gt;loop at matnr. &lt;/P&gt;&lt;P&gt;write: / matnr-sign, &lt;/P&gt;&lt;P&gt;           matnr-option, &lt;/P&gt;&lt;P&gt;           matnr-low, &lt;/P&gt;&lt;P&gt;           matnr-high. &lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Run this program, and fill in a lot of junk into MATNR. Fill in some includes, some excludes, some ranges, etc., and you will soon realise how the system builds ranges (select-options). Once you know that, you can fill your own ranges quickly and efficiently. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;P.Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 03:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2136794#M449591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T03:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2136795#M449592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT-OPTUIN IS USED FOR  A RANGE OF VALUES.. AND PARAMETERS IS USED FOR A SINGLE VALUE.. THIS IS THE BASIC N FORMOST DIFFERENCE...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 03:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2136795#M449592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T03:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2136796#M449593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Balu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-options and ranges represent the same technology..meaning their internal &lt;/P&gt;&lt;P&gt;representations are the are the same. They are used to store a range of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But select-options is used as a selection screen component while&lt;/P&gt;&lt;P&gt;ranges are used to create internal tables of type select-options, to store a range&lt;/P&gt;&lt;P&gt;in order to use in select queries...(mainly, for using the IN option in the where clause&lt;/P&gt;&lt;P&gt;of a select query, for a variable for which a select-option does not exist)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;Sajan Joseph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 04:19:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2136796#M449593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T04:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2136797#M449594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balu , &lt;/P&gt;&lt;P&gt;  Both of them serve the same purpose , the only major diffrence being that select options gives a graphical interfce which is created automatically which ranges does not provide.&lt;/P&gt;&lt;P&gt;One more small diffrence is select options always have a header line associaated with it , but it is not always the case with ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 04:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2136797#M449594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T04:22:40Z</dc:date>
    </item>
  </channel>
</rss>

