Skip to Content
Author's profile photo Stefan Foerster

How to investigate the runtime error „MESSAGE_TYPE_X“ in SAP TM; sub-post 1

This is the first sub-post of a series, which outlines how to investigate a particular example/pattern of system dump caused by a programmming error.

I start with a “Simple but not obvious error in a custom enhancement” and it can be detected by following the exception chain backwards.

Read first the introduction and general information in the main-post.

As described in the main-post, the information you get from the system dump in ST22 does not help you to identify the root cause, hence you like to debug. Prerequisite is certainly that you can reproduce the system dump. Otherwise exit here and try to gather more details from ST22 according to the guidance given in the main-post.


Set an external breakpoint  in the method from where the dump is triggered. (a)

Or in simple cases (like here) you could set a breakpoint also one callstack-level before, where the method set_application_error is called (b).

Rerun the users example. The debugger comes up.





Here you see that the framework catched an exception that was not handled before.

Open the exception object of concern by doubleclick.

(could be any exception in any other code place too)





For any exception object doubleclick thepreviousvalue as often as possibleuntil there is no previous exception.




For the “initial” exception of this chain, click on the /wp-content/uploads/2014/02/page11_exception_384024.png  link, which opens a new section on the bottom to show the code from where this exception was raised.


From the opened code section, you can (unfortunately) not see its call stack or any variable values. You need to set a breakpoint, save it and rerun the example.




(save this breakpoint and it will become an external breakpoint)

When rerunning the example, then you can finally debug the code of the method from where the original exception was triggered. Here certainly it is simple…



All posts of this series:

General info and steps in the main-post.


  1. Simple but not obvious error in a custom enhancement
  2. Custom enhancement calls BOPF methods incorrectly
  3. Custom enhencement calls incompletely configured BOPF action


Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Fidèle Mutabazi
      Fidèle Mutabazi