<?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 update task in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-task/m-p/1016296#M80117</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;when is it necessary to call a func mod(fm) in update task?&lt;/P&gt;&lt;P&gt;how is it different from calling a fm normally?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also when do we use update mode as 'LOCAL' in a call transaction method apart from 'S' (sync) and 'A'(async). &lt;/P&gt;&lt;P&gt;what are the uses and requirements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it the same as set update task local?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i read the docmn but unable to grasp when to use these?&lt;/P&gt;&lt;P&gt;any answers would be greatly appreciated...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Aug 2005 15:39:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-18T15:39:38Z</dc:date>
    <item>
      <title>update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-task/m-p/1016296#M80117</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;when is it necessary to call a func mod(fm) in update task?&lt;/P&gt;&lt;P&gt;how is it different from calling a fm normally?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also when do we use update mode as 'LOCAL' in a call transaction method apart from 'S' (sync) and 'A'(async). &lt;/P&gt;&lt;P&gt;what are the uses and requirements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it the same as set update task local?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i read the docmn but unable to grasp when to use these?&lt;/P&gt;&lt;P&gt;any answers would be greatly appreciated...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2005 15:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-task/m-p/1016296#M80117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-18T15:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-task/m-p/1016297#M80118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, if you set a function to be update task, you write some DB access statemen like delete or update, and return the function. Those DB access won't be submitted to DB, until you run COMMIT WORK. When run commit, all of update task FMs before this commit will be runned, as they are in the same LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And LOCAL mode is mean that if use it, the process will be waitting, until the DB access works in LUW is finished.&lt;/P&gt;&lt;P&gt;If not LOCAL mode, it won't wait, and the DB access works will be runned in other seperate task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will be helpful&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2005 15:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-task/m-p/1016297#M80118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-18T15:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-task/m-p/1016298#M80119</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;The question is WHEN is it necessary to call a func mod(fm) in update task?&lt;/P&gt;&lt;P&gt;and not how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 17:25:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-task/m-p/1016298#M80119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T17:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-task/m-p/1016299#M80120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One situation in which to call an FM in update task is when you want to ensure&lt;/P&gt;&lt;P&gt;that any updates done in your FM are committed to the DB only if the updates in the rest of the LUW complete successfully.  If you call the FM without the 'in update task' addition your changes could be commited to the database and then some other  processing after that commit fails and it becomes necessary to back out your upates.&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;Greg Kern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 17:54:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-task/m-p/1016299#M80120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T17:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-task/m-p/1016300#M80121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Calling a FM in Update Task is one of the bundling techniques used in ABAP to avail functionality provided by SAP Update System. Here all database updates are processed at the end of the SAP LUW in contrast to normal FM call where the database updates are done and commited at the time of call (Database LUW). It is necessary to bundle all your database updates in an SAP LUW e.g. all database updates in a transaction (like VA01) should be bundled. Almost all standard SAP transactions use bundling techniques.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This technique separates the dialog process and update process.  The dialog part of the transaction can span more than one screen(one dialog step) and can be processsed by more than one dialog work process. A work process is released when the dialog step changes (screen changes) and the work process sends a database commit (called Implicit Database LUW). So with each screen change there is a database commit and database remains in consistent state. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when using bundling technique, when a COMMIT WORK is encountered, system ends the dialog process with a dialog work porcess and starts the update process using an update work process. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dialog step containing the COMMIT WORK is considerd as the last dialog step of the transaction and all the update function modules are processed now in the last dialog step by the update work process though they were called earlier during the earlier dialog steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is necessary to create update FMs to take advantage of this technique. The update FM is created FM by setting the Update function radiobutton in the Attributes tab in SE37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a normal FM call, if there are database updates (UPDATE, INSERT, MODIFY, DELETE) than database is commited after the FM processing is over as the FM starts its own Database LUW and ends it too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET UPDATE TASK LOCAL is same as calling a transaction using CALL TRANSACTION in LOCAL mode. Here the database updates are handled by the same dialog work process that was handling the dialog process hence the name LOCAL. System doesn't try to find a separate work process. I have not used LOCAL mode so far and really don't have any idea about the usage requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 18:29:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-task/m-p/1016300#M80121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T18:29:38Z</dc:date>
    </item>
  </channel>
</rss>

