<?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 Wait upto one second v/s BAPI TRANSACTION COMMIT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-upto-one-second-v-s-bapi-transaction-commit/m-p/7600552#M1568264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I calling the FM BAPI_EQUI_CHANGE and then   CALL FUNCTION 'BAPI_TRANSACTION_COMMIT 'EXPORTING  wait = 'X'.&lt;/P&gt;&lt;P&gt;But it seems like in the production environment the commit does not happen immediately and happens only when I add a "wait upto one second" statement. I want to avoid the wait and also a bit confused on why the commit  BAPI  does not work quickly enough. PLease enlightenme on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best REgards,&lt;/P&gt;&lt;P&gt;Shankar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Dec 2010 08:26:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-27T08:26:31Z</dc:date>
    <item>
      <title>Wait upto one second v/s BAPI TRANSACTION COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-upto-one-second-v-s-bapi-transaction-commit/m-p/7600552#M1568264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I calling the FM BAPI_EQUI_CHANGE and then   CALL FUNCTION 'BAPI_TRANSACTION_COMMIT 'EXPORTING  wait = 'X'.&lt;/P&gt;&lt;P&gt;But it seems like in the production environment the commit does not happen immediately and happens only when I add a "wait upto one second" statement. I want to avoid the wait and also a bit confused on why the commit  BAPI  does not work quickly enough. PLease enlightenme on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best REgards,&lt;/P&gt;&lt;P&gt;Shankar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 08:26:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-upto-one-second-v-s-bapi-transaction-commit/m-p/7600552#M1568264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-27T08:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Wait upto one second v/s BAPI TRANSACTION COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-upto-one-second-v-s-bapi-transaction-commit/m-p/7600553#M1568265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shanker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't wanna let your program wait till any long; then you can comment EXPORTING section out. Example can be as below --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
*   WAIT          =
 IMPORTING
   RETURN        = 
          .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Kumar Saurav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 09:11:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-upto-one-second-v-s-bapi-transaction-commit/m-p/7600553#M1568265</guid>
      <dc:creator>former_member186491</dc:creator>
      <dc:date>2010-12-27T09:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Wait upto one second v/s BAPI TRANSACTION COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-upto-one-second-v-s-bapi-transaction-commit/m-p/7600554#M1568266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can also use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 11:39:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-upto-one-second-v-s-bapi-transaction-commit/m-p/7600554#M1568266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-27T11:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Wait upto one second v/s BAPI TRANSACTION COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-upto-one-second-v-s-bapi-transaction-commit/m-p/7600555#M1568267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Commit work is used when you code directly in ABAP and make changes in the database and &lt;/P&gt;&lt;P&gt;want to commit the database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT is used when you make changes to the SAP database by calling &lt;/P&gt;&lt;P&gt;a BAPI from outside SAP and want to commit the database. When you use a BAPI, you can not &lt;/P&gt;&lt;P&gt;directly use commit work, instead you are allowed to use only  BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 13:39:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-upto-one-second-v-s-bapi-transaction-commit/m-p/7600555#M1568267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-04T13:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Wait upto one second v/s BAPI TRANSACTION COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-upto-one-second-v-s-bapi-transaction-commit/m-p/7600556#M1568268</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;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   WAIT          = 'X'&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;and COMMIT WORK AND WAIT are same.  This will help you to do synchronous update(ie it will wait till update happens before going to the next step).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' and COMMIT WORK are same. the differnce with the above is that this may not be synchronous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sajith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 09:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-upto-one-second-v-s-bapi-transaction-commit/m-p/7600556#M1568268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-07T09:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Wait upto one second v/s BAPI TRANSACTION COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-upto-one-second-v-s-bapi-transaction-commit/m-p/7600557#M1568269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT executes&lt;/P&gt;&lt;P&gt;- a COMMIT WORK, so it starts update task, if WAIT specified, it waits until task are ended, and execute a database commit (native SQL commit on database server)&lt;/P&gt;&lt;P&gt;- a buffer refresh of the BAPI tools only not of the whole database on server...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There can nevertheless be some delay due to database server even if database commit is required it may take time and Abap don't wait at this step, so even a WAIT UP TO n SECONDS can fail (&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt; So [it will happen|http://en.wikipedia.org/wiki/Murphy%27s_law]&lt;/SPAN&gt;). If you want to actually be sure that database is updated, you must execute a SELECT from database[ BYPASSING BUFFER|http://help.sap.com/abapdocu_70/en/ABAPFROM_CLAUSE.htm#&amp;amp;ABAP_ADDITION_3@3@] in a DO/ENDDO loop to insure data is created/updated (Of course put a limit at the number of tries performed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 10:01:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-upto-one-second-v-s-bapi-transaction-commit/m-p/7600557#M1568269</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-01-07T10:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Wait upto one second v/s BAPI TRANSACTION COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-upto-one-second-v-s-bapi-transaction-commit/m-p/7600558#M1568270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you kindly explain little more your idea:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"There can nevertheless be some delay due to database server even if database commit is required it may take time and Abap don't wait at this step"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What it is meant by due to database server?==&amp;gt; Communication between application server and Data base servers. or it is data replication between the Buffer Pool and Physical data base?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ever (for whatever the reason) the physical commit fails, what will be the result?  From ABAP point of view, everything is okay and no thing will be reported to SM13 , SM21.&lt;/P&gt;&lt;P&gt;So where we can find error coming from such commit incidents?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Meher&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Oct 26, 2011 10:54 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 14:51:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-upto-one-second-v-s-bapi-transaction-commit/m-p/7600558#M1568270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-26T14:51:17Z</dc:date>
    </item>
  </channel>
</rss>

