cancel
Showing results for 
Search instead for 
Did you mean: 

Clear Message Area in Web Dynpro for ABAP

Former Member
0 Kudos

Hello Web dynpro experts.

I have a message area in a view, and filled with some error messages that are assessed from WDDOINIT method in the component controller.

I need to leave only the last error message, and clean up the history of the message area. How should I perform this task?

Thank you very much.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Carlos

Use the method Get_messages which will returns you all the messages and then use the method Remove_message with which you can remove individual messages from the message area.Both methods are there in the IF_WD_MESSAGE_MANAGER

Regards

Naresh

Former Member
0 Kudos

Hello,

You can use the method GET_MESSAGES to get the last message and CLEAR_MESSAGES to clear all messages from interface IF_WD_MESSAGE_MANAGER.

More help [http://help.sap.com/saphelp_nw04s/helpdata/en/6c/7aae42cd7fb611e10000000a155106/frameset.htm].

Regards,