cancel
Showing results for 
Search instead for 
Did you mean: 

Message handling in Web Dynpro ABAP

Former Member
0 Kudos

Hi,

I'm working on a Web Dynpro ABAP and I have a method that performs various steps.

This method performs various checks on all the elements of a table.

If some of these checks fails, I'd like to show the user one message per fail (via message manager).

What is the smartest way to generate, hold and show the messages to the user? An internal  BAPIRET table?

If you could provide me with some examples, I'll be glad.

Thanks.

Pietro.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Pietro,

Yes, you can display multiple messages to the user but I am not sure if thats the best approach.

I would suggest you to display a error message and stop further processing and checking for errors until the error is corrected. This way you can link the error to the particular field and the user can understand the error better.

Just a suggestion.

-Manish

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If you have multiple error messages, then loop on internal table and issue each message one by one by changing the text of error message.

The last message will appear on the top. if you want to sequence, you will have to manage. Use any method of message manager to show the error message.

Hope this helps.

useful links

http://scn.sap.com/thread/3150319

Ajay