<?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: Process CALL TRANSACTION and then a BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/process-call-transaction-and-then-a-bapi/m-p/7619621#M1570192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I once had a similar requirement (although it was a matter of running a number of CALL TRANSACTIONs in a row with no BAPI call. If any transaction failed, then all the previous transactions had to be rolled back. There could be hudreds or thousands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way was to reverse (apply the changes in the opposite sense) the successful transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jan 2011 14:32:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-05T14:32:37Z</dc:date>
    <item>
      <title>Process CALL TRANSACTION and then a BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/process-call-transaction-and-then-a-bapi/m-p/7619619#M1570190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I wonder does anyone know a good solution about this. I have to run a CALL TRANSACTION (MR21 transaction) and right after the CALL TRANSACTION (if it was successful) a BAPI also.&lt;/P&gt;&lt;P&gt;However, if the BAPI fails, I have to rollback the modifications of the CALL TRANSACTION.&lt;/P&gt;&lt;P&gt;Will a ROLLBACK WORK solve this problem? I don't think, because MR21 transaction will post a COMMIT at the end.&lt;/P&gt;&lt;P&gt;Can it be rollbacked somehow?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 13:50:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/process-call-transaction-and-then-a-bapi/m-p/7619619#M1570190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-05T13:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Process CALL TRANSACTION and then a BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/process-call-transaction-and-then-a-bapi/m-p/7619620#M1570191</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;After call transaction there is no rollback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can do is record the transaction two manners.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One recording with save and other without save. Initially run the recording without save and then check if the return table has any messages after using call transaction. If it doesnot have any messages execute the recording with save and then the bapi. If it has  error donot execute the bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also instead of this call transaction you can search for available bapis which suits MR21 where yu will be having the option for test run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sorry misread your question.....Solution is search bapi for MR21. If both bapi doesnt have any error the commit&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_M_REVAL_CREATEPRICECHANGE - Try for MR21&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Keshav.T on Jan 5, 2011 7:45 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 14:13:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/process-call-transaction-and-then-a-bapi/m-p/7619620#M1570191</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-01-05T14:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Process CALL TRANSACTION and then a BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/process-call-transaction-and-then-a-bapi/m-p/7619621#M1570192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I once had a similar requirement (although it was a matter of running a number of CALL TRANSACTIONs in a row with no BAPI call. If any transaction failed, then all the previous transactions had to be rolled back. There could be hudreds or thousands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way was to reverse (apply the changes in the opposite sense) the successful transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 14:32:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/process-call-transaction-and-then-a-bapi/m-p/7619621#M1570192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-05T14:32:37Z</dc:date>
    </item>
  </channel>
</rss>

