cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the message area ui element to handle the errors.

Former Member
0 Kudos

Hi All,

Can you put a light on how to message area UI element to handle the message in web dynpro.

Please provide any links which the information related to Message Area UI element.

Thanks in Advance,

Lalitkumar.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Try using the below code when you want to display the message.

DATA lo_api_controller     TYPE REF TO if_wd_controller.
  DATA lo_message_manager    TYPE REF TO if_wd_message_manager.

  lo_api_controller ?= wd_this->wd_get_api( ).

  CALL METHOD lo_api_controller->get_message_manager
    RECEIVING
      message_manager = lo_message_manager.

* report message
  CALL METHOD lo_message_manager->report_success
    EXPORTING
      message_text = 'Display your text here'.

Also check all the methods available in the interface if_wd_mesasge_manager and try using them.

Edited by: Vidhya Sakunthala on Jul 30, 2010 1:35 PM

Former Member
0 Kudos

Hello,

Message Area UI is used to display message in screen in a particular place of your choice as by Default message displayed on the top of the screen.

For details please refer to the link

http://help.sap.com/saphelp_nw70/helpdata/en/0f/e8884118aa1709e10000000a155106/frameset.htm

Regards

Pradeep