<?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 statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-statement/m-p/3727786#M897216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;This method executes a COMMIT WORK command. It is required for transactions developed outside the SAP system that change data in the SAP system by using BAPI calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you call BAPIs in your program that change data in the SAP system, you must then call this method to write the changes to the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 May 2008 08:14:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-06T08:14:19Z</dc:date>
    <item>
      <title>commit statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-statement/m-p/3727784#M897214</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 am using the BAPI BAPI_OUTB_DELIVERY_CHANGE for updating the serial number of an item in a delivery.&lt;/P&gt;&lt;P&gt;For the changes to be reflected, do i need to use the commit after the BAPI is called in my code.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the commit statement in the code, the delivery is updating. If the COMMIT statement is removed the update is not taking place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question is do we need to explicitly call the commit statement after the BAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 08:10:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-statement/m-p/3727784#M897214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T08:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: commit statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-statement/m-p/3727785#M897215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use a bapi to commit your transaction&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, &lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 08:13:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-statement/m-p/3727785#M897215</guid>
      <dc:creator>peter_ruiz2</dc:creator>
      <dc:date>2008-05-06T08:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: commit statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-statement/m-p/3727786#M897216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;This method executes a COMMIT WORK command. It is required for transactions developed outside the SAP system that change data in the SAP system by using BAPI calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you call BAPIs in your program that change data in the SAP system, you must then call this method to write the changes to the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 08:14:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-statement/m-p/3727786#M897216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T08:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: commit statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-statement/m-p/3727787#M897217</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;ya, it is necessary to write commit work after using BAPI as it will update many tables, so commit work vl add all of them in a queue and update. Sometimes, even this is not enough..&lt;/P&gt;&lt;P&gt;So, it is recommended to use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 08:15:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-statement/m-p/3727787#M897217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T08:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: commit statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-statement/m-p/3727788#M897218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Refer&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=11468144&amp;amp;messageID=4913479" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=11468144&amp;amp;messageID=4913479&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran Sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 08:15:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-statement/m-p/3727788#M897218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T08:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: commit statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-statement/m-p/3727789#M897219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calling the BAPI in the program, most of the times or may be always, kind of simulates the data. It does not actually update the database. You used COMMIT WORK and the database got updated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is standard way to do it. Call the BAPI, read the return table. Depending on that call one of the following BAPI's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;This will confirm the changes to the database.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     WAIT          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     RETURN        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. &lt;STRONG&gt;This will rollback the changes.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     RETURN        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need anything else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ganesh Khumse&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 08:17:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-statement/m-p/3727789#M897219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T08:17:42Z</dc:date>
    </item>
  </channel>
</rss>

