<?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: Using Ranges in the program. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-ranges-in-the-program/m-p/903757#M55702</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;I assume that you have not had a problem declaring the RANGES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you should know that r_matnr is actually an internal table (exactly similar to the selection-table you'd have obtained , had you declared a select-options for MATNR). Treat it like an internal table. If you use it as a normal field, you are bound to end up in errors like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2005 12:26:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-05-13T12:26:40Z</dc:date>
    <item>
      <title>Using Ranges in the program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-ranges-in-the-program/m-p/903756#M55701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When i use the range in my program it gives the follwing error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the range i declare is r_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the in operator with r_matnr is followed neither by an internal table nor by a value list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2005 12:22:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-ranges-in-the-program/m-p/903756#M55701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-13T12:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using Ranges in the program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-ranges-in-the-program/m-p/903757#M55702</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;I assume that you have not had a problem declaring the RANGES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you should know that r_matnr is actually an internal table (exactly similar to the selection-table you'd have obtained , had you declared a select-options for MATNR). Treat it like an internal table. If you use it as a normal field, you are bound to end up in errors like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2005 12:26:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-ranges-in-the-program/m-p/903757#M55702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-13T12:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using Ranges in the program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-ranges-in-the-program/m-p/903758#M55703</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 declaration shoul be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES:&lt;/P&gt;&lt;P&gt;  r_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filling the range is accomplished by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  r_matnr-low = '000000000000000001'.&lt;/P&gt;&lt;P&gt;  r_matnr-low = '000000000000009999'.&lt;/P&gt;&lt;P&gt;  r_matnr-option = 'BT'.&lt;/P&gt;&lt;P&gt;  r_matnr-sign   = 'I'.&lt;/P&gt;&lt;P&gt;  APPEND r_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selection is then accomplished by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM mara WHERE matnt in r_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note 1: MATNR is CHAR(18) - so be sure to start with leading zeroes, if applicable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note 2: Dont forget the APPEND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps (please reward me if it does),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2005 12:36:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-ranges-in-the-program/m-p/903758#M55703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-13T12:36:07Z</dc:date>
    </item>
  </channel>
</rss>

