Skip to Content
author's profile photo Former Member
Former Member

How to display an error Message in Web Dynpro

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Nov 24, 2011 at 02:33 PM

    add a message area UI element to the screen

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 24, 2011 at 04:23 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2011 at 04:51 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2011 at 03:38 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.