Skip to main content

MESSAGE Class Usage

IntermediateError Handling⏱ 15 min

Task

Display meaningful success or error messages using MESSAGE classes.

Write Your ABAP Code

ABAP Editor
Loading...
📥 Sample Input & Output
Success → Information message
Failure → Error message
💡 Hint

Use message types I, S, and Eappropriately.

✅ View Reference Solution
IF lv_success = abap_true.
  MESSAGE s001(zmsg).
ELSE.
  MESSAGE e002(zmsg).
ENDIF.