Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Program Flow Logic 

Exception Handling

Exceptions are events in the execution of an ABAP program that interrupt the program when it is not possible for the program to continue in a meaningful way. Exception handling enables a response to be made to these events.

Exception situations can be recognized either by the program or by the runtime environment. When an exception situation is recognized, either the ABAP program or the runtime environment raises an exception. Exceptions in the ABAP runtime environment are generally caused by error situations that cannot be predicted by the static program check.

Exceptions are either handleable or non-handleable.

  • Handleable exceptions are class-based. They are predefined in the system, or custom exceptions can be defined. They are raised either by the ABAP runtime environment or in an ABAP program using
They can be handled using TRY - CATCH - ENDTRY. As well as these, non-class-based exceptions and (obsolete) catchable runtime errors also exist.
  • Non-handleable exceptions are raised only by the ABAP runtime environment. They are a response to error situations that cannot generally be handled meaningfully in a program.

Non-handled exceptions (all non-handleable exceptions and all handleable exceptions not caught in the program) produce a runtime error, which means that the program is terminated with a short dump.

Other versions: 7.31 | 7.40 | 7.54


Class-Based Exceptions

Exceptions Before Class-Based Exceptions

Exceptions in ABAP Statements

Runtime Error