<?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: Simulation or Test, BAPI_TRANSACTION_COMMIT and BAPI_TRANSACTION_ROLLBACK in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-or-test-bapi-transaction-commit-and-bapi-transaction-rollback/m-p/5226476#M1208309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.. this will work.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the User selected &lt;STRONG&gt;Test or Simulation&lt;/STRONG&gt; from the selection screen check box  execute the BAPI &lt;STRONG&gt;BAPI_ALM_ORDER_MAINTAIN&lt;/STRONG&gt; so that you can validate the data.. then execute &lt;STRONG&gt;BAPI_TRANSACTION_ROLLBACK&lt;/STRONG&gt; so that the document is not commited.. the entire process is rolled back..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the &lt;STRONG&gt;Simulation or Test&lt;/STRONG&gt; is not checked from the selection screen then  execute the Bapi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BAPI_ALM_ORDER_MAINTAIN&lt;/STRONG&gt;  , check for errors in the RETURN internal table if none.. then execute&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BAPI_TRANSACTION_COMMIT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work.. i have done this in lot of objects.. to make sure the data is correct&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Feb 2009 19:55:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-19T19:55:32Z</dc:date>
    <item>
      <title>Simulation or Test, BAPI_TRANSACTION_COMMIT and BAPI_TRANSACTION_ROLLBACK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-or-test-bapi-transaction-commit-and-bapi-transaction-rollback/m-p/5226475#M1208308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I call the BAPI_TRANSACTION_COMMIT but would like to use the BAPI_TRANSACTION_ROLLBACK when the user chooses test mode on the selection screen. Objects are being filled with BAPI_ALM_ORDER_MAINTAIN. The BAPI_TRANSACTION_ROLLBACK is being called when there's an error, but will it work if I have a condition for test or simulate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 19:39:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-or-test-bapi-transaction-commit-and-bapi-transaction-rollback/m-p/5226475#M1208308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-19T19:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Simulation or Test, BAPI_TRANSACTION_COMMIT and BAPI_TRANSACTION_ROLLBACK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-or-test-bapi-transaction-commit-and-bapi-transaction-rollback/m-p/5226476#M1208309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.. this will work.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the User selected &lt;STRONG&gt;Test or Simulation&lt;/STRONG&gt; from the selection screen check box  execute the BAPI &lt;STRONG&gt;BAPI_ALM_ORDER_MAINTAIN&lt;/STRONG&gt; so that you can validate the data.. then execute &lt;STRONG&gt;BAPI_TRANSACTION_ROLLBACK&lt;/STRONG&gt; so that the document is not commited.. the entire process is rolled back..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the &lt;STRONG&gt;Simulation or Test&lt;/STRONG&gt; is not checked from the selection screen then  execute the Bapi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BAPI_ALM_ORDER_MAINTAIN&lt;/STRONG&gt;  , check for errors in the RETURN internal table if none.. then execute&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BAPI_TRANSACTION_COMMIT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work.. i have done this in lot of objects.. to make sure the data is correct&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 19:55:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simulation-or-test-bapi-transaction-commit-and-bapi-transaction-rollback/m-p/5226476#M1208309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-19T19:55:32Z</dc:date>
    </item>
  </channel>
</rss>

