<?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: Working in update task mode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-in-update-task-mode/m-p/5837799#M1317458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Basically SAP does all the updates in an UPDATE task.&lt;/P&gt;&lt;P&gt;So on execution of COMMIT WORK statement; the update task begins and the data is uploaded in the database.&lt;/P&gt;&lt;P&gt;Suppose you want to do something only when the data has been actually posted then you make use of COMMIT WORK and WAIT.&lt;/P&gt;&lt;P&gt;In this case the processing will continue only after all the updates have happened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jun 2009 06:45:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-25T06:45:04Z</dc:date>
    <item>
      <title>Working in update task mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-in-update-task-mode/m-p/5837796#M1317455</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;&lt;/P&gt;&lt;P&gt;What is the advantage of working in update task ?&lt;/P&gt;&lt;P&gt;if i want to work on update task without using function module how can i do so?&lt;/P&gt;&lt;P&gt;what is the advantage on regular commit work command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR &lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 05:26:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-in-update-task-mode/m-p/5837796#M1317455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-25T05:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Working in update task mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-in-update-task-mode/m-p/5837797#M1317456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There are no advantages or disadvantages of working in an update task.&lt;/P&gt;&lt;P&gt;Sometimes there might be a requirement that you have to do further processing only if the current processing was successful.&lt;/P&gt;&lt;P&gt;For example.&lt;/P&gt;&lt;P&gt;When I create an Handling Unit via HU02; i want that a Transfer order to be created immediately for this HU once the HU is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An option for me now is to create the transfer order in the UPDATE task.&lt;/P&gt;&lt;P&gt;This is because teh UPDATE task will be triggered as soon as COMMIT work occurs.&lt;/P&gt;&lt;P&gt;So i am sure that my transfer order will be created when the HU is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details on UPDATE task you can read the SAP documentation by doing F1 help on COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 05:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-in-update-task-mode/m-p/5837797#M1317456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-25T05:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Working in update task mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-in-update-task-mode/m-p/5837798#M1317457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ankur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so commit work is called update task ,so what is the diffrence between commit work and commit &lt;/P&gt;&lt;P&gt;work and wait ?&lt;/P&gt;&lt;P&gt;and how can i do update without update task .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 06:40:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-in-update-task-mode/m-p/5837798#M1317457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-25T06:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Working in update task mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-in-update-task-mode/m-p/5837799#M1317458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Basically SAP does all the updates in an UPDATE task.&lt;/P&gt;&lt;P&gt;So on execution of COMMIT WORK statement; the update task begins and the data is uploaded in the database.&lt;/P&gt;&lt;P&gt;Suppose you want to do something only when the data has been actually posted then you make use of COMMIT WORK and WAIT.&lt;/P&gt;&lt;P&gt;In this case the processing will continue only after all the updates have happened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 06:45:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-in-update-task-mode/m-p/5837799#M1317458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-25T06:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Working in update task mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-in-update-task-mode/m-p/5837800#M1317459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Commit work updates Database and jump to the next statement immediately whereas Commit work and wait, waits for sometime before jumping to next statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometime because of the increased Netwrok Traffic, Database updates might take some time and hence you might want your next statement to wait a bit before moving to next statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg: One of your Function Module is creating a Document in SAP database and your second statement is trying to access that document, now because of the heavy netwro traffic you may want your second statement to wait a bit before trying to access the newly created SAP Document and hence you would use here Commit work and wait.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update Task is required when your database update is dependent on some other databse update or for a bundle update. For eg: I want to store the additional information in a ZTABLE, for a customer during the sales Order creation witrh ref to the sales order number, now i would be writing my code in the sales order exit and writing my Insert into ZTABLE inside the Function Module with Update task. This would ensure that the entry in the ZTABLE would only go when the database update happening for the sales order creation and hence I would save myself from a database inconsistency where I may have a Sales Order data inserted in the ZTABLE but the same Sales Order Number might not exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 06:51:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-in-update-task-mode/m-p/5837800#M1317459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-25T06:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Working in update task mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-in-update-task-mode/m-p/5837801#M1317460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi AJAY,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How i use it ? if i don't want to use it via FM (in update task) there is another way?&lt;/P&gt;&lt;P&gt;how it influence on the performance ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 07:48:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-in-update-task-mode/m-p/5837801#M1317460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-25T07:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Working in update task mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-in-update-task-mode/m-p/5837802#M1317461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use synchronous update ( &lt;EM&gt;COMMIT WORK AND WAIT&lt;/EM&gt; ) via &lt;STRONG&gt;PERFROM ON COMMIT&lt;/STRONG&gt; statement. This bundling method is similar to function modules, but has different technical background. Call FM in &lt;EM&gt;UPDATE TASK&lt;/EM&gt; require additional table where it must be registered (before accual call) whereas &lt;EM&gt;PERFROM ON COMMIT&lt;/EM&gt; does not. On the other hand data to such subroutine can't be called via subroutine parameters. Such subroutine can work only with global data of the program where it is called. &lt;/P&gt;&lt;P&gt;Suppose we have&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM update_my_tables.   "not interface allowed here (no parameters)
   "some updates here
ENDFORM.

"now when you call it even twice or three times, it will be executed only once
PERFORM update_my_tables ON COMMIT.
PERFORM update_my_tables ON COMMIT.

"if COMMIT WORK is reached it will executed update_my_tables synchronously (so as it would be called like COMMIT WORK AND WAIT)
"here however you use only COMMIT WORK
COMMIT WORK.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;For more information and graphical ilustration refer [SAP LUW|http://help.sap.com/saphelp_46c/helpdata/en/41/7af4bfa79e11d1950f0000e82de14a/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 08:10:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-in-update-task-mode/m-p/5837802#M1317461</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-06-25T08:10:03Z</dc:date>
    </item>
  </channel>
</rss>

