<?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: replace BAPI_TRANSACTION_COMMIT in called transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-bapi-transaction-commit-in-called-transaction/m-p/13929999#M2037784</link>
    <description>&lt;P&gt;I want to hug you rn...&lt;BR /&gt;You are a gem.&lt;BR /&gt;Thanks you so much!&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2024 10:53:45 GMT</pubDate>
    <dc:creator>gerrit_schneiderat_v-line</dc:creator>
    <dc:date>2024-11-06T10:53:45Z</dc:date>
    <item>
      <title>replace BAPI_TRANSACTION_COMMIT in called transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-bapi-transaction-commit-in-called-transaction/m-p/13929970#M2037778</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;I need to use call a transaction. In that transaction, there are is a BAPI used (&lt;!--    StartFragment     --&gt;&lt;SPAN&gt;BAPI_MATERIAL_SAVEDATA).&lt;BR /&gt;Right after that, there is a&amp;nbsp;&lt;!--    StartFragment     --&gt;BAPI_TRANSACTION_COMMIT.&lt;BR /&gt;&lt;BR /&gt;My problem is that after a commit work (what is executed within&amp;nbsp;BAPI_TRANSACTION_COMMIT), a call transaction is terminated and the user will thrown back into the original transaction.&lt;BR /&gt;&lt;BR /&gt;I managed to bypass that by using &lt;SPAN class=""&gt;call&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;function&amp;nbsp;&lt;/SPAN&gt;'DB_COMMIT'&lt;SPAN class=""&gt;.&lt;BR /&gt;But now, this doesn't work.&lt;BR /&gt;&lt;BR /&gt;I checked SM12. There are some tables locked.&lt;BR /&gt;When I execute the code with the original&amp;nbsp;BAPI_TRANSACTION_COMMIT, I saw that the locks are also resolved.&lt;BR /&gt;&lt;BR /&gt;What I tried then is&amp;nbsp;&lt;!--    StartFragment     --&gt;DEQUEUE_ALL. The locks are gone this way, what now the called BAPI doesn't work. The material is not added like it is, when&amp;nbsp;BAPI_TRANSACTION_COMMIT is used.&lt;BR /&gt;&lt;BR /&gt;I am going crazy.&lt;BR /&gt;Any ideas? =/&lt;BR /&gt;&lt;BR /&gt;&lt;!--  StartFragment   --&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;call&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;function&amp;nbsp;&lt;/SPAN&gt;'BAPI_MATERIAL_SAVEDATA'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;exporting&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;headdata&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;=&amp;nbsp;&lt;/SPAN&gt;lv_mathead&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;tables&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;extensionin&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;=&amp;nbsp;&lt;/SPAN&gt;lt_extensionin&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;extensioninx&amp;nbsp;&lt;SPAN class=""&gt;=&amp;nbsp;&lt;/SPAN&gt;lt_extensioninx&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;if&amp;nbsp;&lt;/SPAN&gt;sy&lt;SPAN class=""&gt;-&lt;/SPAN&gt;subrc&amp;nbsp;&lt;SPAN class=""&gt;ne&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;message&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;id&amp;nbsp;&lt;/SPAN&gt;sy&lt;SPAN class=""&gt;-&lt;/SPAN&gt;msgid&amp;nbsp;&lt;SPAN class=""&gt;type&amp;nbsp;&lt;/SPAN&gt;sy&lt;SPAN class=""&gt;-&lt;/SPAN&gt;msgty&amp;nbsp;&lt;SPAN class=""&gt;number&amp;nbsp;&lt;/SPAN&gt;sy&lt;SPAN class=""&gt;-&lt;/SPAN&gt;msgno&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 class=""&gt;with&amp;nbsp;&lt;/SPAN&gt;sy&lt;SPAN class=""&gt;-&lt;/SPAN&gt;msgv1&amp;nbsp;sy&lt;SPAN class=""&gt;-&lt;/SPAN&gt;msgv2&amp;nbsp;sy&lt;SPAN class=""&gt;-&lt;/SPAN&gt;msgv3&amp;nbsp;sy&lt;SPAN class=""&gt;-&lt;/SPAN&gt;msgv4&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;call&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;function&amp;nbsp;&lt;/SPAN&gt;'BAPI_TRANSACTION_ROLLBACK'&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;else&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;call&amp;nbsp;function&amp;nbsp;'BAPI_TRANSACTION_COMMIT'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;call&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;function&amp;nbsp;&lt;/SPAN&gt;'DB_COMMIT'&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;wait&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;up&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;3&amp;nbsp;&lt;/SPAN&gt;seconds&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;call&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;function&amp;nbsp;&lt;/SPAN&gt;'DEQUEUE_ALL'&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;endif&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 10:34:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-bapi-transaction-commit-in-called-transaction/m-p/13929970#M2037778</guid>
      <dc:creator>gerrit_schneiderat_v-line</dc:creator>
      <dc:date>2024-11-06T10:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: replace BAPI_TRANSACTION_COMMIT in called transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-bapi-transaction-commit-in-called-transaction/m-p/13929984#M2037780</link>
      <description>&lt;P&gt;The &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/abapcommit.htm" target="_self"&gt;COMMIT WORK (online help)&lt;/A&gt;&amp;nbsp;is required to triger update, release locks, and raise a&amp;nbsp;&lt;SPAN&gt;TRANSACTION_FINISHED event.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You cannot remove it.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To prevent &amp;nbsp;processing terminaton you could&amp;nbsp;use the statement&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/abapcall_transaction_using.htm" target="_self"&gt;&lt;SPAN class=""&gt;CALL TRANSACTION USING&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;and set component&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;RACOMMIT&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;of the structure&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;CTU_PARAMS&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;, passed to the statement&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/abapcall_transaction_using.htm#!ABAP_ADDITION_3@3@" target="_self"&gt;&lt;SPAN class=""&gt;OPTIONS FROM&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 10:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-bapi-transaction-commit-in-called-transaction/m-p/13929984#M2037780</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2024-11-06T10:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: replace BAPI_TRANSACTION_COMMIT in called transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-bapi-transaction-commit-in-called-transaction/m-p/13929999#M2037784</link>
      <description>&lt;P&gt;I want to hug you rn...&lt;BR /&gt;You are a gem.&lt;BR /&gt;Thanks you so much!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 10:53:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-bapi-transaction-commit-in-called-transaction/m-p/13929999#M2037784</guid>
      <dc:creator>gerrit_schneiderat_v-line</dc:creator>
      <dc:date>2024-11-06T10:53:45Z</dc:date>
    </item>
  </channel>
</rss>

