Runtime errors identify situations in which the system cannot continue running an ABAP program and has to terminate it. Runtime errors can occur in one of the following situations when ABAP programs are executed:
- Unhandled exceptions
- When a handleable exception is not handled.
- An unhandleable exception is raised.
- An exit message is sent.
- An assertion fails.
Each runtime error is identified by a name and assigned to a specific error situation. Each runtime error results in a database rollback. Following a program termination caused by a runtime error, the system displays a short dump which indicates the name of the runtime error, the associated exception class, contents of data objects, active calls, control structures, and so on, and allows the user to navigate directly to the ABAP Debugger. Short dumps are retained in the system for 14 days and managed using the ABAP dump analysis (transaction ST22). You can change the output of the short dump in the profile parameter rdisp/verbose_level if you have special requirements.
If you want to implement a program-controlled termination of a program in situations where it is not a good idea for the program to continue, then we recommend that you use assertions from now on and avoid using exit messages.