<?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: PERFORM ... ON ROLLBACK in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-rollback/m-p/1322042#M165666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;messages type A and X automatically perform roll back&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 May 2006 04:42:22 GMT</pubDate>
    <dc:creator>hymavathi_oruganti</dc:creator>
    <dc:date>2006-05-18T04:42:22Z</dc:date>
    <item>
      <title>PERFORM ... ON ROLLBACK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-rollback/m-p/1322040#M165664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have some code in an user exit at the end of TO creation.  I also write there some Application Log Messages. But when i throw an A Message in this user exit the Applog is empty after the transaction because the A Mesages causes an rollback. I had the idea to solve this with an perform on commit routine but this form routine is never been executed. Has anyone an idea what i have done wrong with this statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Steffen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 18:33:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-rollback/m-p/1322040#M165664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T18:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: PERFORM ... ON ROLLBACK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-rollback/m-p/1322041#M165665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;If i remind correctly then the PERFORM ... ON ROLLBACK is not executed by any implicid ROLLBACK but only by an explicid ROLLBACK WORK command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can try is the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ROLLBACK WORK,&lt;/P&gt;&lt;P&gt;MESSAGE A.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Means - do an explicid rollback befor your A or E Message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That may help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regqards&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some points would be fine if that helped a bit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 04:39:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-rollback/m-p/1322041#M165665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T04:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: PERFORM ... ON ROLLBACK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-rollback/m-p/1322042#M165666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;messages type A and X automatically perform roll back&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 04:42:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-rollback/m-p/1322042#M165666</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-05-18T04:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: PERFORM ... ON ROLLBACK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-rollback/m-p/1322043#M165667</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've just checked it...&lt;/P&gt;&lt;P&gt;PERFORM on COMMIT is not regularly done by a A or X Type message... It's only beeing executed if the massage is "catched" - see help text as follows...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you catch a type A message (MESSAGE) using the EXCEPTIONS..ERROR_MESSAGE addition in the CALL FUNCTION statement, a ROLLBACK WORK occurs, in which the subroutines registered using PERFORM ... ON ROLLBACK are executed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 04:55:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-rollback/m-p/1322043#M165667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T04:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: PERFORM ... ON ROLLBACK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-rollback/m-p/1322044#M165668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rainer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the bad thing is, that this user exit runs in an update task/background booking mode, so that i can't explicit use the rollback work statement, i tried this and the program dumps.&lt;/P&gt;&lt;P&gt;the next bad thing is, that this user exit runs in a standard SAP transaction ( LT03 ) so i can't catch the messages with the exception ERROR_MESSAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Steffen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Steffen Engert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 06:43:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-rollback/m-p/1322044#M165668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T06:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: PERFORM ... ON ROLLBACK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-rollback/m-p/1322045#M165669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved the problem in another way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i write all my Application Log Messages with a function module that i call with fuction destination 'NONE'&lt;/P&gt;&lt;P&gt;so all the Application Log Handling is in a seperate program context.&lt;/P&gt;&lt;P&gt;after the A-Messages is thrown in the user exit and the rollback is performed, the Application Log is on the database anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here a short sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create Applog ( in an own RFC able function module as wrapper for BAL_LOG_CREATE &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'Z_BAL_LOG_CREATE' destination 'NONE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_s_log                       = s_log_hdr&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      E_LOG_HANDLE                  = log_handle&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      MISSING_LOG_HEADER            = 1&lt;/P&gt;&lt;P&gt;      LOG_HEADER_INCONSISTENT       = 2&lt;/P&gt;&lt;P&gt;      ERROR                         = 3&lt;/P&gt;&lt;P&gt;      OTHERS                        = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add Message to Applog ( in an own RFC able function module as wrapper for BAL_LOG_MSG_ADD &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'Z_BAL_MSG_ADD' destination 'NONE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_log_handle              = log_handle&lt;/P&gt;&lt;P&gt;      i_s_msg                   = s_bal_msg&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      MISSING_LOG_HANDLE        = 1&lt;/P&gt;&lt;P&gt;      MISSING_LOG_MESSAGE       = 2&lt;/P&gt;&lt;P&gt;      LOG_NOT_FOUND             = 3&lt;/P&gt;&lt;P&gt;      MSG_INCONSISTENT          = 4&lt;/P&gt;&lt;P&gt;      LOG_IS_FULL               = 5&lt;/P&gt;&lt;P&gt;      ERROR                     = 6&lt;/P&gt;&lt;P&gt;      OTHERS                    = 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save Applog to database( in an own RFC able function module as wrapper for BAL_DB_SAVE &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'Z_BAL_DB_SAVE_SINGLE' destination 'NONE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_log_handle             = log_handle&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      MISSING_LOG_HANDLE       = 1&lt;/P&gt;&lt;P&gt;      LOG_NOT_FOUND            = 2&lt;/P&gt;&lt;P&gt;      SAVE_NOT_ALLOWED         = 3&lt;/P&gt;&lt;P&gt;      NUMBERING_ERROR          = 4&lt;/P&gt;&lt;P&gt;      ERROR                    = 5&lt;/P&gt;&lt;P&gt;      OTHERS                   = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;throw A-MESSAGE:&lt;/P&gt;&lt;P&gt;message axxx(yyy).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the transaction performs a rollback but the applog is written to database anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards steffen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Steffen Engert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 08:18:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-rollback/m-p/1322045#M165669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T08:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: PERFORM ... ON ROLLBACK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-rollback/m-p/1322046#M165670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm suppose your solution does not work or some comments are missing. Where is the commit called for BAL_DB_SAVE? If you call it in 'Z_BAL_DB_SAVE_SINGLE', commit concerns all database interactions, so rollback will set nothing back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 11:18:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-on-rollback/m-p/1322046#M165670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T11:18:28Z</dc:date>
    </item>
  </channel>
</rss>

