<?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' inside a BADi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-inside-a-badi/m-p/10682425#M1869149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's right however does it commit regardless of a rollback later?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Oct 2014 15:56:31 GMT</pubDate>
    <dc:creator>nmirandaghn</dc:creator>
    <dc:date>2014-10-21T15:56:31Z</dc:date>
    <item>
      <title>BAPI_TRANSACTION_COMMIT with WAIT = 'X' inside a BADi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-inside-a-badi/m-p/10682423#M1869147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts, what would be the effect of using the 'BAPI_TRANSACTION_COMMIT' with 'WAIT' parameter equals to 'X' inside a BADi? Would I expect that SAP will commit the data after a final commit later?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Documentation says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background-color: #ffffef; font-family: arial, helvetica, sans-serif;"&gt;This executes all high-priority (VB1) update function modules in the order of their registration and in a common &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABENDATABASE_LUW_GLOSRY.htm" style="font-family: 'Times New Roman'; color: #505050; background-color: #ffffef;"&gt;database LUW&lt;/A&gt;&lt;SPAN style="color: #000000; background-color: #ffffef;"&gt;. If you do not specify the addition &lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-family: 'Times New Roman'; background-color: #ffffef;"&gt;AND WAIT&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffef;"&gt;, the program does not wait until the update work process has executed it (asynchronous updating), but instead is resumed immediately after &lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-family: 'Times New Roman'; background-color: #ffffef;"&gt;COMMIT WORK&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffef;"&gt;. However, if the addition &lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-family: 'Times New Roman'; background-color: #ffffef;"&gt;AND WAIT&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffef;"&gt; is specified, program processing after &lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-family: 'Times New Roman'; background-color: #ffffef;"&gt;COMMIT WORK&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffef;"&gt; will not continue until the update work process has executed the high-priority update function modules (synchronous updating). &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; background-color: #ffffef; font-family: arial, helvetica, sans-serif;"&gt;When all high-priority update function modules are completed successfully, the statement executes the low-priority (VB2) update function modules in the order of registration together in a common database LUW. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; background-color: #ffffef;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 15:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-inside-a-badi/m-p/10682423#M1869147</guid>
      <dc:creator>nmirandaghn</dc:creator>
      <dc:date>2014-10-21T15:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT with WAIT = 'X' inside a BADi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-inside-a-badi/m-p/10682424#M1869148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the bapi_transaction_commit with wait = 'X' is same use the &lt;SPAN class="L0S52"&gt;COMMIT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WORK &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WAIT,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;then, will wait that the db will be changed for continue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ciao,&lt;/P&gt;&lt;P&gt;AI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 15:52:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-inside-a-badi/m-p/10682424#M1869148</guid>
      <dc:creator>alessandroieva</dc:creator>
      <dc:date>2014-10-21T15:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT with WAIT = 'X' inside a BADi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-inside-a-badi/m-p/10682425#M1869149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's right however does it commit regardless of a rollback later?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 15:56:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-inside-a-badi/m-p/10682425#M1869149</guid>
      <dc:creator>nmirandaghn</dc:creator>
      <dc:date>2014-10-21T15:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT with WAIT = 'X' inside a BADi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-inside-a-badi/m-p/10682426#M1869150</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;I'm afraid I don't quite understand the question... But no, why would you think that 'BAPI_TRANSACTION_COMMIT' is not a real commit, with or without the WAIT addition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT is basically a wrapper, whose main purpose besides comitting, I believe, is to trigger the refresh of BAPI internal "buffers" (release of resources) by calling the routines registered using BUFFER_SUBSCRIBE_FOR_REFRESH function during by BAPI processing. A "stone age" method of "triggering" all kinds of cleanup and resources release functionality on "after end of transaction". Nowadays BAPIs could, I believe, achieve the same by setting up the CL_SYSTEM_TRANSACTION_STATE=&amp;gt;TRANSACTION_FINISHED handlers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Janis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 16:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-inside-a-badi/m-p/10682426#M1869150</guid>
      <dc:creator>Private_Member_7726</dc:creator>
      <dc:date>2014-10-21T16:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT with WAIT = 'X' inside a BADi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-inside-a-badi/m-p/10682427#M1869151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;yes because this instruction is like the commit work. then, when you call the rollback, you don't have any effect on db.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 16:14:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-inside-a-badi/m-p/10682427#M1869151</guid>
      <dc:creator>alessandroieva</dc:creator>
      <dc:date>2014-10-21T16:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT with WAIT = 'X' inside a BADi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-inside-a-badi/m-p/10682428#M1869152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the difference from the commit is that the "wait" wait before continuing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 16:17:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-inside-a-badi/m-p/10682428#M1869152</guid>
      <dc:creator>alessandroieva</dc:creator>
      <dc:date>2014-10-21T16:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT with WAIT = 'X' inside a BADi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-inside-a-badi/m-p/10682429#M1869153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, &lt;A href="http://help.sap.com/abapdocu_740/en/abapcommit.htm"&gt;there is a nuance (an exception)&lt;/A&gt;, which I find somewhat "maddening" (because one has to constantly refer back to documentation to be 100% certain):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;"&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;In a program called using &lt;/SPAN&gt;&lt;A class="blue" style="color: #000080; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;&lt;SPAN class="qtext" style="font-family: 'Courier New'; font-weight: bold;"&gt;CALL DIALOG&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="qtext" style="font-family: 'Courier New'; font-weight: bold; color: #000000; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;COMMIT WORK&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt; does not initiate the processing of subroutines or update&lt;SPAN style="text-decoration: line-through;"&gt;d&lt;/SPAN&gt; function modules registered using &lt;/SPAN&gt;&lt;A class="blue" style="color: #000080; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;&lt;SPAN class="qtext" style="font-family: 'Courier New'; font-weight: bold;"&gt;PERFORM ON COMMIT&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt; and &lt;/SPAN&gt;&lt;A class="blue" style="color: #000080; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;&lt;SPAN class="qtext" style="font-family: 'Courier New'; font-weight: bold;"&gt;CALL FUNCTION ... IN UPDATE TASK&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt; and does not close the current SAP LUW. At the earliest, the SAP LUW can be closed by the statement &lt;/SPAN&gt;&lt;SPAN class="qtext" style="font-family: 'Courier New'; font-weight: bold; color: #000000; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;COMMIT WORK&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt; in the calling program. Only &lt;/SPAN&gt;&lt;A class="grey" style="color: #505050; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;" title="Glossary Entry"&gt;transactional remote function calls&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt; or &lt;/SPAN&gt;&lt;A class="grey" style="color: #505050; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;" title="Glossary Entry"&gt;background remote function calls&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt; registered using &lt;/SPAN&gt;&lt;A class="blue" style="color: #000080; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;&lt;SPAN class="qtext" style="font-family: 'Courier New'; font-weight: bold;"&gt;CALL FUNCTION ... IN BACKGROUND&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt; within a &lt;/SPAN&gt;&lt;A class="grey" style="color: #505050; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;" title="Glossary Entry"&gt;dialog module&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt; are also started there using &lt;/SPAN&gt;&lt;SPAN class="qtext" style="font-family: 'Courier New'; font-weight: bold; color: #000000; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;COMMIT WORK&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;. Any &lt;/SPAN&gt;&lt;A class="grey" style="color: #505050; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;" title="Glossary Entry"&gt;bgRFCs&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;, &lt;/SPAN&gt;&lt;A class="grey" style="color: #505050; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;" title="Glossary Entry"&gt;tRFCs&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;, or &lt;/SPAN&gt;&lt;A class="grey" style="color: #505050; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;" title="Glossary Entry"&gt;qRFCs&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt; registered in a dialog module and not started there using&lt;/SPAN&gt;&lt;SPAN class="qtext" style="font-family: 'Courier New'; font-weight: bold; color: #000000; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;COMMIT WORK&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt; are not executed.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;So in some special/rare cases the behavior may be "context dependent"...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;Janis&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 12.5714282989502px; background-color: #fefeff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 16:46:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-inside-a-badi/m-p/10682429#M1869153</guid>
      <dc:creator>Private_Member_7726</dc:creator>
      <dc:date>2014-10-21T16:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT with WAIT = 'X' inside a BADi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-inside-a-badi/m-p/10682430#M1869154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, maybe I can't explain myself. There's a BADi implementation that I've found where there's a 'BAPI_COMMIT_TRANSACTION' with 'WAIT' = 'X' and there's a SAP Notes which prohibits the use of 'COMMIT WORK' specifically for that BADi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I'm confused because the function is called with 'WAIT' ='X' and according to the documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffef;"&gt;When all high-priority update function modules are completed successfully, the statement executes the low-priority (VB2) update function modules in the order of registration together in a common database LUW.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I understand that if I use the 'COMMIT WORK AND WAIT' instead of 'COMMIT WORK' then it's ok to implement the commit that way and I don't violate the SAP Notes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I'm clear now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 18:16:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-inside-a-badi/m-p/10682430#M1869154</guid>
      <dc:creator>nmirandaghn</dc:creator>
      <dc:date>2014-10-21T18:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT with WAIT = 'X' inside a BADi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-inside-a-badi/m-p/10682431#M1869155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Ok, that explains. But no, the rules are being violated, I believe (which Notes are those?). The way I would try to work around the limitation:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;1) if the DB changes done by BAPI need to be committed regardless of what the SAP standard logic calling the BADI does afterwards, try to call the BAPI from within new SAP LUW (a nested LUW);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;2) if the BAPI changes need to be committed in SAP standard LUW, remove BAPI_TRANSACTION_COMMIT, switch on synchronous updating using SET UPDATE TASK LOCAL, and register &lt;SPAN style="font-size: 12px;"&gt;CL_SYSTEM_TRANSACTION_STATE=&amp;gt;TRANSACTION_FINISHED&lt;SPAN style="font-size: 10pt;"&gt; handler method where&lt;/SPAN&gt; BUFFER_REFRESH_ALL FM would called.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;The way to build a nested LUW is awkward to say the least - one needs to call a program using CALL TRANSACTION or SUBMIT.. AND RETURN. So, if the BAPI call needs anything that is not passable using report PARAMETERS or SELECT-OPTIONS (like internal tables?), one needs to think of a way to pass the necessary data (normally shared memory objects or &lt;A href="http://help.sap.com/abapdocu_702/en/abapexport_data_cluster_medium.htm"&gt;export to shared memory&lt;/A&gt;, where the former is the more complicated but preferred way). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Jānis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 06:34:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-with-wait-x-inside-a-badi/m-p/10682431#M1869155</guid>
      <dc:creator>Private_Member_7726</dc:creator>
      <dc:date>2014-10-22T06:34:23Z</dc:date>
    </item>
  </channel>
</rss>

