<?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: Speed up a BAPI update in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/8281484#M1633883</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;Could you tell me which BAPI your using for update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does commit work is used explictly after BAPI call for each record update. If so could you use commit work for a counter of say every 50 records update.&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;Bysani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Sep 2011 11:09:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-23T11:09:50Z</dc:date>
    <item>
      <title>Speed up a BAPI update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/8281480#M1633879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;I am using a BAPI to update the busines partner details.&lt;/P&gt;&lt;P&gt;Its normally taking 3 seconds for a record to get updated.&lt;/P&gt;&lt;P&gt;But when i loop for 200,000 records it is taking 7 hrs of time to update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to speed up the BAPI update?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ricky Sh on Sep 22, 2011 1:14 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 23:05:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/8281480#M1633879</guid>
      <dc:creator>ricky_shaw</dc:creator>
      <dc:date>2011-09-21T23:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up a BAPI update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/8281481#M1633880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Considering the volume of records you need to update, 7 hours is faster than expected. I tried to compute in simple math the details you provided. Lets see below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given: &lt;/P&gt;&lt;P&gt;3 sec/ record to update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;200,000 records to update. How long it will take to finish updating?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the simple ratio you provided above, you can calculate easily how many hours you expect to finish the updating process. Right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in 1 hour, how many records you can update? You need to convert Hour into seconds then apply the ratio mentioned above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 hr = ( 60 min / 1 hr )* (60 secs/ 1 min)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 hr = 3600 secs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you update a record in 3 seconds, thus:&lt;/P&gt;&lt;P&gt;1 hr = 3600 / 3&lt;/P&gt;&lt;P&gt;1 hr = 1200 records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in 1 hour, you can update only 1200 records. And in 7 hours, there are 8400 records you can update which is far incomparable with 200,000 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I presented an acceptable idea that the slow performance is NOT due to the BAPI but on the volume of records that is processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 02:23:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/8281481#M1633880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T02:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up a BAPI update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/8281482#M1633881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi levis,&lt;/P&gt;&lt;P&gt;Thanks for the math &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I mean it may NOT update few records due to some lock issue.etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you /someone tell me how i can schedule it for paralell processing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 02:53:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/8281482#M1633881</guid>
      <dc:creator>ricky_shaw</dc:creator>
      <dc:date>2011-09-22T02:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up a BAPI update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/8281483#M1633882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im sorry if I haven't got your question right. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, the thing you need to do is this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Before updating (using the BAPI), check first if that item is locked or not. In order to know if its locked, there's a lot of tutorial on the net on how to check if an item is locked. &lt;/P&gt;&lt;P&gt;2. If yes, proceed with your BAPI to update that record.&lt;/P&gt;&lt;P&gt;3. If not, then by-pass it or continue your LOOP statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 03:06:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/8281483#M1633882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T03:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up a BAPI update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/8281484#M1633883</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;Could you tell me which BAPI your using for update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does commit work is used explictly after BAPI call for each record update. If so could you use commit work for a counter of say every 50 records update.&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;Bysani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 11:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/8281484#M1633883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-23T11:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up a BAPI update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/8281485#M1633884</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;Try to see the help for CALL FUNCTION .....STARTING NEW TASK task &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 11:37:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/8281485#M1633884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-23T11:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up a BAPI update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/8281486#M1633885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you process them in parallel?&lt;/P&gt;&lt;P&gt;If it is BAPI, it would be a ALE interface  (IDOC) generated for it. If not you can generate for that BAPI. &lt;/P&gt;&lt;P&gt;From your program create IDOCs and use the RBDAPP01 to process those IDOCs. &lt;/P&gt;&lt;P&gt;RBDAPP01 has an option to process them in parallel by setting up the packet size. This parallel processing could use as many available work processes to process your recrods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 13:23:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/8281486#M1633885</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2011-09-23T13:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up a BAPI update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/8281487#M1633886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Max,&lt;/P&gt;&lt;P&gt;I want to use CALL FUNCTION .....STARTING NEW TASK. &lt;/P&gt;&lt;P&gt;I have internal  table it_ever wih 200,000 records.  I want to use this CALL FUNCTION .....STARTING NEW TASK  for every 25000 records.&lt;/P&gt;&lt;P&gt;How do i do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is below: its NOt allowing me to use Import parameters so i commented it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; loop at it_ever into wa_ever .
    clear : wa_out,wa_out_err,ls_return.

    if wa_ever-gemfakt eq '1'.
      clear ls_contr_data.
      ls_contr_data-contract = wa_ever-vertrag.
      ls_contr_data-joint_invoice = '3'.
      ls_contr_x-joint_invoice = 'X'.

      lv_task = 'task1'.
call function 'BAPI_ISUCONTRCT_CHANGEFROMDATA' starting new task lv_task destination 'NONE'
        exporting
          contractdata  = ls_contr_data
          contractdatax = ls_contr_x.
*        importing
*          return        = ls_return.

      if ( ( ls_return-type ne 'E' ) or ( ls_return-type ne 'A' ) ).

        call function 'BAPI_TRANSACTION_COMMIT'
          exporting
            wait = 'X'.

endloop&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Sep 2011 18:09:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/8281487#M1633886</guid>
      <dc:creator>ricky_shaw</dc:creator>
      <dc:date>2011-09-25T18:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up a BAPI update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/8281488#M1633887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ricky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can indeed get the response from your call.&lt;/P&gt;&lt;P&gt;And what you are missing is the control of the resources. With your coding you will make the whole system standing still.&lt;/P&gt;&lt;P&gt;Please read this docu about parallel processing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fa/096e92543b11d1898e0000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fa/096e92543b11d1898e0000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  Yuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 09:15:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/8281488#M1633887</guid>
      <dc:creator>yuri_ziryukin</dc:creator>
      <dc:date>2011-09-28T09:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up a BAPI update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/14001511#M2038385</link>
      <description>&lt;P&gt;Hi Ricky,&lt;/P&gt;&lt;P&gt;You can use background jobs, in your program you can split your records into different batches, say for each batch you want 10k records, it means you will then create 20 bacthes that will run concurrently in the background, this will use what ever number of processes are available in your system, if the maximum work processes for example is 6, then this will process 6 batches which have 10k records in each concurrently, and when one batch completes the next batch in line processes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have done this for another project where I had to load business partners.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tshepo&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 11:47:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/speed-up-a-bapi-update/m-p/14001511#M2038385</guid>
      <dc:creator>Ranthot</dc:creator>
      <dc:date>2025-01-30T11:47:03Z</dc:date>
    </item>
  </channel>
</rss>

