Skip to content

ABAP Keyword Documentation →  ABAP - Quick Reference 

RAISE EXCEPTION - Quick reference

Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


RAISE [RESUMABLE] EXCEPTION 
  { { TYPE cx_class [MESSAGE tn(id)
                           | { ID mid TYPE mtype NUMBER num }
                             [WITH dobj1 ... dobj4]]
                    [EXPORTING p1 = a1 p2 = a2 ...] }
  | oref }.

Effect

Raises a class-based exception.

Additions

  • RESUMABLE
    Raises a resumable exception.
  • TYPE cx_class [EXPORTING p1 = a1 p2 = a2 ...]
    Specifies the exception class of the exception object.
  • MESSAGE
    Passes the specification of a message to the exception object.
  • EXPORTING p1 = a1 p2 = a2 ...
    Passes actual parameters a1, a2, ... to the input parameters p1, p2, ... of the instance constructor of the exception object.
  • oref
    Uses an existing exception object, pointed to by oref.