<?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 Implicit commit does not seem to trigger update task function module? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-commit-does-not-seem-to-trigger-update-task-function-module/m-p/11575502#M1938418</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 module which updates certain logging information in a DB-table. This logging needs to happen always, even when the program itself does no other DB-updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to avoid dumps because rapid consecutive updates from different program executions collide because a physical lock is set at the moment of executing the insert statement, I decided to move the update logic into an update task function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I trigger the update from a report the update only happens with an explicit commit work at the end of the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do not include an explicit commit work the following happens according DB trace:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;tables VBMOD, VBDATA etc are updated when the function is executed.&lt;/LI&gt;&lt;LI&gt;implicit commit work is executed&lt;/LI&gt;&lt;LI&gt;the date in VBMOD, VBDATA etc is deleted&lt;/LI&gt;&lt;LI&gt;but: No actual DB update is executed&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I make sure that the actual DB update happens even with only an implicit commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any suggestions!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcel Hesen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Mar 2016 21:05:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-03-19T21:05:09Z</dc:date>
    <item>
      <title>Implicit commit does not seem to trigger update task function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-commit-does-not-seem-to-trigger-update-task-function-module/m-p/11575502#M1938418</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 module which updates certain logging information in a DB-table. This logging needs to happen always, even when the program itself does no other DB-updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to avoid dumps because rapid consecutive updates from different program executions collide because a physical lock is set at the moment of executing the insert statement, I decided to move the update logic into an update task function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I trigger the update from a report the update only happens with an explicit commit work at the end of the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do not include an explicit commit work the following happens according DB trace:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;tables VBMOD, VBDATA etc are updated when the function is executed.&lt;/LI&gt;&lt;LI&gt;implicit commit work is executed&lt;/LI&gt;&lt;LI&gt;the date in VBMOD, VBDATA etc is deleted&lt;/LI&gt;&lt;LI&gt;but: No actual DB update is executed&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I make sure that the actual DB update happens even with only an implicit commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any suggestions!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcel Hesen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Mar 2016 21:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-commit-does-not-seem-to-trigger-update-task-function-module/m-p/11575502#M1938418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-19T21:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit commit does not seem to trigger update task function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-commit-does-not-seem-to-trigger-update-task-function-module/m-p/11575503#M1938419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&amp;nbsp; If you are using standard function module for update then check that their will be field for commit.&lt;/P&gt;&lt;P&gt;It is given as a flag parameter. Check for the field 'COMMIT' .&lt;/P&gt;&lt;P&gt;Which function module are you using.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Mar 2016 04:45:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-commit-does-not-seem-to-trigger-update-task-function-module/m-p/11575503#M1938419</guid>
      <dc:creator>Ashg1402</dc:creator>
      <dc:date>2016-03-20T04:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit commit does not seem to trigger update task function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-commit-does-not-seem-to-trigger-update-task-function-module/m-p/11575504#M1938420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Mar 2016 08:38:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-commit-does-not-seem-to-trigger-update-task-function-module/m-p/11575504#M1938420</guid>
      <dc:creator>michael_kozlowski</dc:creator>
      <dc:date>2016-03-20T08:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit commit does not seem to trigger update task function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-commit-does-not-seem-to-trigger-update-task-function-module/m-p/11575505#M1938421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the SAP logic: Functions called in update task are only executed after explicit COMMIT WORK. An &lt;SPAN style="color: #333333; font-size: 12px;"&gt; implicit commit. will never execute update task functions or forms.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Probably you should work on the lock logic: There is the IV_WAIT parameter for every enqueue function.&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Rapid consecutive updates from different program executions can be handled by this,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;That means: Enqueue (lock) before doing a dialog update (No update task). Dequeue after UPDATE. Other processes will have to wait for the time of the update and dumps will not happen &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Regards Clemens&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Mar 2016 11:21:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-commit-does-not-seem-to-trigger-update-task-function-module/m-p/11575505#M1938421</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2016-03-20T11:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit commit does not seem to trigger update task function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-commit-does-not-seem-to-trigger-update-task-function-module/m-p/11575506#M1938422</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;Big thanks for your quick answers and confirming my expectation on the implicit commit.&lt;/P&gt;&lt;P&gt;The problem is that I have multiple programs updating the exact same record in a custom table (@Ashish: No std module with commit parameter). (with identical information but unknowingly of eachother's updates). I do not mind the multiple updates, but my original implementation (direct update in the program itself) resulted in physical locks which lasted so long that there was another program kicking in and trying to update the same record.&lt;/P&gt;&lt;P&gt;My initial thought was to fix this by NOT creating a physical lock but moving the actual update into a self developed specific update task FM. Unfortunately, the updates also need to happen in programs lacking an explicit commit.&lt;/P&gt;&lt;P&gt;@Clement put me on an interesting other angle: if the updates are identical than a lock operation would work fine, as the update could be skipped in that case...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Clemens!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Mar 2016 14:41:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-commit-does-not-seem-to-trigger-update-task-function-module/m-p/11575506#M1938422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-20T14:41:12Z</dc:date>
    </item>
  </channel>
</rss>

