<?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 Rollback work after a Batch Input in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061093#M91905</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 need to rollback the changes made if there are errors occured during execution of two batch input programs in my calling program (using rollback work).&lt;/P&gt;&lt;P&gt;    Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Nov 2005 06:02:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-24T06:02:43Z</dc:date>
    <item>
      <title>Rollback work after a Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061093#M91905</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 need to rollback the changes made if there are errors occured during execution of two batch input programs in my calling program (using rollback work).&lt;/P&gt;&lt;P&gt;    Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 06:02:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061093#M91905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T06:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback work after a Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061094#M91906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you do batch input or bdc we cannot rollback but when got some errors it will not post the document. So you neednot rollback&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 06:04:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061094#M91906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T06:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback work after a Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061095#M91907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RollBack will be done automatically if any erros is there in case of Batch Input. you need not to do roll back explicitly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 06:42:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061095#M91907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T06:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback work after a Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061096#M91908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a look here: &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="856716"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 07:40:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061096#M91908</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-11-24T07:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback work after a Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061097#M91909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;actually our problem is like this, we have 2 BDC to call, say BDC1 and BDC2. If at least one failed, we should rollback changes made by both calls.&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;  call BDC1&lt;/P&gt;&lt;P&gt;  call BDC2&lt;/P&gt;&lt;P&gt;if the first call (BDC1) has no error, and the second call (BDC2) fails, then we want to rollback changes made by the first BDC (BDC1) call...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help us...&lt;/P&gt;&lt;P&gt;many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 07:52:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061097#M91909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T07:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback work after a Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061098#M91910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeffrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can achieve your requirement like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call BDC1.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0. " BDC1 successfull&lt;/P&gt;&lt;P&gt; Call BDC2.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 07:59:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061098#M91910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T07:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback work after a Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061099#M91911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;ROLLBACK will be done automatically for the records which contains error.So you dont need to do it manually..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 09:06:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061099#M91911</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2005-11-24T09:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback work after a Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061100#M91912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi raj,&lt;/P&gt;&lt;P&gt;your example is ok if BDC1 (first call) fails, but if the first call, BDC1, succeed and BDC2 fails, we need to rollback changes made by the first BDC (BDC1) call as well...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 09:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061100#M91912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T09:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback work after a Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061101#M91913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sid!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already feared, that this is your requirement. But this is not according the transaction logic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Per definition a transaction is the combination of tables, which have to be changed together to get a consistent status in DB.&lt;/P&gt;&lt;P&gt;A second transaction is independent - but can have a link as follow-on document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is OK to have step 1, but not step 2 in the system - e.g. a goods issue, but no goods receipt of receiving plant. The process is obviously not finished, but we have a consistent status.&lt;/P&gt;&lt;P&gt;If in this example the truck has an accident, then we can't just cancel the goods issue -&amp;gt; in general it's not possible to rollback some transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still it's possible to correct some faults, e.g. by creating storno documents, by deletion of created master data... But this is a separate step (with a different transaction / movement type / function code), not just a 'go-back' statement in a report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either you develope a correction 'just book step 2 after error'-report, or you have to add a 'cancel step 1'-function in case of step 2 failure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 10:32:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061101#M91913</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-11-24T10:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback work after a Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061102#M91914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't rollback after a commit, but you could put some logic in to do a reversal if the original BDC fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 16:33:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061102#M91914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T16:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback work after a Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061103#M91915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; You have call the second BDC by checking the return code of the First BDC and by reading the First BDC success message(This can be done with the help of the FM &amp;lt;b&amp;gt;FORMAT_MESSAGE&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;So After the First BDC got successfully executed only then call the Second BDC transaction .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; There is no concept of Rollback in BDC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 18:39:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061103#M91915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T18:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback work after a Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061104#M91916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Develop BDC3 to rollback BDC1 in case of BDC2 failure.&lt;/P&gt;&lt;P&gt;So you will have BDC1, BDC2 and BDC3. Check whether this works for your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anantha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 18:49:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061104#M91916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T18:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback work after a Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061105#M91917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A different approach would be to use BAPIs. Since they don't have a commit, but you need to code it yourself, you can simply not do the commit if there are errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2005 19:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rollback-work-after-a-batch-input/m-p/1061105#M91917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-25T19:43:34Z</dc:date>
    </item>
  </channel>
</rss>

