<?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_ROLLBACK necessary? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-necessary/m-p/2226207#M478479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florina,&lt;/P&gt;&lt;P&gt; There is a parameter TESTRUN in the interface of this bapi. BAPI_PO_CREATE1.&lt;/P&gt;&lt;P&gt;If you set that to X, then you need to do a commit explicitly afterwards(If successful).&lt;/P&gt;&lt;P&gt;If you don't use the TESTRUN = 'X', it would have already commited the changes by then .&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Apr 2007 08:04:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-26T08:04:53Z</dc:date>
    <item>
      <title>BAPI_TRANSACTION_ROLLBACK necessary?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-necessary/m-p/2226204#M478476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To commit changes made by BAPIs like BAPI_PO_CREATE1 it is necessary to call BAPI_TRANSACTION_COMMIT. &lt;/P&gt;&lt;P&gt;Question is: Is it also necessary to call BAPI_TRANSACTION_ROLLBACK in case of an error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. BAPI_PO_CREATE1 does not succeed and returns an error message in RETURN table. Do I have to execute an rollback now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I test BAPI_PO_CREATE1 and it succeeds a po number is returned. Without calling COMMIT or ROLLBACK now will this number garble the system or is it save to forget it simply?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 07:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-necessary/m-p/2226204#M478476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T07:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_ROLLBACK necessary?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-necessary/m-p/2226205#M478477</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 case of a WARNING message, the ROLLBACK wont happen automatically whereas in case of an ERROR message, the ROLLBACK would happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But to be on safer side, it is always good to call BAPI_TRANSACTION_ROLLBACK irrespective of the message type ( Warning or Error).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same is the case with COMMIT. If you dont give an explicit commit work, the data would be COMMITED once the transaction/process is completed without any error/warning messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 07:58:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-necessary/m-p/2226205#M478477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T07:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_ROLLBACK necessary?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-necessary/m-p/2226206#M478478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its a fail safe practice to do it. There might be a  number of global variables, LUWs which might be sitting in the buffer. As you will not be aware of what SAP std code is  inside BAPI_PO_CREATE1, it is better to call FM BAPI_TRANSACTION_ROLLBACK as a fail safe practice.&lt;/P&gt;&lt;P&gt;Ideally this is for the case where you call &lt;/P&gt;&lt;P&gt;BAPI 1&lt;/P&gt;&lt;P&gt;BAPI 2&lt;/P&gt;&lt;P&gt;BAPI 3 in a chain &lt;/P&gt;&lt;P&gt;and execute the rollback work in case any of them fails in the chain to make sure that a system rollback occurs to the original state.&lt;/P&gt;&lt;P&gt;Hope this answers the query &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Kareem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 07:59:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-necessary/m-p/2226206#M478478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T07:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_ROLLBACK necessary?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-necessary/m-p/2226207#M478479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florina,&lt;/P&gt;&lt;P&gt; There is a parameter TESTRUN in the interface of this bapi. BAPI_PO_CREATE1.&lt;/P&gt;&lt;P&gt;If you set that to X, then you need to do a commit explicitly afterwards(If successful).&lt;/P&gt;&lt;P&gt;If you don't use the TESTRUN = 'X', it would have already commited the changes by then .&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 08:04:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-necessary/m-p/2226207#M478479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T08:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_ROLLBACK necessary?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-necessary/m-p/2226208#M478480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. BAPI_PO_CREATE1 does not succeed &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  In that case, nothing is saved in database,&lt;/P&gt;&lt;P&gt;and so,&lt;/P&gt;&lt;P&gt;neither commit nor rollback is required.&lt;/P&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 08:13:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-necessary/m-p/2226208#M478480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T08:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_ROLLBACK necessary?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-necessary/m-p/2226209#M478481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To my knowledge this is not the case at least with release 4.7. When my call to the BAPI succeeds a number is returned but the po can only be seen (e.g. by me23) after a call to transaction commit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think TESTRUN will prevent a number to be created if the BAPI is successfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 08:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-necessary/m-p/2226209#M478481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T08:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_ROLLBACK necessary?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-necessary/m-p/2226210#M478482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Since it is a BAPI, it can be saved only via COMMIT afterwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. So If Test run = 'X',&lt;/P&gt;&lt;P&gt;    then commit work will not have any effect bcos &lt;/P&gt;&lt;P&gt;   Test run means that no data will be saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. However, it seems that the number range (new number)&lt;/P&gt;&lt;P&gt;  will anyhow get created in the system.  &lt;/P&gt;&lt;P&gt;  (Whether we give test run or not, the new number range gets created and saved)&lt;/P&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;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 09:01:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-necessary/m-p/2226210#M478482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T09:01:10Z</dc:date>
    </item>
  </channel>
</rss>

