<?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: Type 'E' Message Catching in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-e-message-catching/m-p/1588112#M264967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it depends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But not really. You can enter debug mode and set a break at command message - this will probably stop a couple of times at messages you are not interested in. &lt;/P&gt;&lt;P&gt;More efficient is to identify the message, go to the message class and message and do a where-used-list. Usually you can identify the program. Set soft breaks at the suspicious code and provole the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helpd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Sep 2006 17:48:14 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2006-09-21T17:48:14Z</dc:date>
    <item>
      <title>Type 'E' Message Catching</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-e-message-catching/m-p/1588110#M264965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I call an SAP function and it calls subsequent SAP function modules.  A few levels into the calls, one of the SAP function modules issues an 'E' level message which dumps back to my main screen with the message at the bottom.  This all startes inside a custom handler method for an SAP custom container with a tree control in it.  When the user clicks anywhere on the screen the program exits back to the main menu.  Is there any way I can catch the type "E" message that is explicitly issued inside the SAP function module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 17:32:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-e-message-catching/m-p/1588110#M264965</guid>
      <dc:creator>thomas_lambert</dc:creator>
      <dc:date>2006-09-21T17:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Type 'E' Message Catching</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-e-message-catching/m-p/1588111#M264966</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;Try to use &amp;lt;b&amp;gt;ERROR_MESSAGE&amp;lt;/b&amp;gt;, from SAP help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This exception instructs the system to ignore S messages, I messages and W messages until return from the function module (although they still appear in the log during background processing). When an E message or an A message occurs, the called function module terminates, as if the exception ERROR_MESSAGE has been triggered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you should call your fm in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION &amp;lt;FUNCTION&amp;gt;&lt;/P&gt;&lt;P&gt;  .................&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;     ..............&lt;/P&gt;&lt;P&gt;     ERROR_MESSAGE   = ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 17:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-e-message-catching/m-p/1588111#M264966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T17:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Type 'E' Message Catching</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-e-message-catching/m-p/1588112#M264967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it depends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But not really. You can enter debug mode and set a break at command message - this will probably stop a couple of times at messages you are not interested in. &lt;/P&gt;&lt;P&gt;More efficient is to identify the message, go to the message class and message and do a where-used-list. Usually you can identify the program. Set soft breaks at the suspicious code and provole the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helpd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 17:48:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-e-message-catching/m-p/1588112#M264967</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-09-21T17:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Type 'E' Message Catching</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-e-message-catching/m-p/1588113#M264968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is how I am calling it, sorry I did not post the code earlier(see below).  I think the problem is that the L_TO_PASS_DN is being run as a separate unit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'L_TO_CANCEL'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;     I_LGNUM                            = I_LGNUM&lt;/P&gt;&lt;P&gt;     I_TANUM                            = I_TANUM&lt;/P&gt;&lt;P&gt;     I_SOLEX                            = I_solex&lt;/P&gt;&lt;P&gt;     I_CANCL                            = i_cancl&lt;/P&gt;&lt;P&gt;     I_SUBST                            = I_SUBST&lt;/P&gt;&lt;P&gt;     I_QNAME                            = SY-UNAME&lt;/P&gt;&lt;P&gt;     I_UPDATE_TASK                      = I_UPDATE_TASK&lt;/P&gt;&lt;P&gt;     I_COMMIT_WORK                      = I_COMMIT_WORK&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      T_LTAP_CANCL                      = T_LTAP_CANCL&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     TO_CONFIRMED                       = 1&lt;/P&gt;&lt;P&gt;     TO_DOESNT_EXIST                    = 2&lt;/P&gt;&lt;P&gt;     ITEM_CONFIRMED                     = 3&lt;/P&gt;&lt;P&gt;     ITEM_DOESNT_EXIST                  = 4&lt;/P&gt;&lt;P&gt;     FOREIGN_LOCK                       = 5&lt;/P&gt;&lt;P&gt;     DOUBLE_LINES                       = 6&lt;/P&gt;&lt;P&gt;     NOTHING_TO_DO                      = 7&lt;/P&gt;&lt;P&gt;     XFELD_WRONG                        = 8&lt;/P&gt;&lt;P&gt;     SU_MOVEMENT_PARTLY_CONFIRMED       = 9&lt;/P&gt;&lt;P&gt;     UPDATE_WITHOUT_COMMIT              = 10&lt;/P&gt;&lt;P&gt;     NO_AUTHORITY                       = 11&lt;/P&gt;&lt;P&gt;     ERROR_MESSAGE                      = 98&lt;/P&gt;&lt;P&gt;     OTHERS                             = 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Being called as qRFC&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'L_TO_PASS_DN' IN BACKGROUND TASK&lt;/P&gt;&lt;P&gt;         AS SEPARATE UNIT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 17:49:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-e-message-catching/m-p/1588113#M264968</guid>
      <dc:creator>thomas_lambert</dc:creator>
      <dc:date>2006-09-21T17:49:47Z</dc:date>
    </item>
  </channel>
</rss>

