Defining User Messages
You want to display a message for the user on the screen, which will inform the user that an error has occurred, for example. If several messages are to be displayed, these will not be shown in the status bar, but in a table. With the Message Editor you can create, change and delete messages. You can create a user message of the following available types:
● Success
● Warning
● Error
● Text
● Info
The initial component has been created and is displayed in the Web Dynpro Explorer view.
...
1. In the Web Dynpro Explorer, choose context menu entry Open Message Editor from the Message Pool component subnode.
2. Choose Add Message, and make the required entries such as any string for the message key.
3. For message type Text you can choose whether or not the message needs to be translated. You perform this step in the edit mode for the message.
4. Furthermore, the context menu on a created message provides functions for the message such as copying, or editing the message.
Interface IMessage<WDComponent>.java in the target folder contains the keys of the defined messages as constants.