cancel
Showing results for 
Search instead for 
Did you mean: 

prevent that error messages are displayed twice

Former Member
0 Kudos

Hi All!

How can I prevent that error messages are displayed twice.

The FuBa is called at the backend more than one time (at least twice)

therefore I get every message twice.

Regards

sas

Accepted Solutions (1)

Accepted Solutions (1)

ThatSAPGuy
Advisor
Advisor
0 Kudos

Sas-

I'm not sure if I understood your problem. Are you saying that you have a service which you call in a loop, and display the error message in the loop as well? If so an option would be to have a [HashMap|http://java.sun.com/j2se/1.4.2/docs/api/java/util/HashMap.html] where the key is the error message id, and the value is the error message. In the loop check if the error message id returned by your service already exists in the map and add it only if absent. Then after your loop is complete use the MessageManager to display your consolidated error messages.

Cheers-

Atul

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi erdem,

Can you put a more detailed message so that it is helpful to answer.

Ashok