<?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: Creating Range Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408527#M1407393</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Depesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;But I have come to know that range table created like this can hold records upto 1000 and after 1000, it drop the records.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where did you come to know this enlightening info? SAP documentation does not say anything on this &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Dec 2009 10:58:04 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2009-12-03T10:58:04Z</dc:date>
    <item>
      <title>Creating Range Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408525#M1407391</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;&lt;/P&gt;&lt;P&gt;I have created a range table as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data ltrg_tab type range of lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have come to know that range table created like this can hold records upto 1000 and after 1000, it drop the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I can overcome this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Depesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 10:48:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408525#M1407391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-03T10:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Range Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408526#M1407392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Depesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tried to with 1001 record and it worked.. check the code below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES : r_mara TYPE RANGE OF mara-matnr ,
        ty_mara TYPE LINE OF r_mara  .

DATA : ls_mara TYPE ty_mara ,
       i_mara  TYPE r_mara  .
DATA : lv_line TYPE syst-tabix .

DO 1001 TIMES .

  ls_mara-sign = 'I' .
  ls_mara-option = 'EQ' .
  ls_mara-low = 'MMMM' .
  APPEND ls_mara TO i_mara .

ENDDO .

DESCRIBE TABLE i_mara LINES lv_line .
WRITE lv_line .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However if you use range with that many record with SELECT statemen then it may cause dump..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 10:55:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408526#M1407392</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2009-12-03T10:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Range Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408527#M1407393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Depesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;But I have come to know that range table created like this can hold records upto 1000 and after 1000, it drop the records.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where did you come to know this enlightening info? SAP documentation does not say anything on this &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 10:58:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408527#M1407393</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-12-03T10:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Range Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408528#M1407394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah right,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting a dump in the select statement containing range table with more that 1000 entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can it be tuned?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Depesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 11:05:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408528#M1407394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-03T11:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Range Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408529#M1407395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is something different. It has got nothing to do with the maximum number of records in a RANGE table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a limit to the length of the Native SQL which is generated when you write an Open SQL stmt. Search in SDn you will get the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 11:11:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408529#M1407395</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-12-03T11:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Range Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408530#M1407396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select statement with range/select-option are expanded by ABAP for each record in range/select-option and then passed to database server. More number of record in range/select-option results in bigger SQL string. However there is a limit on the length of SQL statement that can be passed to database server from SAP. Once your select with range cross that limit you will get dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Review the logic, try using JOIN or split your range for fewer records and execute Select for each.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 11:14:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408530#M1407396</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2009-12-03T11:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Range Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408531#M1407397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Pawan for your suggestion. It seems helpful by breaking the query for smaller set as no direct option seems available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Suhas Saha: You could make out faults in the query or but could not try solving the issue. Suggestion: = Instead of finding ENLIGHTENED info and suggesting search on sap help, you could have checked the limitation of SQL for maximum records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Depesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 11:41:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408531#M1407397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-03T11:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Range Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408532#M1407398</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;As told, the range table's size is limited by the database system.&lt;/P&gt;&lt;P&gt;Alternatively, you could write a logic that puts all the data in ranges into an internal table. &lt;/P&gt;&lt;P&gt;Do watch out for 'I', 'E', 'BT', 'EQ' and others.&lt;/P&gt;&lt;P&gt;Come up with a logic where you can populate all these data into an internal table.&lt;/P&gt;&lt;P&gt;You could probably use a FOR ALL ENTRIES in your select query.&lt;/P&gt;&lt;P&gt;I think this would considerably save time.  Coz even if you hit the database in parts, its an expensive affair &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I would rather code a logic and hit the database once.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 11:46:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408532#M1407398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-03T11:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Range Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408533#M1407399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah Nitwick, Thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used FOR ALL ENTRIES clause and It is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Depesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 11:49:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408533#M1407399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-03T11:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Range Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408534#M1407400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Depesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;you could have checked the limitation of SQL for maximum records.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why should i search for your problem? I wanted to put forward the point that there is no limitation to the number of records in a range table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an OSS note which address to the maximum length of a SQL stmt. And problems similar to this has been discussed many a times in this forum so i asked you to search the forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 12:00:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-range-table/m-p/6408534#M1407400</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-12-03T12:00:25Z</dc:date>
    </item>
  </channel>
</rss>

