Hi Aakash,
We can use property "the max visible messages" of message area.
For dynamic coding, you can use SET_MAX_VISIBLE_MESSAGES of class CL_WD_MESSAGE_AREA.
But I don't think we have any other choice to meet your requirement.
Note: Unfortunately, Its not working in my system but you may check in your system if it works.
Work around solution:
- Get all messages from message area by using method GET_MESSAGES of interface IF_WD_MESSAGE_MANAGER
- Clear all messages from message area by using method CLEAR_MESSAGES
- Now, we can display these messages in a table as rows and we can restrict the no. of visible rows of a table accordingly.
Hope this helps you.
Regards,
Rama