Configuration of Messages

You can configure howMessages are displayed at view or window level of your application. To do this, add the following source code to the method WDDOINIT:

Web Dynpro Component MYCOMP

data:

l_api_mycomp type ref to if_wd_window_controller,

l_wd_message_area type ref to if_wd_message_area.

l_api_mycomp ?= wd_this->wd_get_api( ).

l_wd_message_area = l_api_mycomp->get_message_area( ).

l_wd_message_area->set_display_attributes( i_for_all_instances = ' '

i_msg_lines_visible = '0'

i_use_toggle_area   = '  '

i_show_only_current = ' ' ).

Description of Settings

Setting Description

i_use_toggle_area = ' '

New design of the message area (default setting)

i_use_toggle_area = 'X'

Old design of the message area (with the toggle area)

i_msg_lines_visible = 0

All messages are immediately visible (default setting)

i_msg_lines_visible = <x>

x > 0. Only x messages are immediately visible; the rest become visible by scrolling.

i_show_only_current = 'X'

Together with i_use_toggle_area = ' ' this means that no message log can be displayed (default setting)

i_show_only_current = ' '

Together with i_use_toggle_area = ' ' this means that a link takes you to where the message log can be displayed