Start of Content Area

Procedure documentation Creating a User Message  Locate the document in its SAP Library structure

Procedure

To create a message, proceed as follows:

...

       1.      In the Web Dynpro Explorer, place the cursor on the This graphic is explained in the accompanying textMessage Pool subnode of the relevant Web Dynpro component and start the edit mode by choosing This graphic is explained in the accompanying textOpen Message Editor in the context menu.

       2.      To create a message, choose This graphic is explained in the accompanying textAdd 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.

Note

You can edit an existing message by choosing This graphic is explained in the accompanying textEdit this Message –Open Editor Dialog.

Result

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.

Deleting a User Message

In the Message Editor, you can delete a message by choosing This graphic is explained in the accompanying textDelete this message.

 

End of Content Area