Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Program Flow Logic →  Exception Handling →  Runtime Error →  RAISE SHORTDUMP 

RAISE SHORTDUMP - message

Quick Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


... { MESSAGE tn(id) 
            | { ID mid TYPE mtype NUMBER num }
              [WITH dobj1 ... dobj4] }
  | { USING MESSAGE } ...

Effect

The addition MESSAGE of the statement RAISE SHORTDUMP and of the addition THROW SHORTDUMP in a conditional expression passes a message, if specified, to the exception object. Syntax and semantics are the same as in the addition MESSAGE of the statement RAISE EXCEPTION.


Note

The addition MESSAGE cannot be specified after the variant RAISE SHORTDUMP oref.


Example

Raises a runtime error with an exception object of the exception class CX_DEMO_DYN_T100, which includes the interface IF_T100_DYN_MSG. The addition MESSAGE is used to pass the attributes of a message that determines the exception text.

RAISE SHORTDUMP TYPE cx_demo_dyn_t100 
  MESSAGE ID 'SABAPDEMOS' 
          TYPE 'I' 
          NUMBER '888' 
          WITH 'I' 'need' 'a' 'break!'.

Example

Raises a runtime error with an exception object of the exception class CX_DEMO_T100, which includes the interface IF_T100_MESSAGE. The additions MESSAGE and EXPORTING are used to pass the attributes of a message that determines the exception text.

RAISE SHORTDUMP TYPE cx_demo_t100 
                MESSAGE ID 'SABAPDEMOS' 
                        NUMBER '888' 
                EXPORTING text1 = 'I' 
                          text2 = 'need' 
                          text3 = 'a' 
                          text4 = 'break!'.

Example

Raises a runtime error with an exception object of the exception class CX_DEMO_DYN_T100, which includes the interface IF_T100_DYN_MSG. The addition USING MESSAGE is used to pass the attributes of a previously sent message that determines the exception text.

MESSAGE ID 'SABAPDEMOS' 
        TYPE 'S' 
        NUMBER '888' 
        WITH 'I' 'need' 'a' 'break!'. 

RAISE SHORTDUMP TYPE cx_demo_dyn_t100 
                USING MESSAGE.