<?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. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383888#M187074</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;Please refer to following links for commit work.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/fu018.htm" target="test_blank"&gt;http://www.sap-img.com/fu018.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/d2/7849b8bec911d4b2e80050dadfb92b/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/d2/7849b8bec911d4b2e80050dadfb92b/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4bfa79e11d1950f0000e82de14a/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4bfa79e11d1950f0000e82de14a/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/commit-work-and-rollback-work-871915" target="test_blank"&gt;http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/commit-work-and-rollback-work-871915&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/fieldexits.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/fieldexits.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For wait event&lt;/P&gt;&lt;P&gt;&lt;A href="http://dev.mysql.com/doc/maxdb/en/36/d13d408ae01f24e10000000a1550b0/content.htm" target="test_blank"&gt;http://dev.mysql.com/doc/maxdb/en/36/d13d408ae01f24e10000000a1550b0/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdb.org/htmhelp/dc/b277598fe811d5aab3006094b92fad/content.htm" target="test_blank"&gt;http://www.sapdb.org/htmhelp/dc/b277598fe811d5aab3006094b92fad/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/b0/eaff4f5f75764bba8b325d221551bf/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/b0/eaff4f5f75764bba8b325d221551bf/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward for the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jul 2006 03:55:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-05T03:55:04Z</dc:date>
    <item>
      <title>COMMIT WORK AND WAIT.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383883#M187069</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;&lt;/P&gt;&lt;P&gt;May I know what is the usage of 'COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;' ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 01:49:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383883#M187069</guid>
      <dc:creator>kowong</dc:creator>
      <dc:date>2006-07-05T01:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK AND WAIT.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383884#M187070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this statement will apply any outstanding database updates and wait until they have actually been put on the database before proceeding to the next statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An ordinary commit work will initiate the process to update the databases in a separate task and will press on in your abap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if the rest of your program does not rely on any of the database updates you don't need the 'and wait'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 02:15:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383884#M187070</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-07-05T02:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK AND WAIT.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383885#M187071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In standard ABAP reports, the use of this statement is not recommended without FULL knowledge of intent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It violates SAP's Logical Unit of Work concept, which requires that a business transaction/LUW must run to completion BEFORE a database commit is performed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some BAPIs (for example) do require it's usage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are in doubt, do not use it.  Research the effects of an "early" DB update before the program completes it's processing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 02:29:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383885#M187071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T02:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK AND WAIT.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383886#M187072</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;Function modules that run in the update task can run synchronously or asynchronously. You determine this by the form of the COMMIT statement you use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;COMMIT WORK AND WAIT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;This form specifies synchronous processing. The COMMITstatement waits for the end of processing. Control returns to your program after all high priority (V1) function modules have run successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The AND WAIT form is convenient for switching old programs to synchronous processing without having to re-write the code. Functionally, using AND WAIT for update-task updates is just the same as dialog-task updates with PERFORM ON COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;COMMIT WORK&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;This is the standard form, which specifies asynchronous processing. Your program does not wait for the requested functions to finish processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 03:45:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383886#M187072</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-07-05T03:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK AND WAIT.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383887#M187073</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 AND WAIT' is used when u want to do an update using Synchronous mode... means it will have to wait till the processing is complete then only it could move ahead whereas 'COMMIT WORK' is for asynchronous update mode...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would help u.&lt;/P&gt;&lt;P&gt;Seema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 03:50:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383887#M187073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T03:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK AND WAIT.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383888#M187074</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;Please refer to following links for commit work.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/fu018.htm" target="test_blank"&gt;http://www.sap-img.com/fu018.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/d2/7849b8bec911d4b2e80050dadfb92b/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/d2/7849b8bec911d4b2e80050dadfb92b/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4bfa79e11d1950f0000e82de14a/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4bfa79e11d1950f0000e82de14a/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/commit-work-and-rollback-work-871915" target="test_blank"&gt;http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/commit-work-and-rollback-work-871915&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/fieldexits.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/fieldexits.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For wait event&lt;/P&gt;&lt;P&gt;&lt;A href="http://dev.mysql.com/doc/maxdb/en/36/d13d408ae01f24e10000000a1550b0/content.htm" target="test_blank"&gt;http://dev.mysql.com/doc/maxdb/en/36/d13d408ae01f24e10000000a1550b0/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdb.org/htmhelp/dc/b277598fe811d5aab3006094b92fad/content.htm" target="test_blank"&gt;http://www.sapdb.org/htmhelp/dc/b277598fe811d5aab3006094b92fad/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/b0/eaff4f5f75764bba8b325d221551bf/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/b0/eaff4f5f75764bba8b325d221551bf/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward for the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 03:55:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383888#M187074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T03:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK AND WAIT.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383889#M187075</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 AND WAIT: ( Synchronous processing ). The next line after this statement in the program will start executing only after getting the acknowledgement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK: ( Asynchronous)&lt;/P&gt;&lt;P&gt;Your program does not wait for any acknowledgement. it just start executing the next statment after COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs,&lt;/P&gt;&lt;P&gt;Venkat Ramanan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 04:23:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383889#M187075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T04:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK AND WAIT.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383890#M187076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use BAPI to do an account posting , and after that 'COMMIT WORK AND WAIT.' then only proceed to the next screen, but it seems doesnt work, when the process going too slow, the next screen came out faster than the document number of the posting was generated...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 05:31:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383890#M187076</guid>
      <dc:creator>kowong</dc:creator>
      <dc:date>2006-07-05T05:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK AND WAIT.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383891#M187077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe try using fm BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 05:38:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383891#M187077</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-07-05T05:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK AND WAIT.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383892#M187078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kokwei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I use BAPI to do an account posting &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the BAPI is an UPDATE Module (Update FM)&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;the data is updated in background, in a separate&lt;/P&gt;&lt;P&gt;process,&lt;/P&gt;&lt;P&gt;which is independent of the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Hence,  WAIT concept will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 05:38:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383892#M187078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T05:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK AND WAIT.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383893#M187079</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;After calling a BAPI, use COMMIT WORK and not COMMIT WORK and WAIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs,&lt;/P&gt;&lt;P&gt;Venkat Ramanan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 05:40:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383893#M187079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T05:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK AND WAIT.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383894#M187080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kokwei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use &amp;lt;b&amp;gt;BAPI_TRANSACTION_COMMIT&amp;lt;/b&amp;gt; just after you have called the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'BAPI_QUOTATION_CREATEFROMDATA2'
  EXPORTING
    quotation_header_in     = it_quotation_header_in
    quotation_header_inx    = it_quotation_header_inx
    convert                 = 'X'
  IMPORTING
    salesdocument           = salesdocument
  TABLES
    return                  = ret_text1
    quotation_items_in      = it_quotation_items_in
    quotation_items_inx     = it_quotation_items_inx
    quotation_partners      = it_quotation_partners
    quotation_schedules_in  = it_quotation_schedules_in
    quotation_schedules_inx = it_quotation_schedules_inx.


IF sy-subrc = 0.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      wait   = 'X'
    IMPORTING
      return = ret_text2.
ENDIF.

&amp;lt;b&amp;gt;" After this step proceed with your further processing&amp;lt;/b&amp;gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun Sambargi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Arun Sambargi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 05:47:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-wait/m-p/1383894#M187080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T05:47:21Z</dc:date>
    </item>
  </channel>
</rss>

