<?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 table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-table/m-p/2091778#M434980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If  you declare ranges like select-options, ranges table will be automatically created by system.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 31 Mar 2007 04:52:42 GMT</pubDate>
    <dc:creator>former_member225631</dc:creator>
    <dc:date>2007-03-31T04:52:42Z</dc:date>
    <item>
      <title>ranges table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-table/m-p/2091777#M434979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to create a ranges table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2007 02:33:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-table/m-p/2091777#M434979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-31T02:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: ranges table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-table/m-p/2091778#M434980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If  you declare ranges like select-options, ranges table will be automatically created by system.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2007 04:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-table/m-p/2091778#M434980</guid>
      <dc:creator>former_member225631</dc:creator>
      <dc:date>2007-03-31T04:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: ranges table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-table/m-p/2091779#M434981</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;First Ranges are similar to select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You declare ranges using the ranges keyword.&lt;/P&gt;&lt;P&gt;For ex: &lt;/P&gt;&lt;P&gt;Ranges r_matnr for mara-matnr occurs 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to declare mara with the TABLES statement. This creates the ranges internal table with a header. Remember that ranges are similar to select-options. So, the ranges internal table has the same structure as select-options. The structure is as follows...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sign option low high&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answers your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Koushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2007 04:57:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-table/m-p/2091779#M434981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-31T04:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: ranges table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-table/m-p/2091780#M434982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a Sample for Creation range Table..............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Range Table Declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA : r_ettyp TYPE RANGE OF vbep-ettyp WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Making The Range Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  r_ettyp-sign = 'I'.&lt;/P&gt;&lt;P&gt;  r_ettyp-option = 'EQ'.&lt;/P&gt;&lt;P&gt;  r_ettyp-low = 'CP'.&lt;/P&gt;&lt;P&gt;  r_ettyp-high = 0.&lt;/P&gt;&lt;P&gt;  APPEND r_ettyp.&lt;/P&gt;&lt;P&gt;  CLEAR r_ettyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  r_ettyp-sign = 'I'.&lt;/P&gt;&lt;P&gt;  r_ettyp-option = 'EQ'.&lt;/P&gt;&lt;P&gt;  r_ettyp-low = 'EP'.&lt;/P&gt;&lt;P&gt;  r_ettyp-high = 0.&lt;/P&gt;&lt;P&gt;  APPEND r_ettyp.&lt;/P&gt;&lt;P&gt;  CLEAR r_ettyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2007 05:32:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-table/m-p/2091780#M434982</guid>
      <dc:creator>SumanPoddar</dc:creator>
      <dc:date>2007-03-31T05:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: ranges table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-table/m-p/2091781#M434983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Ranges : R_matnr for mara-matnr.


R_matnr-sign = 'I'.
R_matnr-option = 'BT'.
R_matnr-low = '1000000'.
R_matnr-high = ''.
append R_matnr.
clear R_matnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2007 05:35:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-table/m-p/2091781#M434983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-31T05:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: ranges table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-table/m-p/2091782#M434984</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 code. &lt;/P&gt;&lt;P&gt;- Here the range table is for field "company code". &lt;/P&gt;&lt;P&gt;- After that the range table is filled using macro. Using macro you can omit using same code again and again. &lt;/P&gt;&lt;P&gt;-Then this range table is used in select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*----------------------------------------------------------------------*
*----------------------------------------------------------------------*
*--- MACRO - Fill Company Code
DEFINE fill_bukrs.
  r_bukrs-sign     = 'I'.
  r_bukrs-low      =  &amp;amp;1.
  r_bukrs-option  = 'EQ'.
  append r_bukrs.
END-OF-DEFINITION.
 
TABLES: t001.
 
DATA: lit_bkpf LIKE STANDARD TABLE OF bkpf.
 
RANGES: r_bukrs FOR t001-bukrs.  "&amp;lt;-- This is how you define range
 
fill_bukrs '0001'.       "&amp;lt;-- range table is filled using MACRO 
fill_bukrs '0100'.       "     which is defined at the top
fill_bukrs '1000'.
fill_bukrs '1001'.
 
* here DBTAB = database table
* &amp;amp; INTAB = internal table
SELECT *
        FROM &amp;lt;DBTAB&amp;gt;
        INTO TABLE &amp;lt;INTAB&amp;gt;
        WHERE bukrs IN r_bukrs.
*----------------------------------------------------------------------*
*----------------------------------------------------------------------*&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2007 05:59:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-table/m-p/2091782#M434984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-31T05:59:22Z</dc:date>
    </item>
  </channel>
</rss>

