<?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 Internal Table optimisation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-optimisation/m-p/9052813#M1702070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam using the transaction MR8m to cancel documents.Have around 50,000 invoices to cancel.&lt;BR /&gt;Iam reading the 50,000 Invoice numbers from a file and filling an internal table.&lt;/P&gt;&lt;P&gt;Iam declaring the itab as follows and loop through the itab and call the MR8m TO generate a batchInput map.Then afterwards the batchInput map is processed in SM35.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:&amp;nbsp; BEGIN OF gty_tab,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; belnr TYPE rbkp-belnr,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gjahr TYPE rbkp-gjahr,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; storno TYPE uf05a-stgrd,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END OF gty_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : gt_belege TYPE TABLE OF gty_tab,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_belege LIKE LINE OF gt_belege,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My question is there a maximum limit for itab and can i do any perfomance optimizations here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2012 14:46:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-09-24T14:46:33Z</dc:date>
    <item>
      <title>Internal Table optimisation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-optimisation/m-p/9052813#M1702070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam using the transaction MR8m to cancel documents.Have around 50,000 invoices to cancel.&lt;BR /&gt;Iam reading the 50,000 Invoice numbers from a file and filling an internal table.&lt;/P&gt;&lt;P&gt;Iam declaring the itab as follows and loop through the itab and call the MR8m TO generate a batchInput map.Then afterwards the batchInput map is processed in SM35.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:&amp;nbsp; BEGIN OF gty_tab,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; belnr TYPE rbkp-belnr,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gjahr TYPE rbkp-gjahr,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; storno TYPE uf05a-stgrd,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END OF gty_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : gt_belege TYPE TABLE OF gty_tab,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_belege LIKE LINE OF gt_belege,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My question is there a maximum limit for itab and can i do any perfomance optimizations here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 14:46:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-optimisation/m-p/9052813#M1702070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-24T14:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table optimisation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-optimisation/m-p/9052814#M1702071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Internal tables can take way more than 50k records.&lt;/P&gt;&lt;P&gt;I do not know the exact upper limit value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 19:13:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-optimisation/m-p/9052814#M1702071</guid>
      <dc:creator>Azeemquadri</dc:creator>
      <dc:date>2012-10-03T19:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table optimisation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-optimisation/m-p/9052815#M1702072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;50.000 records in the internal table is not a very big deal.&lt;/P&gt;&lt;P&gt;The size of the table is limited to the memory that can be occupied by one work process. You normally have some parameters to control that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. General advice: normally BAPIs are faster that batch input. Please check if function BAPI_INCOMINGINVOICE_CANCEL is doing the same as transaction MR8M. If yes, I strongly advise you using this BAPI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 11:19:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-optimisation/m-p/9052815#M1702072</guid>
      <dc:creator>yuri_ziryukin</dc:creator>
      <dc:date>2012-10-04T11:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table optimisation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-optimisation/m-p/9052816#M1702073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem with the internal table size (if your records are not so large), if you want yo use BDC, then create BDC in package of 500-1000 transactions &lt;SPAN class="short_text" id="result_box" lang="en"&gt;in order to &lt;SPAN class="hps"&gt;parallelize&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the execution&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;background. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;Usually BAPI &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;when available&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;, as &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="j-post-author "&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://answers.sap.com/people/yuri.ziryukin" id="jive-581026019375610833911"&gt;Yuri Ziryukin&lt;/A&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt; wrote, are faster (no screen management) but there is no tool to manage errors, you will have to store somewhere the failed updates.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Raymond&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 17:49:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-optimisation/m-p/9052816#M1702073</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-10-04T17:49:29Z</dc:date>
    </item>
  </channel>
</rss>

