<?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: Regarding  BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/5627316#M1281450</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There could be multiple transactions that you might be performing in the function module and you may want that COMMIT should happen only when all the transactions are successful. So you write COMMIT at the end. If there is Error in any steps of update you can simply ROLLBACK hence ensuring &lt;STRONG&gt;atomicity&lt;/STRONG&gt; i.e. (Save all or none) in the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shital&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 May 2009 14:28:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-17T14:28:41Z</dc:date>
    <item>
      <title>Regarding  BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/5627314#M1281448</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;Which cases we need to use BAPI_TRANSACTION_COMMIT and BAPI_TRANSACTION_ROLLBACK &lt;/P&gt;&lt;P&gt;and also why we need to mension wait parameter in   BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please advise me .&lt;/P&gt;&lt;P&gt;Regards , &lt;/P&gt;&lt;P&gt;kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 May 2009 07:56:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/5627314#M1281448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-17T07:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding  BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/5627315#M1281449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_TRASACTION_COMMIT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we will use this for data base commit.&lt;/P&gt;&lt;P&gt;whenever if u change any data in SAP , to update the changes in database we have to use database commit.&lt;/P&gt;&lt;P&gt;similarly if u change any  data in SAP using any BAPI we will use above BAPI for Commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_ROLLBACK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u don't want to update the changes in database ,then to rollback the changes we will use&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_ROLLBACK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wait:&lt;/P&gt;&lt;P&gt;if u write wait means it will take some time and then it will update the database.&lt;/P&gt;&lt;P&gt;whenevr u r updating SAP in Loop we will use this wait parameter.&lt;/P&gt;&lt;P&gt;take an example of Purchane order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whenver u r updating  any P.O's in loop &lt;/P&gt;&lt;P&gt;P.O related tables get's locked for every update.&lt;/P&gt;&lt;P&gt;in this  case if u use wait it will wait for some time and then it will update the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 May 2009 08:45:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/5627315#M1281449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-17T08:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding  BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/5627316#M1281450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There could be multiple transactions that you might be performing in the function module and you may want that COMMIT should happen only when all the transactions are successful. So you write COMMIT at the end. If there is Error in any steps of update you can simply ROLLBACK hence ensuring &lt;STRONG&gt;atomicity&lt;/STRONG&gt; i.e. (Save all or none) in the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shital&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 May 2009 14:28:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/5627316#M1281450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-17T14:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding  BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/5627317#M1281451</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;In BAPI's some  are auto committed and some are not auto committed. If look at the documentation of the bapi you can find that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the BAPI's  which are not auto committed, we need to use the following FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_TRASACTION_COMMIT:&lt;/P&gt;&lt;P&gt;we will use this for data base commit.&lt;/P&gt;&lt;P&gt;if u change any data in SAP using any BAPI we will use above BAPI for Commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_ROLLBACK&lt;/P&gt;&lt;P&gt;if u don't want to update the changes in database ,then to rollback the changes we will use&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_ROLLBACK.&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;Venu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 10:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi/m-p/5627317#M1281451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T10:49:25Z</dc:date>
    </item>
  </channel>
</rss>

