<?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: Commit to release memory in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-to-release-memory/m-p/1435533#M207694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well you can use "commit work and wait" statement after each 5000 record. put a counter and inside the if condition use above command.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jul 2006 17:38:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-06T17:38:38Z</dc:date>
    <item>
      <title>Commit to release memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-to-release-memory/m-p/1435531#M207692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a program that updates an infostructure from another by collecting based on certain criteria. But my source has around 2 Million records and uses up a lot of memory. How can i commit the update lets say, for every 25000 records.&lt;/P&gt;&lt;P&gt;And does that release the memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 17:30:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-to-release-memory/m-p/1435531#M207692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T17:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Commit to release memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-to-release-memory/m-p/1435532#M207693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;   do not update all the records at a time. split them into 5000 records something like that and update the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry i have understood it differently.&lt;/P&gt;&lt;P&gt;sudheer.A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: sudheer Addepalli&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 17:36:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-to-release-memory/m-p/1435532#M207693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T17:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Commit to release memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-to-release-memory/m-p/1435533#M207694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well you can use "commit work and wait" statement after each 5000 record. put a counter and inside the if condition use above command.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 17:38:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-to-release-memory/m-p/1435533#M207694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T17:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Commit to release memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-to-release-memory/m-p/1435534#M207695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gather from the source in smaller chunks (like 25000) and commit the update.  Then clear/refresh the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will limit the internal table to a byte size of (25000) times (width of record).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal table size = number of record   X  record width&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 17:39:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-to-release-memory/m-p/1435534#M207695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T17:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Commit to release memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-to-release-memory/m-p/1435535#M207696</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 have to modify like in the code below.&lt;/P&gt;&lt;P&gt;And how can i commit for every 25000 records when the situation is as below. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  modify s701 from table it_s701 .
  if sy-subrc eq 0.
    ws_dbcnt = ws_dbcnt + sy-dbcnt.
  endif.

  modify s701 from table it_zdrr.
  if sy-subrc eq 0.
    ws_dbcnt = ws_dbcnt + sy-dbcnt.
  endif.

  modify s701 from table it_zrep.
  if sy-subrc eq 0.
    ws_dbcnt = ws_dbcnt + sy-dbcnt.
  endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks again..!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 19:59:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-to-release-memory/m-p/1435535#M207696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T19:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Commit to release memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-to-release-memory/m-p/1435536#M207697</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 this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ws_dbcnt  =  25000 .&lt;/P&gt;&lt;P&gt;  commit work and wait&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are inside the loop , at the end use commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LAST.&lt;/P&gt;&lt;P&gt;  COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laxman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 20:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-to-release-memory/m-p/1435536#M207697</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-06T20:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Commit to release memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-to-release-memory/m-p/1435537#M207698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laxman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, i wouldn't get the ws_dbcnt untill i get the whole Internal table updated to the DB table. so if it has a million records, i would still be losing on memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i'm not looping in the internal table here, so i can't use the second option either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to do this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again..!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 20:12:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-to-release-memory/m-p/1435537#M207698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T20:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Commit to release memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-to-release-memory/m-p/1435538#M207699</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;Then use 'commit work and wait' after every modify statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laxman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 20:18:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-to-release-memory/m-p/1435538#M207699</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-06T20:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Commit to release memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-to-release-memory/m-p/1435539#M207700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use "Commit work and Wait" as i mentioned earlier. it will solve your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 20:23:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-to-release-memory/m-p/1435539#M207700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T20:23:18Z</dc:date>
    </item>
  </channel>
</rss>

