<?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_transcation_commit is not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transcation-commit-is-not-working/m-p/11762373#M1951344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shivshanker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is in the return table li_return of BAPI_SALESORDER_CHANGE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, are you creating the SO in the same program and trying to change the same SO that you created?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sowbhagya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2016 09:38:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-06-08T09:38:58Z</dc:date>
    <item>
      <title>Bapi_transcation_commit is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transcation-commit-is-not-working/m-p/11762372#M1951343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using below code to update SO but it is not updating.&lt;/P&gt;&lt;P&gt;In the same program, First I am creating SO then updating SO later on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;nbsp;&amp;nbsp;&amp;nbsp; li_order_header_in-ord_reason = '000'."lc_augru.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; li_order_header_in-cust_grp5 = '246'."lc_kvgr5.\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; li_order_header_inx-updateflag = 'U'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; li_order_header_inx-ord_reason = 'X'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; li_order_header_inx-cust_grp5 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call function 'SD_SALES_DOCUMENT_INIT'&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STATUS_BUFFER_REFRESH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'X'&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEEP_LOCK_ENTRIES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = ' '&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIMULATION_MODE_BAPI&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = ' '&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL_ACTIVE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = ' '&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call function 'BAPI_SALESORDER_CHANGE'&amp;nbsp; destination 'NONE'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exporting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; salesdocument&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; p_l_vbeln&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order_header_in&amp;nbsp; = li_order_header_in&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order_header_inx = li_order_header_inx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = li_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loop at li_return into lst_return&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where type eq 'E'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or type eq 'A'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endloop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clear: lst_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call function 'BAPI_TRANSACTION_COMMIT'."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if i am doing something wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shiv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 08:08:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transcation-commit-is-not-working/m-p/11762372#M1951343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-08T08:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi_transcation_commit is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transcation-commit-is-not-working/m-p/11762373#M1951344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shivshanker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is in the return table li_return of BAPI_SALESORDER_CHANGE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, are you creating the SO in the same program and trying to change the same SO that you created?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sowbhagya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 09:38:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transcation-commit-is-not-working/m-p/11762373#M1951344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-08T09:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi_transcation_commit is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transcation-commit-is-not-working/m-p/11762374#M1951345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could be that the sales order is still locked from creating. Check return table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 09:49:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transcation-commit-is-not-working/m-p/11762374#M1951345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-08T09:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi_transcation_commit is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transcation-commit-is-not-working/m-p/11762375#M1951346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you insure that the SO il already commited to database before calling the second BAPI (select or BAPI_SALESORDER_GETSTATUS) also add some code to manage errors returned&amp;nbsp; by BAPI, not a single EXIT, in case of COMMIT with WAIT option errors may also be raised by the commit.&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>Wed, 08 Jun 2016 09:56:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transcation-commit-is-not-working/m-p/11762375#M1951346</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-06-08T09:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi_transcation_commit is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transcation-commit-is-not-working/m-p/11762376#M1951347</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 suggest to test both the functionalities separately before calling then in sequence. It could be reason system is not updating data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 11:10:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transcation-commit-is-not-working/m-p/11762376#M1951347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-08T11:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi_transcation_commit is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transcation-commit-is-not-working/m-p/11762377#M1951348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code is very strange: you call the BAPI in a separate RFC mode ('NONE') but you call BAPI_TRANSACTION_COMMIT in the current mode. You must be coherent, either call both of them in 'NONE', or call both of them in the current mode (remove DESTINATION 'NONE').&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 13:48:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transcation-commit-is-not-working/m-p/11762377#M1951348</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-06-08T13:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi_transcation_commit is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transcation-commit-is-not-working/m-p/11762378#M1951349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't notice the DESTINATION 'NONE', so now i got some serious doubt on the relevance of the loop at return table &lt;SPAN __jive_emoticon_name="devil" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/108/images/emoticons/devil.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(an exported parameter would have raise an error, alas a TABLE parameter can be import or export, too sad)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 13:58:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transcation-commit-is-not-working/m-p/11762378#M1951349</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-06-08T13:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi_transcation_commit is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transcation-commit-is-not-working/m-p/11762379#M1951350</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;if you want the process done in own LUW, then create a new function module, put &lt;SPAN style="color: #333333; font-size: 12px;"&gt;BAPI_SALESORDER_CHANGE AND &lt;SPAN style="color: #333333; font-size: 12px;"&gt;BAPI_TRANSACTION_COMMIT in this function, call it &lt;SPAN style="color: #333333; font-size: 12px;"&gt; DESTINATION 'NONE' if you need own LUW without commit in current LUW.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Your evaluation of &lt;SPAN style="color: #333333; font-size: 12px;"&gt;li_return is wrong. It will call &lt;SPAN style="color: #333333; font-size: 12px;"&gt;BAPI_TRANSACTION_COMMIT anyway.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;LOOP AT li_return transporting no fields where type ca 'EAX'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;* E, A or X error: Roll Back any Changes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp; &lt;SPAN style="color: #333333; font-size: 12px;"&gt;call function 'BAPI_TRANSACTION_ROLLBACK'.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt; RETURN. "Leave current Function (form/method) - Exits only exits the LOOP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;endloop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;* Get here only without errors&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt; call function 'BAPI_TRANSACTION_COMMIT'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Clemens&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 16:23:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transcation-commit-is-not-working/m-p/11762379#M1951350</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2016-06-08T16:23:23Z</dc:date>
    </item>
  </channel>
</rss>

