<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback/m-p/6846619#M1473883</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;Even if you use ROLL BACK, i think your number range wont be reverted. But can you give a try and see what happens?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 May 2010 18:07:33 GMT</pubDate>
    <dc:creator>vinod_vemuru2</dc:creator>
    <dc:date>2010-05-05T18:07:33Z</dc:date>
    <item>
      <title>BAPI_TRANSACTION_ROLLBACK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback/m-p/6846615#M1473879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SDN,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In mode test (without commit work): Is it necessary to perform BAPI_TRANSACTION_ROLLBACK, after calling the BAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case BAPI_ASSET_RETIREMENT_POST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in what circumstances?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even without commit, the number range FI_DOCUMNT was used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Maria João Rocha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 17:11:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback/m-p/6846615#M1473879</guid>
      <dc:creator>MariaJooRocha</dc:creator>
      <dc:date>2010-05-05T17:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_ROLLBACK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback/m-p/6846616#M1473880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The BAPI transaction model must afford the user explicit transaction control. Therefore, if several BAPIs are called together, the caller can decide him/herself when to execute a COMMIT WORK (or, as the case may be, a ROLLBACK WORK). This means that BAPIs themselves cannot (generally) execute a COMMIT WORK command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source: &lt;EM&gt;help.sap&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this link helps you to get answer to your question:&lt;/P&gt;&lt;P&gt;[BAPI_TRANSACTION_ROLLBACK|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3356668"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mishra.Manas on May 5, 2010 7:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 17:28:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback/m-p/6846616#M1473880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T17:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_ROLLBACK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback/m-p/6846617#M1473881</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 this case I have a program that calls BAPI_ASSET_RETIREMENT_POST, for each record in a file (excel).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is; as the BAPI_ASSET_RETIREMENT_POST has not the commit work inside, must be the program that class the bapi to execute the commit. So i put an option on the selection screen "test mode" and the program in this case calls the bapi BAPI_ASSET_RETIREMENT but doesn't commit, just whe the option "test mode" is not checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that several numbers int the number range FI_DOCUMNT are lost.&lt;/P&gt;&lt;P&gt;Must I execute BAPI_TRANSACTION_ROLLBACK, on this test mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maria João Rocha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 17:37:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback/m-p/6846617#M1473881</guid>
      <dc:creator>MariaJooRocha</dc:creator>
      <dc:date>2010-05-05T17:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_ROLLBACK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback/m-p/6846618#M1473882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; The problem is that several numbers int the number range FI_DOCUMNT are lost.&lt;/P&gt;&lt;P&gt;&amp;gt; Must I execute BAPI_TRANSACTION_ROLLBACK, on this test mode?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried it ? Is this not working ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this should answer your queries:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA v_num TYPE anln1.

CALL FUNCTION 'NUMBER_GET_NEXT'
  EXPORTING
    nr_range_nr             = `01`
    object                  = `ANLAGENNR`
    subobject               = `0001`
  IMPORTING
    number                  = v_num
  EXCEPTIONS
    interval_not_found      = 1
    number_range_not_intern = 2
    object_not_found        = 3
    quantity_is_0           = 4
    quantity_is_not_1       = 5
    interval_overflow       = 6
    buffer_overflow         = 7
    OTHERS                  = 8.
IF sy-subrc = 0.
  WRITE / v_num.
  CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on May 5, 2010 11:53 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 18:07:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback/m-p/6846618#M1473882</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-05-05T18:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_ROLLBACK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback/m-p/6846619#M1473883</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;Even if you use ROLL BACK, i think your number range wont be reverted. But can you give a try and see what happens?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 18:07:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback/m-p/6846619#M1473883</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-05-05T18:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_ROLLBACK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback/m-p/6846620#M1473884</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;Thanks for your replies.&lt;/P&gt;&lt;P&gt;I delivered the program for testing to our KUser on AM module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that BAPI_TRANSACTION_ROLLBACK results, because FI number range can not be lost; the numbering must be sequential.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the worst, I will cancel the test mod option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Maria João Rocha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 08:51:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback/m-p/6846620#M1473884</guid>
      <dc:creator>MariaJooRocha</dc:creator>
      <dc:date>2010-05-06T08:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_ROLLBACK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback/m-p/6846621#M1473885</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;It worked with BAPI_TRANSACTION_ROLLBACK - the number range is not used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case when "test mode" is used the number of the FI document is always the same. I think, problably when the bpi retuns warning this also prevent the namber usage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bapi documentation should refer this point, wich is very important on FI number range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Maria João Rocha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 13:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback/m-p/6846621#M1473885</guid>
      <dc:creator>MariaJooRocha</dc:creator>
      <dc:date>2010-05-06T13:38:25Z</dc:date>
    </item>
  </channel>
</rss>

