<?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: BAPI_TRANSACTION_COMMIT with WAIT = 'X' Still work after error modify table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-still-work-after-error-modify-table/m-p/515614#M18282</link>
    <description>&lt;P&gt;Hey, The Bapi_transaction_commit is basically running this &lt;A href="https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-US/abapcommit.htm"&gt;command &lt;/A&gt;with message handling and buffer cleaning. The "WAIT" variable of the function is a flag decision for using (or not) the "AND WAIT" addition. Read the link and note especially this part: "If the addition AND WAIT is not specified, the program does not wait (in non-local updates) until the update work process has executed it (asynchronous updates), but instead is resumed immediately after COMMIT WORK. However, if the addition AND WAIT is specified, program processing after COMMIT WORK will not continue until the update work process has executed the high-priority update function modules (synchronous updating)."&lt;/P&gt;</description>
    <pubDate>Wed, 29 Nov 2017 07:51:29 GMT</pubDate>
    <dc:creator>iftah_peretz</dc:creator>
    <dc:date>2017-11-29T07:51:29Z</dc:date>
    <item>
      <title>BAPI_TRANSACTION_COMMIT with WAIT = 'X' Still work after error modify table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-still-work-after-error-modify-table/m-p/515613#M18281</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;I have some problems about commit transaction.&lt;/P&gt;
  &lt;P&gt;in my function module which the processing type is remote-enabled mode (already used for web service)&lt;/P&gt;
  &lt;P&gt;i have calling function of 'BAPI_GOODSMVT_CREATE' and put &lt;/P&gt;
  &lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;BR /&gt; EXPORTING&lt;BR /&gt; wait = 'X'&lt;/P&gt;
  &lt;P&gt;after the 'BAPI_GOODSMVT_CREATE' function.&lt;/P&gt;
  &lt;P&gt;There is a problem with 2 cases:&lt;/P&gt;
  &lt;P&gt;the first one is error when modify data of Transparent Table&lt;/P&gt;
  &lt;P&gt;and the second is some network fail.&lt;/P&gt;
  &lt;P&gt;my question is why there is an error like above but the commit still working?&lt;/P&gt;
  &lt;P&gt;i assume when i put wait = 'X' is mean if there is some error in function module, it should not commit the transaction.&lt;/P&gt;
  &lt;P&gt;here is some of my code:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/90271-sap.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Thank you in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;*Sorry for my bad english&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 07:01:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-still-work-after-error-modify-table/m-p/515613#M18281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-11-29T07:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT with WAIT = 'X' Still work after error modify table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-still-work-after-error-modify-table/m-p/515614#M18282</link>
      <description>&lt;P&gt;Hey, The Bapi_transaction_commit is basically running this &lt;A href="https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-US/abapcommit.htm"&gt;command &lt;/A&gt;with message handling and buffer cleaning. The "WAIT" variable of the function is a flag decision for using (or not) the "AND WAIT" addition. Read the link and note especially this part: "If the addition AND WAIT is not specified, the program does not wait (in non-local updates) until the update work process has executed it (asynchronous updates), but instead is resumed immediately after COMMIT WORK. However, if the addition AND WAIT is specified, program processing after COMMIT WORK will not continue until the update work process has executed the high-priority update function modules (synchronous updating)."&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 07:51:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-still-work-after-error-modify-table/m-p/515614#M18282</guid>
      <dc:creator>iftah_peretz</dc:creator>
      <dc:date>2017-11-29T07:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT with WAIT = 'X' Still work after error modify table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-still-work-after-error-modify-table/m-p/515615#M18283</link>
      <description>&lt;UL&gt;
   &lt;LI&gt;You must always read/loop at return parameter when you call a BAPI before committing the work. This Is not optional.&lt;/LI&gt;
   &lt;LI&gt;The wait option only waits for the high priority update task FM (VB1) to be executed&lt;/LI&gt;
   &lt;LI&gt;There can be delay due to database or buffering update&lt;/LI&gt;
   &lt;LI&gt;When using WAIT option BAPI_TRANSACTION_COMMIT can return an error in RETURN parameter, else if some update FM aborts/dumps the error can be seen in SM13 (and trigger a message)&lt;/LI&gt;
  &lt;/UL&gt;
  &lt;P&gt;This information is available and easy to find in online help, look for SAP Transaction Concept or COMMIT WORK statement&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 08:34:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-still-work-after-error-modify-table/m-p/515615#M18283</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-11-29T08:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT with WAIT = 'X' Still work after error modify table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-still-work-after-error-modify-table/m-p/515616#M18284</link>
      <description>&lt;P&gt;Thank you for your answer, after i read your answer i realize it i was wrong. i think i want to try to replace the commit work at the end of the code. Thank you for your answer. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 03:03:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-still-work-after-error-modify-table/m-p/515616#M18284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-12-12T03:03:13Z</dc:date>
    </item>
  </channel>
</rss>

