<?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: What difference between Range &amp; Select option. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-difference-between-range-select-option/m-p/2583499#M590927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Main diffrence is that ranges is not a component of selection screen as select option is. ranges is used while executable programs are called using submit program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2007 10:06:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-25T10:06:38Z</dc:date>
    <item>
      <title>What difference between Range &amp; Select option.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-difference-between-range-select-option/m-p/2583497#M590925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What difference between Range &amp;amp; Select option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 06:40:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-difference-between-range-select-option/m-p/2583497#M590925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T06:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: What difference between Range &amp; Select option.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-difference-between-range-select-option/m-p/2583498#M590926</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;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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 06:42:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-difference-between-range-select-option/m-p/2583498#M590926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T06:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: What difference between Range &amp; Select option.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-difference-between-range-select-option/m-p/2583499#M590927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Main diffrence is that ranges is not a component of selection screen as select option is. ranges is used while executable programs are called using submit program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 10:06:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-difference-between-range-select-option/m-p/2583499#M590927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T10:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: What difference between Range &amp; Select option.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-difference-between-range-select-option/m-p/2583500#M590928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;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;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;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 10:08:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-difference-between-range-select-option/m-p/2583500#M590928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T10:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: What difference between Range &amp; Select option.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-difference-between-range-select-option/m-p/2583501#M590929</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;  The major difference we can condiser is : select options creates an interface in the selection screen whereas ranges doesnt ..&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;Ranjita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 10:10:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-difference-between-range-select-option/m-p/2583501#M590929</guid>
      <dc:creator>former_member196299</dc:creator>
      <dc:date>2007-07-25T10:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: What difference between Range &amp; Select option.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-difference-between-range-select-option/m-p/2583502#M590930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Difference&lt;/P&gt;&lt;P&gt;Select-option is used in selection screen where as ranges can not be used as such in selection screen. &lt;/P&gt;&lt;P&gt;Similarity&lt;/P&gt;&lt;P&gt;The manner in which data is stored is similar so that in your ABAP program you can populate a range and assign values at run time to select options&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 10:12:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-difference-between-range-select-option/m-p/2583502#M590930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T10:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: What difference between Range &amp; Select option.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-difference-between-range-select-option/m-p/2583503#M590931</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;tables : MARA.&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;&lt;/P&gt;&lt;P&gt;RANGES : R_MATNR FOR MARA-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both these statements Create a Table with the fields &lt;/P&gt;&lt;P&gt;  SIGN  = 'I' or 'E'  (INCLUDE OR EXCLUDE)&lt;/P&gt;&lt;P&gt;  OPTION = 'BT'   'EQ' ...etc&lt;/P&gt;&lt;P&gt;  LOW = Lower limit&lt;/P&gt;&lt;P&gt;  HIGH = Upper limit&lt;/P&gt;&lt;P&gt;But Only Select-options Generate a field on the SELECTION SCREEN.&lt;/P&gt;&lt;P&gt;Mostly we use the RANGES table to fill the Selection criteria to Pass to another program while calling using SUBMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 10:12:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-difference-between-range-select-option/m-p/2583503#M590931</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-07-25T10:12:37Z</dc:date>
    </item>
  </channel>
</rss>

