<?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 Is BAPI_TRANSACTION_COMMIT thread overlapping? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303233#M1990440</link>
    <description>&lt;P&gt;Hi all &lt;/P&gt;
  &lt;P&gt;We have a huge amount of invoices to book. So we have decided to split the invoices into small blocks and run the booking on several threads to improve the speed. &lt;/P&gt;
  &lt;P&gt;After the invoice booking BAPI is executed, we need to call of BAPI_TRANSACTION_COMMIT to finalize the commit. The question is, where do I have to call BAPI_TRANSACTION_COMMIT, on main or on every spawned thread? &lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jan 2021 10:37:08 GMT</pubDate>
    <dc:creator>friendlycoder</dc:creator>
    <dc:date>2021-01-06T10:37:08Z</dc:date>
    <item>
      <title>Is BAPI_TRANSACTION_COMMIT thread overlapping?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303233#M1990440</link>
      <description>&lt;P&gt;Hi all &lt;/P&gt;
  &lt;P&gt;We have a huge amount of invoices to book. So we have decided to split the invoices into small blocks and run the booking on several threads to improve the speed. &lt;/P&gt;
  &lt;P&gt;After the invoice booking BAPI is executed, we need to call of BAPI_TRANSACTION_COMMIT to finalize the commit. The question is, where do I have to call BAPI_TRANSACTION_COMMIT, on main or on every spawned thread? &lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 10:37:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303233#M1990440</guid>
      <dc:creator>friendlycoder</dc:creator>
      <dc:date>2021-01-06T10:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is BAPI_TRANSACTION_COMMIT thread overlapping?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303234#M1990441</link>
      <description>&lt;P&gt;I believe you should call bapi transaction commit for every invoice bapi call.&lt;/P&gt;&lt;P&gt; You should call it because the invoice might update some tables which need the latest data (internally it might read the latest data from tables and might reupdate it ). I once got an issue of data inconsistency in the system tables, because we were doing bapi_trasaction commit for multiple bapi calls at once. &lt;/P&gt;&lt;P&gt;and your question of running it in multiple threads, I don't think calling bapi transaction commit in the main program will affect the threads bapis&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 11:54:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303234#M1990441</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2021-01-06T11:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is BAPI_TRANSACTION_COMMIT thread overlapping?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303235#M1990442</link>
      <description>&lt;P&gt;I guess that 1 thread = 1 SAP work process.&lt;/P&gt;&lt;P&gt;Each SAP work process is bound to one database process. A database commit applies to only its current database process. BAPI_TRANSACTION_COMMIT does one database commit (+ some ABAP buffer refresh + execute ABAP update tasks).&lt;/P&gt;&lt;P&gt;So...&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 12:58:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303235#M1990442</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-01-06T12:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is BAPI_TRANSACTION_COMMIT thread overlapping?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303236#M1990443</link>
      <description>&lt;P&gt; @&lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Are you sure, that 1 thread = 1 SAP work process? If yes, calling BAPI_TRANSACTION_COMMIT in the main thread does not do the commit on worker threads?   &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 12:28:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303236#M1990443</guid>
      <dc:creator>friendlycoder</dc:creator>
      <dc:date>2021-01-08T12:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is BAPI_TRANSACTION_COMMIT thread overlapping?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303237#M1990444</link>
      <description>&lt;P&gt;I'm not sure, it's just my opinion. But why are you talking about "threads". Threads don't exist in SAP systems. There are only work processes. Moreover you mix SAP and database notions. The commit at database level is not performed by SAP work process, the commit is at database level. One database transaction is linked to exactly one SAP work process.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Anyway, there's no relationship between work processes, how would a "main" work process be aware that another one is its "child"?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 12:42:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303237#M1990444</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-01-08T12:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is BAPI_TRANSACTION_COMMIT thread overlapping?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303238#M1990445</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Apply BAPI_TRANSACTION_COMMIT When you split the invoices using internal table (loop). After Booking the invoice BAPI_TRANSACTION_COMMIT has to come.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sathish Kumar Sidhaiyan&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 12:59:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303238#M1990445</guid>
      <dc:creator>former_member717457</dc:creator>
      <dc:date>2021-01-08T12:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is BAPI_TRANSACTION_COMMIT thread overlapping?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303239#M1990446</link>
      <description>&lt;P&gt;Yes, but it does not work properly. &lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 13:12:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303239#M1990446</guid>
      <dc:creator>friendlycoder</dc:creator>
      <dc:date>2021-01-08T13:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is BAPI_TRANSACTION_COMMIT thread overlapping?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303240#M1990447</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;bifunctor&lt;/SPAN&gt; Why don't you want to code it the same way like SAP and other developers do it? i.e. do &lt;STRONG&gt;commit by package&lt;/STRONG&gt; (each package can be processed by a dedicated work process, with a unique commit at the end). Do you have a reason to not want to do it? NB: in case it's your question, you cannot commit a big number of updates at once, the database would crash.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 13:54:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303240#M1990447</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-01-08T13:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is BAPI_TRANSACTION_COMMIT thread overlapping?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303241#M1990448</link>
      <description>&lt;P&gt; @Sandra Rossi&lt;/P&gt;&lt;P&gt;Thanks for your advice. However I think I have found a solution:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  DATA(lo_inbound) = cl_bgrfc_destination_inbound=&amp;gt;create( dest_name = 'YCAS1' ).
  DATA(lo_trcf) = lo_inbound-&amp;gt;create_trfc_unit( ).


  CALL FUNCTION 'ZAMAR_BG_PROCESS' IN BACKGROUND UNIT lo_trcf
    EXPORTING
      iv_num = 20.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 15:23:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303241#M1990448</guid>
      <dc:creator>friendlycoder</dc:creator>
      <dc:date>2021-01-11T15:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is BAPI_TRANSACTION_COMMIT thread overlapping?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303242#M1990449</link>
      <description>&lt;P&gt;Okay, so you do it by package.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 15:40:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-bapi-transaction-commit-thread-overlapping/m-p/12303242#M1990449</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-01-11T15:40:19Z</dc:date>
    </item>
  </channel>
</rss>

