<?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 Work and Wait - delay?? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568307#M1755053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neetu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you updating single records with modify statement or the entire table at one go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is better to collect records to be updated and do it in one go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete the records also in one go with a separate statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also use enqueue and dequeue to do updates in that way it is locked and updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jun 2013 11:40:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-06-05T11:40:43Z</dc:date>
    <item>
      <title>Commit Work and Wait - delay??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568302#M1755048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I have a program with calls a normal function module (NOT update task). Inside this FM, there are Insert / Update / Delete performed on database tables.&lt;/P&gt;&lt;P&gt;After this function module, we call 'COMMIT WORK AND WAIT'. The issues is all records are not updated in DB, when I click on 'back' button immediately after button 'save'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot check in debugger since, when I give it some time, all records are saved correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flow is: &lt;/P&gt;&lt;P&gt;- Select some items (say 40), do some change.&lt;/P&gt;&lt;P&gt;- Click on button 'SAVE':&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Call FUNCTION &amp;lt;xyz&amp;gt;.&lt;/P&gt;&lt;P&gt;COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Immediately, Click on button 'BACK'.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--? sometimes, some records are not updated? (5 items are not updated)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; How can this be corrected? Wouldn't WAIT, actually wait for COMMIT to finish?&lt;/P&gt;&lt;P&gt;Would it help to add - 'set update task local' or checking sy-subrc to be 0 (while loop) until 'commit work and wait' is finished?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 11:23:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568302#M1755048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-05T11:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work and Wait - delay??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568303#M1755049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please explain the process in more detail...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you calling the FM &amp;lt;XYZ&amp;gt; for every record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try adding WAIT UP TO sec Seconds after commit and see if it works...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 11:29:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568303#M1755049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-05T11:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work and Wait - delay??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568304#M1755050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neetu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL FUNCTION IN UPDATE TASK must be sufficient as it is one of the widely used options for updating the database entries in standard programs. Also, add a sub-routine for ROLLBACK&amp;nbsp; using PERFORM &amp;lt;sub-routine&amp;gt; ON ROLLBACK so that you can know if the problem was with updating the database or with less time for updation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;~Athreya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 11:35:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568304#M1755050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-05T11:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work and Wait - delay??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568305#M1755051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No FM is called once for all collective records..&lt;/P&gt;&lt;P&gt;I do not want to add WAIT UPTO since, it will decrease performance. Any other option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 11:37:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568305#M1755051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-05T11:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work and Wait - delay??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568306#M1755052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neetu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we use commit work and wait---------the system will wait for all the process to be completed before updating in the database. This is like a Synchronous process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 11:38:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568306#M1755052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-05T11:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work and Wait - delay??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568307#M1755053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neetu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you updating single records with modify statement or the entire table at one go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is better to collect records to be updated and do it in one go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete the records also in one go with a separate statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also use enqueue and dequeue to do updates in that way it is locked and updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 11:40:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568307#M1755053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-05T11:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work and Wait - delay??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568308#M1755054</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;several times I am getting this problem and the way I am resolving is.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example : I need to create 1 document.&lt;/P&gt;&lt;P&gt;1. Call 'FM'&amp;nbsp;&amp;nbsp;&amp;nbsp; " FM which will create the document&lt;/P&gt;&lt;P&gt;2. Call 'BAPI_Commit_transaction'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wait = 'X'&lt;/P&gt;&lt;P&gt;3. do 20 times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select document from database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if sy-subrc is initial.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endif.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I think you are changing some document, so in your case I'll suggest you to put &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Wait upto --- secs"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can put the time limit according to your need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 11:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568308#M1755054</guid>
      <dc:creator>former_member420878</dc:creator>
      <dc:date>2013-06-05T11:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work and Wait - delay??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568309#M1755055</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;Just increase your wait in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also advisable is to do a DB commit calling the function module DB_COMMIT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 11:54:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568309#M1755055</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-06-05T11:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work and Wait - delay??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568310#M1755056</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;Use this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;CALL FUNCTION &lt;SPAN class="s2"&gt;'BAPI_TRANSACTION_COMMIT'&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;EXPORTING&lt;SPAN class="s1"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;wait&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="s3"&gt;= &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;'X'&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 12:16:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568310#M1755056</guid>
      <dc:creator>former_member300076</dc:creator>
      <dc:date>2013-06-05T12:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work and Wait - delay??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568311#M1755057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neetu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please add this line just before your call function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;SET &lt;SPAN class="L0S52"&gt;UPDATE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TASK &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LOCAL&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;&amp;lt;your_fuction_module&amp;gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S33"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'BAPI_TRANSACTION_COMMIT'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WAIT &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'X'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;then continue your query....&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;also see the documentation for set update task local.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Mordhwaj&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 12:43:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568311#M1755057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-05T12:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work and Wait - delay??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568312#M1755058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;COMMIT-WORK AND WAIT will wait til the V1 (high priority) update tasks are executed, as there are no update task in your case, your AND WAIT serves no purpose (too sad...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A call to FM DB_COMMIT could be sufficient, actually &lt;A href="http://help.sap.com/abapdocu_731/en/abapcommit.htm"&gt;COMMIT-WORK&lt;/A&gt; will trigger such a Database commit, then there are delay, but relative to Database System Server, neither Abap nor Application Server, &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;and then there will also be cache refresh delay between application server and database server.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So forget the AND WAIT option, and better perform a DO/SELECT/WAIT UP TO ENDDO loop to wait for database update, as you will never be able to know for sure the delay required, &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;especially&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;at peak times&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;when&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;servers are busy, &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the problem arise very often&amp;nbsp; it may be time to upgrade server or better DB/cache optimization ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 12:44:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568312#M1755058</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-06-05T12:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work and Wait - delay??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568313#M1755059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Also advisable is to do a DB commit calling the function module DB_COMMIT&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;COMMIT WORK will end the LUW &amp;amp; trigger a database commit, IMO there is no need for an explict DB commit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;How can this be corrected? Wouldn't WAIT, actually wait for COMMIT to finish?&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;Don't think so &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1495/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt; ... Actually COMMIT WORK AND WAIT &lt;SPAN style="text-decoration: underline;"&gt;waits&lt;/SPAN&gt; for V1 updates(N.B.: local updates are synchronous by nature) to be completed. &lt;/P&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Would it help to add - 'set update task local' &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;No, unless you've some &lt;SPAN style="text-decoration: underline;"&gt;update&lt;/SPAN&gt; procedures (Update functions, subroutines)&lt;/P&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;or checking sy-subrc to be 0 (while loop) until 'commit work and wait' is finished?&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;No, unfortunately &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1495/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best bet would be to add a WAIT when the user clicks the back button. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 12:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568313#M1755059</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2013-06-05T12:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work and Wait - delay??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568314#M1755060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One of the things that you might consider evaluating is whether all locks have been released.&amp;nbsp; There are lock processes that can become overloaded and therefore delayed.&amp;nbsp; This is testable in your code and would therefore allow you to manipulate your process with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing, and this is anecdotal:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have experienced thing that would indicate that the commit and wait is actually a queueing process.&amp;nbsp; It waits until all commits have been successfully queued.&amp;nbsp; If a large number have been queued, then these can be delayed while the queue clears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, the second is only anecdotal and really needs factual support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, Are you sure that you are not exceeding the LUW?&amp;nbsp; Say you were creating a documents.&amp;nbsp; Each document is its own LUW, under normal conditions.&amp;nbsp; The commit ends the LUW.&amp;nbsp; If you wait for 10's or 100's of documents before commiting, then you over extend the LUW.&amp;nbsp; This is not how the system is intended to work.&amp;nbsp; Is there a chance that you are doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 13:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait-delay/m-p/9568314#M1755060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-05T13:00:53Z</dc:date>
    </item>
  </channel>
</rss>

