<?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: About BAPI_TRANSACTION_COMMIT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-transaction-commit/m-p/3978067#M950139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This BAPI is used to update the database after all the transactions in a LUW are completed successfully. After execution of this BAPI all the related tables are updated in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So whatever operation you do which requires the database tables to be updated, this BAPI can be used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jun 2008 13:12:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-11T13:12:46Z</dc:date>
    <item>
      <title>About BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-transaction-commit/m-p/3978064#M950136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Can anyone pls tell me when to use BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;Is it only used for Creating of Data in R/3 Using another BAPI ?&lt;/P&gt;&lt;P&gt;  or&lt;/P&gt;&lt;P&gt;Is this BAPI is  Used after Updation and Deletion of Data in R/3also?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 13:06:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-transaction-commit/m-p/3978064#M950136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T13:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: About BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-transaction-commit/m-p/3978065#M950137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can use this in R3 also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use : when you are using BAPI's it need external commit. for this we use the above FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you will use..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When there is no error from BAPI then only you need to call this BAPI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 13:09:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-transaction-commit/m-p/3978065#M950137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T13:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: About BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-transaction-commit/m-p/3978066#M950138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at OSS [Note 798535 - COMMIT WORK after calling a BAPI|https://service.sap.com/sap/support/notes/798535]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 13:11:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-transaction-commit/m-p/3978066#M950138</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-06-11T13:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: About BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-transaction-commit/m-p/3978067#M950139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This BAPI is used to update the database after all the transactions in a LUW are completed successfully. After execution of this BAPI all the related tables are updated in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So whatever operation you do which requires the database tables to be updated, this BAPI can be used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 13:12:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-transaction-commit/m-p/3978067#M950139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T13:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: About BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-transaction-commit/m-p/3978068#M950140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT is called to COMMIT a database operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we can not write COMMIT WORK statement inside BAPI, we need to call this BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you are updating some database table inside one BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to success status of that BAPI, either you can COMMIT or ROLLBACK. To COMMIT call BAPI BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 13:28:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-transaction-commit/m-p/3978068#M950140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T13:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: About BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-transaction-commit/m-p/3978069#M950141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This method executes a COMMIT WORK command. It is needed for transactions that are developed outside of the R/3 System, but change data in the R/3 System using BAPI calls.&lt;/P&gt;&lt;P&gt;If you call BAPIs in your program, which are meant to change R/3 System data, you must call this method to write the changes in the database.&lt;/P&gt;&lt;P&gt;In this case, the database commit is executed externally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Executing the ABAP statement COMMIT WORK:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides the database commit, this statement executes other activities - compare the key term documentation for COMMIT WORK.&lt;/P&gt;&lt;P&gt;In this case, the database commit is executed internally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;**************************************************************
Call BAPI
**************************************************************

CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
           EXPORTING: documentdata = ls_doc

           IMPORTING: documenttype = lf_doctype

                    documentnumber = lf_docnumber

                    documentpart = lf_docpart

                    documentversion = lf_docversion

                    re stall turn = ls_return

           TABLES: documentdescriptions = lt_drat

                    object-left = lt_drad

                    documentfiles = lt_files.


**************************************************************
**Error Check
**************************************************************

IF ls_return-type CA 'EA'.
           ROLLBACK WORK.          'Errors are made declining

           MESSAGE ID '''26''' TYPE '''I''' NUMBER '''000'''

           WITH ls_return-message.

ELSE.

           COMMIT WORK.             'Changes are confirmed


ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 13:32:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-transaction-commit/m-p/3978069#M950141</guid>
      <dc:creator>former_member125661</dc:creator>
      <dc:date>2008-06-11T13:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: About BAPI_TRANSACTION_COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-transaction-commit/m-p/3978070#M950142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii&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          = w_WAIT&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;This FM will update your data.it will use for the FM like BAPI_DOCUMENT_CHANGE2 ....if its done successfully then 'BAPI_TRANSACTION_COMMIT' FM will save all the changes or else it will not save and will perform rollback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;twinkal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 13:36:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bapi-transaction-commit/m-p/3978070#M950142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T13:36:04Z</dc:date>
    </item>
  </channel>
</rss>

