<?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: problem while using RANGES in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-ranges/m-p/1066482#M93432</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;There is a change in syntax for Ranges from 4.7 onwards.&lt;/P&gt;&lt;P&gt;The correct sysntax to use the ranges is:&lt;/P&gt;&lt;P&gt;Correct syntax: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA rangetab TYPE|LIKE RANGE OF ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables with a header are not allowed in ABAP Objects; declare your table using permitted statements instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Oct 2005 05:18:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-21T05:18:51Z</dc:date>
    <item>
      <title>problem while using RANGES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-ranges/m-p/1066477#M93427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts?&lt;/P&gt;&lt;P&gt;Is it possible to use RANGES in select  statement directly??While iam using getting follwing error...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The IN operator with "Range1" is followed neither by an internal table nor by a value list."&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;where might be the error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 04:24:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-ranges/m-p/1066477#M93427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T04:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: problem while using RANGES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-ranges/m-p/1066478#M93428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure you have declared it using the RANGES keyword?&lt;/P&gt;&lt;P&gt;If you have used PARAMETERS and then using the IN clause, usually the error comes.&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>Fri, 21 Oct 2005 04:29:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-ranges/m-p/1066478#M93428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T04:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: problem while using RANGES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-ranges/m-p/1066479#M93429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;    Can u paste the code so that i will be easy to give the solution..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with Regards,&lt;/P&gt;&lt;P&gt;Ranganathan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 04:29:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-ranges/m-p/1066479#M93429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T04:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: problem while using RANGES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-ranges/m-p/1066480#M93430</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 you code whether you define the range correctly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranges : range1 for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ......from mara into table itab where matnr in range1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 04:38:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-ranges/m-p/1066480#M93430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T04:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: problem while using RANGES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-ranges/m-p/1066481#M93431</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;This is how u use Ranges and Select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
RANGES:
r_matnr for mara-matnr.

Filling the range is accomplished by:

r_matnr-low = '000000000000000001'.
r_matnr-low = '000000000000009999'.
r_matnr-option = 'BT'.
r_matnr-sign = 'I'.
APPEND r_matnr.

The selection is then accomplished by:

SELECT * FROM mara WHERE matnt in r_matnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can paste ur code here, we can understand the requirement better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 04:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-ranges/m-p/1066481#M93431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T04:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: problem while using RANGES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-ranges/m-p/1066482#M93432</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;There is a change in syntax for Ranges from 4.7 onwards.&lt;/P&gt;&lt;P&gt;The correct sysntax to use the ranges is:&lt;/P&gt;&lt;P&gt;Correct syntax: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA rangetab TYPE|LIKE RANGE OF ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables with a header are not allowed in ABAP Objects; declare your table using permitted statements instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 05:18:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-ranges/m-p/1066482#M93432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T05:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: problem while using RANGES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-ranges/m-p/1066483#M93433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check with my code.&lt;/P&gt;&lt;P&gt;select-options: r_matnr for mara-matnr no intervals.&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt; check: not sy-ucomm = '%001'.&lt;/P&gt;&lt;P&gt;   LOOP AT r_matnr.&lt;/P&gt;&lt;P&gt;       IF r_matnr-SIGN NE 'I' OR r_matnr-OPTION NE 'EQ'.&lt;/P&gt;&lt;P&gt;           message e000 with text-e02.&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt;loop at r_matnr.&lt;/P&gt;&lt;P&gt;select...............where matnr = r_matnr-low.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;here with code you can give single values or you can give multiple values in selection screen.&lt;/P&gt;&lt;P&gt;i hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;SUB&gt;Cheers&lt;/SUB&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Deepak333 k&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 06:40:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-ranges/m-p/1066483#M93433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T06:40:39Z</dc:date>
    </item>
  </channel>
</rss>

