<?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 Splitting internal table(dynamic) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-internal-table-dynamic/m-p/10589630#M1860968</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;My internal table loads records more than 50,000 records&amp;nbsp; at run time depends on user inputs ,and that internal table is in loop,I want to split that internal table into 5 or 6 or more than into&amp;nbsp; internal tables,&amp;nbsp; and loop each internal table so that loop doesn't go time out error.(exactly , I don't have an idea of how many records in internal table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Oct 2014 15:48:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-10-06T15:48:47Z</dc:date>
    <item>
      <title>Splitting internal table(dynamic)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-internal-table-dynamic/m-p/10589630#M1860968</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;My internal table loads records more than 50,000 records&amp;nbsp; at run time depends on user inputs ,and that internal table is in loop,I want to split that internal table into 5 or 6 or more than into&amp;nbsp; internal tables,&amp;nbsp; and loop each internal table so that loop doesn't go time out error.(exactly , I don't have an idea of how many records in internal table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 15:48:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-internal-table-dynamic/m-p/10589630#M1860968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-06T15:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting internal table(dynamic)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-internal-table-dynamic/m-p/10589631#M1860969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure about your requirement. You want to split the internal tables to 5 or 6 (dynamic) to prevent time out error, right? My questions is, are you sure you wouldn't get time out error after you successfully split these internal table and doing loops? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say you have 50.000 records, and then you split to 5 internal table (itab). So, each itab have 10.000 records. When you do loop in these itab, you will still loop 50.000 (5 x 10.000) times. So, I think it will not solve your time out error issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it's better to fine tune the code inside the loop, or do it background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Surya Wijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 16:09:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-internal-table-dynamic/m-p/10589631#M1860969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-06T16:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting internal table(dynamic)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-internal-table-dynamic/m-p/10589632#M1860970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt; I Don't think splitting the internal table is going to be right option. To find the internal table length, use describe statement as shown below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;"To find the Length of the Internal Table&lt;/P&gt;
&lt;P&gt; DESCRIBE TABLE IT_FINAL LINES L_LEN. &lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And based on length of internal table, we can split the internal table and store the same into sub internal table using &lt;STRONG&gt;INDEX&lt;/STRONG&gt; keyword. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajkumar Narasimman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 16:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-internal-table-dynamic/m-p/10589632#M1860970</guid>
      <dc:creator>rajkumarnarasimman</dc:creator>
      <dc:date>2014-10-06T16:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting internal table(dynamic)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-internal-table-dynamic/m-p/10589633#M1860971</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 of all: Never LOOP AT itab INTO headerline, always LOOP AT itab ASSIGNING &amp;lt;field-symbol&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will speed up the loop that you never get a time-out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second: Do not split the table, rather define the table as SORTED. LOOP ... WHERE will use the KEY. If your ABAP version is not out of date, you can define secondary indexes on the table for furher enhancement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax is a bit tricky - will need to read the documentation when trying first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number of lines.of internal table is given by bulit-in function lines( itab ). Only for upward compatibility reasons DESCRIBE TABLE still works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 16:24:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-internal-table-dynamic/m-p/10589633#M1860971</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2014-10-06T16:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting internal table(dynamic)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-internal-table-dynamic/m-p/10589634#M1860972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Clemens Li: When advising obviously not so experienced programmers to use field-symbols, please don't forget to point out the potencial risk. It is safe enough, if you're only reading but still, it is not in line with most programming guidelines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;Splitting your table won't get you anywhere. If you want to follow Clemens advice, then first, you'll have to check with your client, if use of field-symbols are OK for the sake of a bit better performance. But i don't think this will really do you much good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A loop on an internal table of 50K shouldn't cause a timeout. So you'll want to have a closer look on what ever it is, that you're doing IN the loop. Or if it's realy just the loop and the transferring of data to the WA, ask yourself if you really need all the data.&lt;/P&gt;&lt;P&gt;Watchout for nested loops. Take care of repeated statements, that could as well be placed outside the loop. Do not do anything unnecessary whithin the loop.&lt;/P&gt;&lt;P&gt;When everything is properly revised and you still have a timeout issue, think about running the program in background. Some programs simply can't run in dialog with every thinkable selection criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards - Jörg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 17:32:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-internal-table-dynamic/m-p/10589634#M1860972</guid>
      <dc:creator>jrg_wulf</dc:creator>
      <dc:date>2014-10-06T17:32:38Z</dc:date>
    </item>
  </channel>
</rss>

