<?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 and Wait after Rollback really needed? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-after-rollback-really-needed/m-p/402302#M10331</link>
    <description>&lt;P&gt;As Sandra said, looks good to me, you are logging the error and then committing the log to the database. Actually pretty darn good, because who ever wrote that code is thinking forward to supporting the system!&lt;/P&gt;</description>
    <pubDate>Fri, 16 Dec 2016 16:35:23 GMT</pubDate>
    <dc:creator>raghug</dc:creator>
    <dc:date>2016-12-16T16:35:23Z</dc:date>
    <item>
      <title>Commit Work and Wait after Rollback really needed?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-after-rollback-really-needed/m-p/402300#M10329</link>
      <description>&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;I just've seen following code and would like to ask why I have to confirm after I did a rollback?&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/11396-j0xq6.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;P&gt;Denis.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 08:55:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-after-rollback-really-needed/m-p/402300#M10329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-16T08:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work and Wait after Rollback really needed?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-after-rollback-really-needed/m-p/402301#M10330</link>
      <description>&lt;P&gt;As you can see, COMMIT is not directly after ROLLBACK ; so maybe it's because the between code (INSERT_TABLE) updates the database, or do some other stuff related to SAP LUWs.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 09:21:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-after-rollback-really-needed/m-p/402301#M10330</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-12-16T09:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work and Wait after Rollback really needed?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-after-rollback-really-needed/m-p/402302#M10331</link>
      <description>&lt;P&gt;As Sandra said, looks good to me, you are logging the error and then committing the log to the database. Actually pretty darn good, because who ever wrote that code is thinking forward to supporting the system!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 16:35:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-after-rollback-really-needed/m-p/402302#M10331</guid>
      <dc:creator>raghug</dc:creator>
      <dc:date>2016-12-16T16:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work and Wait after Rollback really needed?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-after-rollback-really-needed/m-p/402303#M10332</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As you can see the message is into lv_msg.&lt;/P&gt;&lt;P&gt;and you do after that mo_log-&amp;gt;insert_message()&lt;/P&gt;&lt;P&gt;That commit is because of the method insert_table, to make sure the data was inserted in the table..&lt;/P&gt;&lt;P&gt;If that table is for error log the commit after the error message is to guarantee the error was saved in the log table to display when necessary.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Filipe Sardinha&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 17:09:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-after-rollback-really-needed/m-p/402303#M10332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-16T17:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work and Wait after Rollback really needed?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-after-rollback-really-needed/m-p/402304#M10333</link>
      <description>&lt;P&gt;ABAP Help:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The statement ROLLBACK WORK closes the current SAP LUW and opens a new one.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;In this case COMMIT WORK belongs to the LUW that was started after ROLLBACK. If there was no code at all in between then, of course, this would just make no sense. Also I'd say that you don't necessarily &lt;STRONG&gt;have to&lt;/STRONG&gt; do COMMIT here (because there is always COMMIT at the end of the program) but it could be needed depending on the context and requirement, as Raghu noted.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 19:11:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-after-rollback-really-needed/m-p/402304#M10333</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2016-12-16T19:11:24Z</dc:date>
    </item>
  </channel>
</rss>

