cancel
Showing results for 
Search instead for 
Did you mean: 

How to display an error Message in Web Dynpro

Former Member
0 Kudos

Hello,

I want to display an error message in Web Dynpro. I'm using this,

IWDMessageManager message = wdComponentAPI.getMessageManager();

message.reportSuccess("<some relevant debug message>");

However, the message is always shown at the bottom of the screen. It is possible to select the location in the screen for showing this object? Or what is the best way for doing this? I've tried to use a Label but I can't set the type (warning, error, info) it's only a message.

Thanks

Regards

SU

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

You can make use of message pool to display messages inside message area UI element. In message pool, you have different options like 'standard', 'warning', 'error','text' etc.. Please let me know if this helps you.

Thanks

Shifa

Former Member
0 Kudos

Hi,

If you include the UI, it will display at the top of the screen..

Please see below how to create a message in the message editor.

http://help.sap.com/saphelp_nw04/helpdata/en/72/1d6526263ff24995016a152705eab2/frameset.htm

and this is how you access the error message in the application ti display it to the end user

http://help.sap.com/saphelp_nw04/helpdata/en/72/1d6526263ff24995016a152705eab2/frameset.htm

Regards,

Ganesh N

Former Member
0 Kudos

Hello Ganesh,

Thanks for your response. You put the same link twice. I saw that it refers to the 2004s version, I'm in CE 7.2 SP06. It still the same functionallity? Also as I've said I'm using the WD UI inside a BPM Task so all my messages are appearing in the top of the screen of the task.

Regards

SU

Former Member
0 Kudos

Hi,

Sorry for sharing the same link

Here goes the right one

http://help.sap.com/saphelp_nw04/helpdata/en/ec/1415b06e76584ca6b92fe565206fed/frameset.htm

Message Manager hasnt undergone any change with EP Version

I believe irrespective of wherever the UI is placed, the message appears at the top. This is what I have observed so far till EP 7.

Regards,

Ganesh N

Former Member
0 Kudos

Hello Ganesh,

You'r right, my misktake. The name of the thread should be "How to display an error Message in Web Dynpro in an Especific Location inside a BPM Task".

Regards

SU

anand_govardhan
Active Participant
0 Kudos

Hi,

The UI elements linked to the error message can be also highlighted by using reportContextAttributeMessage.

Refer this document: [A Simple Input Form with Message and Error Service Support|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/837d9290-0201-0010-1381-e633fe17cb14]

Regards,

Anand G

junwu
Active Contributor
0 Kudos

add a message area UI element to the screen

message.reportException("") should serve your purpose.

Former Member
0 Kudos

Hello John,

I've tried your solution and it's not working in my case, I think is because I'm using the WD UI inside a BPM Task. When I try to display the message it is showing al the top of the screen, I assume the BPM tasks has embedded all the messages in the top.

Thanks & Regards

SU

Former Member
0 Kudos

I've tried to use a Caption (because in my case, it only shows error messages) with an error icon. However the Visible property doesn't hide the icon, only the text.... sad.

Regards

SU

junwu
Active Contributor
0 Kudos

within my knowledge, you have to use dynamic UI generation for your requirement.