<?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: Not Updating Customized Table when System having Performance Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573923#M259112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Janet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Place the code that updates the custom table in another Report program. SUBMIT that report from the User Exit. This will isolate the two workprocesses &amp;amp; avoid the UPDATE conflict.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Oct 2006 00:29:32 GMT</pubDate>
    <dc:creator>suresh_datti</dc:creator>
    <dc:date>2006-10-10T00:29:32Z</dc:date>
    <item>
      <title>Not Updating Customized Table when System having Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573918#M259107</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;This is actually the same topic as "Not Updating Customized Table when System having Performance Issue" which is posted last December by Leonard Tan regarding the user exit EXIT_SAPLMBMB_001. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recently we changed the program function module z_mm_save_hide_qty to update task. However this causes more data not updated. Hence we put back the old version (without the update task).  But now it is not working as it used to be (e.g. version 1 - 10 records not updated, version 2 with update task - 20 records not updated, back to version 1 - 20 records not updated).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried debugging the program, however whenever I debugged, there is nothing wrong and the data is updated correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise if anyone has any idea why is this happening. Many thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Janet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 07:01:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573918#M259107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T07:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Not Updating Customized Table when System having Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573919#M259108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Janet,&lt;/P&gt;&lt;P&gt;     This could be because of no commit happening to the DB. So try putting an COMMIT WORK Statement after update.&lt;/P&gt;&lt;P&gt;     Hope this could workout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 07:17:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573919#M259108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T07:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Not Updating Customized Table when System having Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573920#M259109</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;Thanks for the reply. But I thought that it is not advisable to put in a commit work in this user exit as this might cause a rollback (if any) to fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise if my concern is unfounded. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Janet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 07:23:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573920#M259109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T07:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Not Updating Customized Table when System having Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573921#M259110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Janet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are right. This is a basic rule not to do any COMMIT or RFC calls in a user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at SAP note 92550. Here they say that exit EXIT_SAPLMBMB_001 is called in the update routine MB_POST_DOCUMENT. And this routine is already called in UPDATE TASK from  FUNCTION 'MB_UPDATE_TASKS' IN UPDATE TASK.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;SAP also tells us not to do any updates on SAP system tables like MBEW, MARD, MSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before the exit is called, now they call 'MB_DOCUMENT_BADI' with methods MB_DOCUMENT_BEFORE_UPDATE and MB_DOCUMENT_UPDATE. Possibly you have more success implementing the BADI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know your situation and goal so this is all I can tell you now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 09:16:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573921#M259110</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-10-09T09:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Not Updating Customized Table when System having Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573922#M259111</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;Thanks for the info. Actually the goal is very simple, when it is posting the material document, it will update a customized table. However when the system is slow, the customized table is not updated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Janet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 00:25:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573922#M259111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T00:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Not Updating Customized Table when System having Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573923#M259112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Janet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Place the code that updates the custom table in another Report program. SUBMIT that report from the User Exit. This will isolate the two workprocesses &amp;amp; avoid the UPDATE conflict.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 00:29:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573923#M259112</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-10-10T00:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Not Updating Customized Table when System having Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573924#M259113</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;Sorry, need more information. Currently a function module is in the user exit. Inside the function module, after some validation, then there will be a insert/update statement. Is it better to put the whole function module in another report? or only the insert/update statments are to be put into another report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Janet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Janet Lee&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Janet Lee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 01:09:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573924#M259113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T01:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Not Updating Customized Table when System having Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573925#M259114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create a new report program with the update u wnated for the ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the include of the function module write the submit report statement. for further details on submit use F1 Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 05:51:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573925#M259114</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2006-10-10T05:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Not Updating Customized Table when System having Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573926#M259115</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 have create a new program and a Submit statement in the user exit. However an error Update Terminated appeared. Via SM13, I checked the error log and it is saying that the Submit statment is not allowed in a update task. Any other ways? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Janet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 05:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573926#M259115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T05:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Not Updating Customized Table when System having Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573927#M259116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The submit (and return) is done from the user-exit, and in the called program, the function module is called. But this function module does not need to be called in UPDATE TASK anymore.&lt;/P&gt;&lt;P&gt;When this called program is finished, the Logical Unit of Work is finished and a commit work is executed for the called program. Your data is then updated in the database. Then you're returned back to the User-Exit. The commit work should not affect the user-exit itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2006 09:20:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573927#M259116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-11T09:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Not Updating Customized Table when System having Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573928#M259117</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;Thanks. However I check the process and it seems that there are no other user exit that is suitable except the user exit (EXIT_SAPLMBMB_001) that is called in the update task (MB_UPDATE_TASKS). Please advise if otherwise. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Janet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 00:14:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573928#M259117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T00:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Not Updating Customized Table when System having Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573929#M259118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see the problem...&lt;/P&gt;&lt;P&gt;At the moment I have a similar issue but in a 'normal' user-exit. I can't update some data because a sales-order is locked.&lt;/P&gt;&lt;P&gt;I am going for a workflow solution. Trigger an event in the user-exit. In the workflow, it is possible to check if the lock on the object is released. If yes, then continue and make the changes. If not, try again in a minute...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;It works.&lt;/P&gt;&lt;P&gt;I've created a new business object, with event and method that contains the logic.&lt;/P&gt;&lt;P&gt;Also created a task to call the method, and a workflow with only that task.&lt;/P&gt;&lt;P&gt;Then, in the User Exit, I create an event with SWE_EVENT_CREATE and pass the paremeters to the event container. No commit work after the event create, of course...&lt;/P&gt;&lt;P&gt;The event is triggered, the created workflow started, and the task calls the method and the change is made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Edwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 05:39:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573929#M259118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T05:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Not Updating Customized Table when System having Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573930#M259119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest either solution via workflow or use "starting new task" addition to call your FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The goal is to separate main update task &amp;amp; your update.&lt;/P&gt;&lt;P&gt;You will need to put some logic like &lt;/P&gt;&lt;P&gt;- try to lock records you are going to update&lt;/P&gt;&lt;P&gt;- if lock fails - wait up to nnn seconds &amp;amp; try again&lt;/P&gt;&lt;P&gt;- if lock successfull - update your records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how exactly you are updating your table but you can try to put some lock/wait logic into your FM which works in update task... It can cause delays for other updates if your FM is called in V1 update.&lt;/P&gt;&lt;P&gt;If you do not have requirement to fail whole transaction if your FM fails to update your table -&amp;gt; you can call your FM in async. update (change administration parameters of your FM).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 17:56:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-updating-customized-table-when-system-having-performance-issue/m-p/1573930#M259119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T17:56:52Z</dc:date>
    </item>
  </channel>
</rss>

