<?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 transaction problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-transaction-problem/m-p/7087089#M1506745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saw the code. Didn't find much differences. It also includes the single statement of COMIMIT WORK AND WAIT. Then, it returns the error messages, if any. Lastly,it deletes the buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think this will fix the problem ? Anyways, i will give a shot. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank,&lt;/P&gt;&lt;P&gt;Srinivas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jul 2010 14:55:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-08T14:55:40Z</dc:date>
    <item>
      <title>Commit transaction problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-transaction-problem/m-p/7087084#M1506740</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 a function which uses BAPI_MATERIAL_BOM_GROUP_CREATE to create a BOM. After calling this function module i am doing a explicit commit by using COMMIT WORK AND WAIT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when i try to read the data immediately after the commit statement,  sometimes i get  the newly created contents and sometimes not.  It happens once in a while. But this is really affecting the functionality of my function module. Can anyone tell me what could be the problem ? Is it related to SAP server load ? What could be other alternatives ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Srinivas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 14:23:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-transaction-problem/m-p/7087084#M1506740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-08T14:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Commit transaction problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-transaction-problem/m-p/7087085#M1506741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use COMMIT WORK AND WAIT the update should be synchronous. This is what SAP documentation has to say; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt; ... If the addition AND WAIT is specified, program processing after COMMIT WORK will not continue until the update work process has executed the high-priority update function modules (synchronous updating). &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; [http://help.sap.com/abapdocu_70/en/ABAPCOMMIT.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But sometimes in the forum i have seen members having similar problems though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 14:29:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-transaction-problem/m-p/7087085#M1506741</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-07-08T14:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Commit transaction problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-transaction-problem/m-p/7087086#M1506742</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;Usually when you add WAIT, control will wait for the update. Introduce explicit wait of 3-4 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WAIT UP TO 4 SECONDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 14:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-transaction-problem/m-p/7087086#M1506742</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-07-08T14:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Commit transaction problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-transaction-problem/m-p/7087087#M1506743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if explicit wait of 3-4 seconds guarantees that update goes smoothly in all conditions. Assume a production server whose load is pretty high. I want to be very definite about this update as this really affects the entire transaction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 14:43:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-transaction-problem/m-p/7087087#M1506743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-08T14:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Commit transaction problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-transaction-problem/m-p/7087088#M1506744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try FM BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;REA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 14:49:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-transaction-problem/m-p/7087088#M1506744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-08T14:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Commit transaction problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-transaction-problem/m-p/7087089#M1506745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saw the code. Didn't find much differences. It also includes the single statement of COMIMIT WORK AND WAIT. Then, it returns the error messages, if any. Lastly,it deletes the buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think this will fix the problem ? Anyways, i will give a shot. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank,&lt;/P&gt;&lt;P&gt;Srinivas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 14:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-transaction-problem/m-p/7087089#M1506745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-08T14:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Commit transaction problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-transaction-problem/m-p/7087090#M1506746</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;We had similar issue with triggering of sequential IDOCs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: First IDOC creates material, next creates class characteristics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We added a WAIT for 5 seconds in characteristics creation FM (Since it is IDOC, time doesn't matter to great extent). Issue got resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope your BASIS team will take care of load balancing (May be with multiple application servers) and appropriate number of work processess as per average system load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 15:25:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-transaction-problem/m-p/7087090#M1506746</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-07-08T15:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Commit transaction problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-transaction-problem/m-p/7087091#M1506747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use commad SET UPDATE TASK LOCAL prior to your BAPI call,&lt;/P&gt;&lt;P&gt;then BAPI will use current LUW for Update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;REA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jul 2010 08:55:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-transaction-problem/m-p/7087091#M1506747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-28T08:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Commit transaction problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-transaction-problem/m-p/7087092#M1506748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I fixed the problem by adding a explicit wait of 2 seconds in a while loop which runs for 20 times so that irrespective of server load the read call gets data. The moment it is able to read data the control comes out of loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to test your solution. It is very informative. I was looking for something like this for quite some time.&lt;/P&gt;&lt;P&gt;Thanks !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 12:10:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-transaction-problem/m-p/7087092#M1506748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-29T12:10:31Z</dc:date>
    </item>
  </channel>
</rss>

