<?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: How to use Commit in Cursor in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-commit-in-cursor/m-p/12414588#M1996711</link>
    <description>&lt;P&gt;I tried that also by using DB_COMMIT in addition with hold but that also causing the same issue. Its not working ..&lt;/P&gt;&lt;P&gt;Have you tried it...if yes please give the example it will be very helpful&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jul 2021 20:38:36 GMT</pubDate>
    <dc:creator>former_member754957</dc:creator>
    <dc:date>2021-07-05T20:38:36Z</dc:date>
    <item>
      <title>How to use Commit in Cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-commit-in-cursor/m-p/12414585#M1996708</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;I am trying to use Commit in cursor so that everytime it updates the data into table but after first iteration of cursor , it is giving dump at fetch statement of cursor.&lt;/P&gt;
  &lt;P&gt;Can anyone help me with any solution, how to commit the changes on each iteration of cursor?&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 11:17:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-commit-in-cursor/m-p/12414585#M1996708</guid>
      <dc:creator>former_member754957</dc:creator>
      <dc:date>2021-07-05T11:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Commit in Cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-commit-in-cursor/m-p/12414586#M1996709</link>
      <description>&lt;P&gt;So long as your not trying to change the contents of the table you have the cursor, you can use the alternate database connection. R/3* to update another table and commit to it. &lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abenopensql_multiconnect.htm#@@ITOC@@ABENOPENSQL_MULTICONNECT_3" target="test_blank"&gt;https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abenopensql_multiconnect.htm#@@ITOC@@ABENOPENSQL_MULTICONNECT_3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DELETE FROM demo_update CONNECTION R/3*my_service_conn.
INSERT demo_update CONNECTION R/3*my_service_conn  
    FROM @( VALUE #( id = 'X'  col1 = 1 col2 = 2 col3 = 3 col4 = 4 ) ).
COMMIT CONNECTION R/3*my_service_conn.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Jul 2021 14:41:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-commit-in-cursor/m-p/12414586#M1996709</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2021-07-05T14:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Commit in Cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-commit-in-cursor/m-p/12414587#M1996710</link>
      <description>&lt;P&gt;If you use OPEN CURSOR and CALL FUNCTION 'DB_COMMIT', use the addition "WITH HOLD". The database commit won't close the cursors. NB: COMMIT WORK always closes all opened cursors.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 16:06:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-commit-in-cursor/m-p/12414587#M1996710</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-07-05T16:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Commit in Cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-commit-in-cursor/m-p/12414588#M1996711</link>
      <description>&lt;P&gt;I tried that also by using DB_COMMIT in addition with hold but that also causing the same issue. Its not working ..&lt;/P&gt;&lt;P&gt;Have you tried it...if yes please give the example it will be very helpful&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 20:38:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-commit-in-cursor/m-p/12414588#M1996711</guid>
      <dc:creator>former_member754957</dc:creator>
      <dc:date>2021-07-05T20:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Commit in Cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-commit-in-cursor/m-p/12414589#M1996712</link>
      <description>&lt;P&gt;Thank you so much Matthew .. It worked.&lt;/P&gt;&lt;P&gt;Thanks alot &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 20:59:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-commit-in-cursor/m-p/12414589#M1996712</guid>
      <dc:creator>former_member754957</dc:creator>
      <dc:date>2021-07-05T20:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Commit in Cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-commit-in-cursor/m-p/12414590#M1996713</link>
      <description>&lt;P&gt;Yes, I tried, it works, it's explained in the ABAP documentation, answered also in all the same questions in the forum as yours...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA l_cursor TYPE cursor.
OPEN CURSOR WITH HOLD ... SELECT ... FROM dbtab1 ...
DO.
  FETCH NEXT CURSOR ... INTO TABLE itab PACKAGE SIZE 1000.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    EXIT.
  ENDIF.
  " itab processing
  INSERT dbtab2 FROM TABLE itab.
  CALL FUNCTION 'DB_COMMIT'.
ENDDO.
CLOSE CURSOR ...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If such a simple example doesn't work in your system, there's a bug in the kernel, raise a ticket at SAP support.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 04:23:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-commit-in-cursor/m-p/12414590#M1996713</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-07-06T04:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Commit in Cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-commit-in-cursor/m-p/12414591#M1996714</link>
      <description>&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;I also tried the same only by referring SAP forum but none seems to working thats why i raised the question.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 05:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-commit-in-cursor/m-p/12414591#M1996714</guid>
      <dc:creator>former_member754957</dc:creator>
      <dc:date>2021-07-06T05:21:34Z</dc:date>
    </item>
  </channel>
</rss>

