Skip to Content
avatar image
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 comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Nov 24, 2011 at 02:33 PM

    add a message area UI element to the screen

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

    Add comment
    10|10000 characters needed characters exceeded

  • 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 comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded