You use the Message Editor to create and edit messages that you want to display on the screen. You can also use the Message Editor to declaratively create texts in the SAP NetWeaver Developer Studio that are only to be displayed at runtime. Use the message type Text for this. The messages are created with wizard support provided by the Web Dynpro tools from the SAP NetWeaver Developer Studio. You can change, add, or delete messages, the type of which is either Standard, Error, Warning, or Text. At runtime, you can access the messages using the IWDMessageManager interface.
The creation and editing of messages is linked to a Web Dynpro component - that is, the messages are defined at Web Dynpro component level.
Error messages can be displayed using:
· Non-validating action event handlers
· Action event handlers
Error messages must not be displayed using:
· Inbound plugs
· The doModifyView method
You can define more than one message, even in the case of program errors. If more than one message is output, the messages are displayed in a table, otherwise they appear in the status bar. The messages are displayed as links. The end user can use this link to navigate to the user interface element, from where he can correct the error. All messages are reset before an action event handler or a non-validating action event handler is processed.
For information on how define messages, see: