You can open a message in the message class editor from the source code editor of any source-based objects such as classes, function modules, or ABAP programs.
In the source code editor, choose Ctrl + left mouse button or F3 on the corresponding message number.
The message class editor is opened and the number of the selected message is highlighted.