cancel
Showing results for 
Search instead for 
Did you mean: 

Can a message area be made dynamic in SRM Portal ?

Former Member
0 Kudos

Hi Gurus,

In the standard SRM portal for any document (Eg Shopping cart), if any error occurs, it comes in a message area. The problem is suppose there are 10 errors, its displaying all the 10 errors line by line...bcoz of which the area for the header and item details is minimized.

What I need is , is there any way where in we can keep this message area as dynamic, so that out of 10 error messages only 4 are displayed on the screen with the scroll bar to scroll the rest of the errors.


Thanks,

AkkI

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

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

Former Member
0 Kudos

HI Ram,

Thanks for the reply, but this is a standard SRM Portal, so I guess we will be needing enhancements for the same.

Regards,
AkkI

Answers (0)