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

How to Display message in next line rather then horizontal within fixed width size in Web dynpro

Hi experts,

I have developed a web dynpro application. I have also declare a message area. Its working fine. But when the message appears on the screen it comes with sliding scrolls. This sliding scrolls is not of browser but this sliding scrolls is of Message area.

I want to display mesaage vertically down as I don't have horizontal space in device . Please see the screen shot then it will be easier to understand.

I have set WIDTH 200px . I can't increase the width as with space is limited in hardware device.

I want that message should appears on next line within the limited width ???

The property what I had set please have a look

Width I can not Increase due to limited with of device. but message should display on next line.

Please help me out . Its urgent.

message.JPG (26.9 kB)
msg_property.JPG (28.3 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 07, 2014 at 08:39 AM

    Hi Bhagat,

    I don't think we can avoid this scroll bar if we do not have sufficient width for the message.

    Unfortunately, we don't have message wrapping functionality in message manager.

    I suggest you 2 options

    • You can split the message into multiple lines and report them collectively as you do for other messages
    • You can go for displaying messages in Menu, please refer the below document

    Display messages in menu - Web dynpro ABAP

    Hope this helps you.

    Regards,

    Rama

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Bhagat,

      What ever you have done looks good. but we cannot avaoid icon display in message manager.

      I would like to suggest you a work around solution to your problem. i.e. Do not report your messages in message manager but you prepare a table with messages you require and display

      Please follow below steps:

      • Create a context node MSG with attribute ICON & MESSAGE both of type string as show below

      • Create a table ui element binding to the context node MSG.Choose IMAGE as editor for column ICON & TEXT_VIEW for MESSAGE
      • Set the table ui properties as below

      • Prepare the messages and bind it to the context node MSG as below

      DATA lo_nd_msg TYPE REF TO if_wd_context_node.
      DATA lt_msg TYPE wd_this->elements_msg.
      DATA ls_msg LIKE LINE OF lt_msg.

      * navigate from <CONTEXT> to <MSG> via lead selection
      lo_nd_msg = wd_context->get_child_node( name = wd_this->wdctx_msg ).

      "Prepare message
      REFRESH lt_msg.

      CLEAR ls_msg.
      ls_msg-icon = '~Icon/ErrorMessage'.
      ls_msg-message = 'PleaseEnter RO No in valid format'.
      APPEND ls_msg TO lt_msg.
      CLEAR ls_msg.
      ls_msg-message = 'or enter LPNo For Check In'.
      APPEND ls_msg TO lt_msg.
      CLEAR ls_msg.
      ls_msg-message = 'or Enter rdtst for Test'.
      APPEND ls_msg TO lt_msg.

      CLEAR ls_msg.
      ls_msg-icon = '~Icon/ErrorMessage'.
      ls_msg-message = 'Message2 -'.


      APPEND ls_msg TO lt_msg.

      lo_nd_msg->bind_table(
      new_items = lt_msg
      set_initial_elements = abap_true ).

      • Here is the out put 😊

      Note: Hide the table ui element if no messages available. ie. bind the visible property to a context attribute and set the attribute value as required 😊

      Hope this helps you.

      Regards,

      Rama

      1.PNG (32.4 kB)
      2.PNG (94.7 kB)
      3.PNG (25.3 kB)

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.