<?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 work inside Open cursor : Please help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-inside-open-cursor-please-help/m-p/6911184#M1482912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Cross post locked

Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Apr 2010 14:03:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-28T14:03:59Z</dc:date>
    <item>
      <title>Commit work inside Open cursor : Please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-inside-open-cursor-please-help/m-p/6911183#M1482911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;I'm using open cursor for performance purpose as I'be to pull a large no. of records. Inside the do -enddo, I've to update a Ztable. So, after using the insert statement, I put " commit work" but it started giving dump because it resets the cursor. To avoid that I used the function module "DB_commit" but it's not updating the records in Ztable. code is like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN CURSOR WITH HOLD lv_bsak_dbcur1 FOR&lt;/P&gt;&lt;P&gt;SELECT bukrs augbl auggj kostl prctr gsber aufnr&lt;/P&gt;&lt;P&gt;lifnr umskz augdt gjahr belnr buzei budat bldat cpudt&lt;/P&gt;&lt;P&gt;waers bschl shkzg mwskz dmbtr wrbtr sgtxt saknr&lt;/P&gt;&lt;P&gt;zfbdt zterm zbd3t zlsch hbkid rebzg rebzj rebzz fistl&lt;/P&gt;&lt;P&gt;geber bstat FROM bsak&lt;/P&gt;&lt;P&gt;WHERE gjahr IN r_gjahr&lt;/P&gt;&lt;P&gt;ORDER BY bukrs augbl auggj kostl prctr gsber aufnr.&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;REFRESH it_bsak.&lt;/P&gt;&lt;P&gt;FETCH NEXT CURSOR lv_bsak_dbcur1&lt;/P&gt;&lt;P&gt;APPENDING CORRESPONDING FIELDS OF TABLE it_bsak&lt;/P&gt;&lt;P&gt;PACKAGE SIZE iv_fetch_batch_size.&lt;/P&gt;&lt;P&gt;IF NOT sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;CLOSE CURSOR lv_bsak_dbcur1.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT it_bsak IS INITIAL.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;some process to form fina table&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;insert ztable from table it_final.&lt;/P&gt;&lt;P&gt;if sy-subrc is initial.&lt;/P&gt;&lt;P&gt;call function "DB_commit".&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I'll use "commit work", it'll give dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise as what to do so that Dump can be avoided &amp;amp; records cab updated as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks:&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 11:51:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-inside-open-cursor-please-help/m-p/6911183#M1482911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-28T11:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work inside Open cursor : Please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-inside-open-cursor-please-help/m-p/6911184#M1482912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Cross post locked

Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 14:03:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-inside-open-cursor-please-help/m-p/6911184#M1482912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-28T14:03:59Z</dc:date>
    </item>
  </channel>
</rss>

