<?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 changes after CALL FUNCTION ... IN UPDATE TASK in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-changes-after-call-function-in-update-task/m-p/3656697#M880852</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;This executes all high-priority update function modules registered using CALL FUNCTION ... IN UPDATE TASK in the order of their registration and in a common database LUW. If you do not specify the addition AND WAIT, the program does not wait until the update work process has executed it (asynchronous updating). If you specify the addition AND WAIT, however, program processing after COMMIT WORK will not continue until the update work process has executed the high-priority update function modules (synchronous updating). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all high-priority update function modules are completed successfully, the statement executes the low-priority update function modules together in a common database LUW. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here high priority function moudles are function module with V1 task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siva chalasani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2008 11:45:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-09T11:45:28Z</dc:date>
    <item>
      <title>Commit changes after CALL FUNCTION ... IN UPDATE TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-changes-after-call-function-in-update-task/m-p/3656695#M880850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAPers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a bit confused about the behaviour of Update Function Modules.&lt;/P&gt;&lt;P&gt;Following scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our transaction (Modulpool with dynpros) the user clicks a butto to change some data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. PAI-Modul performs FORM_A&lt;/P&gt;&lt;P&gt;2. FORM_A calls FM_A several times in a LOOP&lt;/P&gt;&lt;P&gt;3. FM_A does some business logic and calls FM_B IN UPDATE TASK&lt;/P&gt;&lt;P&gt;4. FM_B modifies database tables&lt;/P&gt;&lt;P&gt;5. After the LOOP FORM_A does COMMIT WORK AND WAIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the changes are not in the db immediately, the user will see the old data for a short time.&lt;/P&gt;&lt;P&gt;Why does the COMMIT-statement not start the Update-process?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 09:34:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-changes-after-call-function-in-update-task/m-p/3656695#M880850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T09:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Commit changes after CALL FUNCTION ... IN UPDATE TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-changes-after-call-function-in-update-task/m-p/3656696#M880851</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;commit work in Update task acts differently...............it moves the update functions to a seperate......update work process..........and ll commit when the process ends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check SM12 while the transaction runs...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 11:26:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-changes-after-call-function-in-update-task/m-p/3656696#M880851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T11:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Commit changes after CALL FUNCTION ... IN UPDATE TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-changes-after-call-function-in-update-task/m-p/3656697#M880852</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;This executes all high-priority update function modules registered using CALL FUNCTION ... IN UPDATE TASK in the order of their registration and in a common database LUW. If you do not specify the addition AND WAIT, the program does not wait until the update work process has executed it (asynchronous updating). If you specify the addition AND WAIT, however, program processing after COMMIT WORK will not continue until the update work process has executed the high-priority update function modules (synchronous updating). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all high-priority update function modules are completed successfully, the statement executes the low-priority update function modules together in a common database LUW. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here high priority function moudles are function module with V1 task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siva chalasani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 11:45:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-changes-after-call-function-in-update-task/m-p/3656697#M880852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T11:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Commit changes after CALL FUNCTION ... IN UPDATE TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-changes-after-call-function-in-update-task/m-p/3656698#M880853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your info!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Update-FM (FM_B) is set to processing type "Start immed.", I think this means V1-task.&lt;/P&gt;&lt;P&gt;The caller also specifies the addition AND WAIT, so I would still expect to find the changed data right after the "COMMIT WORK AND WAIT", but it takes from a few seconds up to a minute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could this happen, because the commit-statement is not in the same procedure as the CALL FUNCTION ... IN UPDATE TASK?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 12:50:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-changes-after-call-function-in-update-task/m-p/3656698#M880853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T12:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Commit changes after CALL FUNCTION ... IN UPDATE TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-changes-after-call-function-in-update-task/m-p/3656699#M880854</link>
      <description>&lt;P&gt;Hi, did you manage to solve this? if so can you share the solution?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 17:33:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-changes-after-call-function-in-update-task/m-p/3656699#M880854</guid>
      <dc:creator>former_member593545</dc:creator>
      <dc:date>2022-02-18T17:33:06Z</dc:date>
    </item>
  </channel>
</rss>

