<?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: COMMIT WORK - performance problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-performance-problem/m-p/6588298#M1435408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But where do you call those FMs from?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Feb 2010 04:16:14 GMT</pubDate>
    <dc:creator>mvoros</dc:creator>
    <dc:date>2010-02-03T04:16:14Z</dc:date>
    <item>
      <title>COMMIT WORK - performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-performance-problem/m-p/6588292#M1435402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Fellow SDNers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I seek your help on the following problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario&lt;/STRONG&gt; : Inbound idoc which updates an Outbound delivery with Picked quantity, posts the goods issue and then creates billing document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Approach&lt;/STRONG&gt; : I am using the function module &lt;STRONG&gt;SD_DELIVERY_UPDATE_PICKING&lt;/STRONG&gt; to update the delivery from the idoc data and to post goods issue. Thereafter, i use &lt;STRONG&gt;BAPI_BILLINGDOC_CREATEMULTIPLE&lt;/STRONG&gt; to create the billing document. Before calling this BAPI, I use a COMMIT WORK statement to update the relevant tables so as to enable invoice creation properly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;: The COMMIT WORK statement takes a lot of time to execute (I have no update tasks that could lead to this), so much that the idoc (probably) has a timeout and ends up in status 64. As a result, the succeeding part of the code (after COMMIT WORK) is not executed and the billing document is not created. &lt;/P&gt;&lt;P&gt;When I debug this, the COMMIT WORK statement leads to a strange screen (which looks like a blank report output screen, with its title as "UPDATE CONTROL". However (of course), there is no timeout while debugging and the billing document is successfully created. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone provide some pointers to solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Priyank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 02:33:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-performance-problem/m-p/6588292#M1435402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T02:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK - performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-performance-problem/m-p/6588293#M1435403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello have you tried calling bapi with UPDATE TASK addition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 03:04:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-performance-problem/m-p/6588293#M1435403</guid>
      <dc:creator>anup_deshmukh4</dc:creator>
      <dc:date>2010-02-03T03:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK - performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-performance-problem/m-p/6588294#M1435404</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 would suggest to create a new RFC enabled function module which will be wrapper for SD_DELIVERY_UPDATE_PICKING and BAPI_BILLINGDOC_CREATEMULTIPLE. So you will call this wrapper from your IDoc code with option STARTING NEW TASK. So IDoc code would not have to wait for this code. It will be processed asynchronously in separate task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 03:26:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-performance-problem/m-p/6588294#M1435404</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-02-03T03:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK - performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-performance-problem/m-p/6588295#M1435405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could try the approach you suggest but i actually want the idoc to wait for the billing document creation to finish...and then i want to give it a status message accordingly. Therefore, my main problem is that the statement : COMMIT WORK AND WAIT takes so long that there seems to be a timeout and the subsequent part is not executed. Also, it shows up the "UPDATE CONTROL" screen when i process using standard inbound processing through WE19. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any further hints?&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;Priyank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 03:44:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-performance-problem/m-p/6588295#M1435405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T03:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK - performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-performance-problem/m-p/6588296#M1435406</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;that's weird. Are you sure that your code times out? Maybe there is something else. You can try to check system log SM21 or check ABAP dumps ST22. Are you sure that you can call COMMIT WORK in your code? You can't call COMMIT WORK when you are already in UPDATE TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 03:55:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-performance-problem/m-p/6588296#M1435406</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-02-03T03:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK - performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-performance-problem/m-p/6588297#M1435407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i said, i am not calling the function in update task...after i call the first FM, a commit work is required and without it, the relevant tables are not updated to facilitate billing doc creation by the second BAPI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idoc ends up in status 64 but the updates for the preceding part of the code (updating of pick quantity for the delivery and goods issue) is being done perfectly. The table VBUK is pending to be updated which happens only after the COMMIT WORK AND WAIT Statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it sounds really wierd...but unfortunately this is what is happening. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Priyank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 04:13:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-performance-problem/m-p/6588297#M1435407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T04:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK - performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-performance-problem/m-p/6588298#M1435408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But where do you call those FMs from?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 04:16:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-performance-problem/m-p/6588298#M1435408</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-02-03T04:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK - performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-performance-problem/m-p/6588299#M1435409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a custom function module Y_IDOC_INPUT_WMSPICK001 which is responsible for idoc inbound processing. SAP PI sends the inbound data to ECC and once this is done, this function module is executed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This FM has the following code sequence inside it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Call the FM SD_DELIVERY_UPDATE_PICKING&lt;/P&gt;&lt;P&gt;2) COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;3) Call the BAPI_BILLINGDOC_CREATEMULTIPLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step1 is successfully executed,  the step 2 takes a long time, and after that, the step 3 is not executed at all and the idoc ends up with a yellow light (status 64).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it clarifies what I am doing&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;Priyank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 05:04:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-performance-problem/m-p/6588299#M1435409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T05:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK - performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-performance-problem/m-p/6588300#M1435410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked the FM SD_DELIVERY_UPDATE_PICKING and it has the parameter SYNCHRON. I guess that this parameter switches FM to synchronous mode. I also guess that the parameter NICHT_SPERREN has to be blank. In this case the FM will call COMMIT. So probably you can skip the second step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 05:16:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-performance-problem/m-p/6588300#M1435410</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-02-03T05:16:43Z</dc:date>
    </item>
  </channel>
</rss>

