<?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: BAPI_TRANSACTION_COMMIT not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-not-working/m-p/4097481#M979819</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;May be your BAPI is returning a error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So check for same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF return-type NA 'EA'.&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;IMPORTING&lt;/P&gt;&lt;P&gt;RETURN = RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;dhanashri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jun 2008 11:18:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-25T11:18:44Z</dc:date>
    <item>
      <title>BAPI_TRANSACTION_COMMIT not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-not-working/m-p/4097475#M979813</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;&lt;/P&gt;&lt;P&gt;i am creating a sales inquiry through BAPI_INQUIRY_CREATEFROMDATA. after creating the inquiry, i selected from VBAK table again to get information on the created inquiry. this is unsuccessful when i executed the program because it doesn't get the details of the newly created inquiry. (but during debugging mode it is successful.) i already used BAPI_TRANSACTION_COMMIT after the BAPI_INQUIRY_CREATEFROMDATA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you know of any alternative on BAPI_TRANSACTION_COMMIT ?&lt;/P&gt;&lt;P&gt;it seems that the database table doesn't get updated immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help me out on this, gurus.&lt;/P&gt;&lt;P&gt;thank you. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 10:45:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-not-working/m-p/4097475#M979813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T10:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-not-working/m-p/4097476#M979814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark WAIT = 'X' while calling BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 10:48:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-not-working/m-p/4097476#M979814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T10:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-not-working/m-p/4097477#M979815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have marked 'X' on the WAIT already but still it's not working...:-(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 10:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-not-working/m-p/4097477#M979815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T10:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-not-working/m-p/4097478#M979816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put some delay between two BAPIs like. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; wait up to 2 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rajinikanth G on Jun 25, 2008 12:55 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 10:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-not-working/m-p/4097478#M979816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T10:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-not-working/m-p/4097479#M979817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Just write Commit Work after calling the BAPI. Does the BAPI return an error or is it succesful?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nayan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 10:59:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-not-working/m-p/4097479#M979817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T10:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-not-working/m-p/4097480#M979818</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;While using BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wait = 'X'                 for Asynchronous Call&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;wait = space          for Synchronous Call&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R Adarsh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 11:00:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-not-working/m-p/4097480#M979818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T11:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-not-working/m-p/4097481#M979819</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;May be your BAPI is returning a error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So check for same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF return-type NA 'EA'.&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;IMPORTING&lt;/P&gt;&lt;P&gt;RETURN = RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;dhanashri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 11:18:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-not-working/m-p/4097481#M979819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T11:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-not-working/m-p/4097482#M979820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Setting WAIT='X' in BAPI_TRANSACTON_COMMIT should be enough. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if it is not then it may suggest that asynchronous "commit work" is triggered before your call to BAPI_TRANSACTON_COMMIT (commit in update task). Maybe some part of your code executed between call to BAPI_ALM_CONF_CREATE and BAPI_TRANSACTON_COMMIT performs commit ? If this is the case then calling BAPI_TRANSACTON_COMMIT with WAIT='X' has no effect because the commit process is already in progress and apprently it's a commit submited without "and wait" clause (commit in update task) - and your code performing  "select ... from VBAK" is executed before this commit finishes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you should ensure that no "commit work" is called between BAPI_ALM_CONF_CREATE and BAPI_TRANSACTON_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(You can also check if fm BAPI_ALM_CONF_CREATE does not call commit itself - there have been such errors in BAPIs - see for example note 831583 "BAPI_SHIPMENT_CREATE performs COMMIT WORK")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If nothing of the above hepls then you can always use an ABAP staement in your program: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;set update task local&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This way you tell the system not to perform any commits (submitted by your program) in update task but instead: in the same process - the updade code and code of your program will execute in the same OS process - so your code will have to wait until the code performing update finishes. That should solve your problem for sure, regardless of any commits between BAPI_ALM_CONF_CREATE and BAPI_TRANSACTON_COMMIT and whether BAPI_ALM_CONF_CREATE triggers commit itself or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check also this thread: [&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="562671"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 11:19:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-not-working/m-p/4097482#M979820</guid>
      <dc:creator>Maciej_DomagaBa</dc:creator>
      <dc:date>2008-06-25T11:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-not-working/m-p/4097483#M979821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have found a solution for this. i used the FM 'ENQUE_SLEEP' after the BAPI_TRANSACTION_COMMIT... and fortunately, it works now...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyways, i appreciate all of your quick response.&lt;/P&gt;&lt;P&gt;thank you.. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-march-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 13:18:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-not-working/m-p/4097483#M979821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T13:18:50Z</dc:date>
    </item>
  </channel>
</rss>

