!--a11y-->
Creating a User Message 
To create a message, proceed as follows:
...
1.
In the Web Dynpro
Explorer, place the cursor on the
Message Pool subnode of the relevant Web
Dynpro component and start the edit mode by choosing
Open Message Editor in the context
menu.
2.
To create a
message, choose
Add Message.
Enter a name for the message key and select the message type using the
dropdown list box or the possible entries help (F4). The following message
types exist:
Standard, Warning, Error, Text
3. Enter the message text and choose OK to confirm.

You can edit
an existing message by choosing
Edit this Message –Open Editor Dialog.
When the messages are saved, the Web Dynpro Generator creates the interface IMessage<myWebDynproComponent>.java in the target directory for the generated Web Dynpro files; the default directory is <gen_wdp>. The interface class contains the keys of these messages as constants.
Additionally, the following two XML files are created in the <src> directory.
· <myWDComponent>MessagePool.wdmessagepool
¡ This file contains all messages of the Web Dynpro component as parameters.
· <myWDComponent>MessagePool.wdmessagepool_en.xlf
¡ S2X file that is relevant for translation. In this file, the messages are stored in a format readable for the SAP translation process and with additional information such as the maximum length of the message text.
In the Message
Editor, you can delete a message by choosing
Delete this
message.
