<?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: Call function module in backgrouns task and in update task in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-module-in-backgrouns-task-and-in-update-task/m-p/2535226#M575303</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To my best knowledge..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. IN UPDATE TASK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When FM is called with this extension then call to the FM is not made until COMMIT WORK is executed. This flags the function module for later execution when implicit or explicit COMMIT WORK is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. IN BACKGROUND TASK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same as IN UPDATE TASK with addition that FM is called in another work process. Here you can also specify the DESTINATION so that this function module may execute in different system sepcified .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Jul 2007 09:43:13 GMT</pubDate>
    <dc:creator>Pawan_Kesari</dc:creator>
    <dc:date>2007-07-15T09:43:13Z</dc:date>
    <item>
      <title>Call function module in backgrouns task and in update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-module-in-backgrouns-task-and-in-update-task/m-p/2535225#M575302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,Pls crear me on the " &amp;lt;b&amp;gt;Call function module in backgrouns task and in update task&amp;lt;/b&amp;gt;".&lt;/P&gt;&lt;P&gt;how it works and waht is the link with LUW  releated to these .&lt;/P&gt;&lt;P&gt;also heard that commit work statement aslo linked with this.&lt;/P&gt;&lt;P&gt;Pls clarfiy me with expalnation of code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jul 2007 07:47:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-module-in-backgrouns-task-and-in-update-task/m-p/2535225#M575302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-15T07:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Call function module in backgrouns task and in update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-module-in-backgrouns-task-and-in-update-task/m-p/2535226#M575303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To my best knowledge..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. IN UPDATE TASK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When FM is called with this extension then call to the FM is not made until COMMIT WORK is executed. This flags the function module for later execution when implicit or explicit COMMIT WORK is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. IN BACKGROUND TASK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same as IN UPDATE TASK with addition that FM is called in another work process. Here you can also specify the DESTINATION so that this function module may execute in different system sepcified .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jul 2007 09:43:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-module-in-backgrouns-task-and-in-update-task/m-p/2535226#M575303</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2007-07-15T09:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Call function module in backgrouns task and in update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-module-in-backgrouns-task-and-in-update-task/m-p/2535227#M575304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sridhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the explanation already given is correct and good. Small add-on:&lt;/P&gt;&lt;P&gt;All functions called during one LUW with addition IN UPDATE TASK are stored together with their actual parameters in a temporary memory area. The moment a COMMIT WORK is issued, the functions are released to be executed by a so-called update task which is running in the background. This explains why functions called in update task never return anything, no SY-SUBRC and no export or table parameters If a function called in update task raises an exception or runs into an error the calling user will get an express message informing about this. Also, all database updates done by this update process are rolled back to keep consistency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This proceeding helps to keep database tables consistent and allows the user to keep on doing his work before all database updates are complete. You may have seen messages like "material will be changed" after saving. If you open the same material immediately, you'll get a message "object locked by...&amp;lt;yourself&amp;gt;". This means the update task is still running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jul 2007 10:52:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-module-in-backgrouns-task-and-in-update-task/m-p/2535227#M575304</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-07-15T10:52:04Z</dc:date>
    </item>
  </channel>
</rss>

