
In Web Dynpro for ABAP, you can create and display messages that contain important information for the end user of the Web Dynpro application. Messages are language-dependent texts that are displayed on the screen if, for example, an error occurs when an application is run or the user enters data in the wrong format.
We recommend that you restrict the number of messages to a manageable amount. If there are too many messages it overburdens the end user.
Only issue messages for subjects to do with the current user interaction , for example validation errors. Do not use messages to issue a general log.
For SAP_UI 7.50 SP1 a new design, NOTIFICATION_ICON, has been implemented for the message area. It is automatically activated when the active UI guideline (WDUIGUIDLINE) is FIORI and no other design has been explicitly set in the application. For more information about NOTIFICATION_ICON, see Design NOTIFICATION ICON for the FIORI Guideline.
Example messages in the WDR_TEST_MSG_AREA application.

Example application for user input checks WDR_TEST_INPUT.

For programming these user messages (information, error messages, and warnings), the Web Dynpro runtime of the application server ABAP provides a runtime service. The message component is part of every Web Dynpro application and can be configured if required in the settings for a Web Dynpro application. There are two settings for handling messages:
If messages exist, they are displayed.
Even if there are no messages, the message component is still displayed in the top view.
User messages are displayed as links in the status bar. The user can then use the link to navigate to the UI element that can be used to remove the error reported in an error message. The input focus is thus transferred automatically, thereby significantly increasing the efficiency of the messages. It is also possible to display multiple messages on the screen in a table.
You can assign specific views and windows to messages so that messages that actually belong to the main window, for instance, are not displayed in a popup. To do this, you can use the optional VIEW parameter in the message manager methods to specify the name of the relevant view or window.
To improve how your application displays messages, check whether or not it might be useful to include a message in a view or window in certain places, rather than displaying it in a popup. If you use read-only popups, it may also be useful to suppress the entire message display.
Messages are defined at the level of a Web Dynpro component.
See also:
Reusable Components and the Message Area
If required, you can specify that the message area is displayed with a new visualization in the application. The new visualization has the following advantages:
To use the new visualization, use IF_WD_MESSAGE_AREA=>SET_DISPLAY_ATTRIBUTES. You can find more information in the relevant method documentation in the system. You can find an example in the system in component WDR_TEST_MSG_AREA.
The message display in a popup works on demand in the standard configuration, regardless of what is set in the component. Popups can still be configured using an indicator so that they behave as follows:

For application development, the MessageArea UI element is provided for positioning the message display on the screen.
Note that the propertiesmaxVisibleMessages and historyVisible are not evaluated in View Designer, they can only be used by the program.
The procedure for integrating messages into your application can be found in Integrating Messages.
You can find example applications in the system in the WDR_TEST_MSG_AREA WDR_TEST_MSG_AREA and WDR_TEST_INPUT components.