Skip to Content

Message display

Hi All,

I have a requirement to display the message generated by a method in an internal table, in the message area.

Can some body tell a best way to do the same.


Selvakumar M.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on May 26, 2009 at 05:24 AM

    Hi Selva,

    you can use get message manager as follows...

    • get message manager

    data: l_current_controller type ref to if_wd_controller,

    l_message_manager type ref to if_wd_message_manager,

    lv_type type syst-msgty.

    l_current_controller ?= wd_this->wd_get_api( ).

    call method l_current_controller->get_message_manager


    message_manager = l_message_manager.

    case item_type.

    when 0.

    lv_type = 'I'.

    when 1.

    lv_type = 'W'.

    when 2 or 3.

    lv_type = 'E'.


    • report message

    call method l_message_manager->report_t100_message


    msgid = item_message_type

    msgno = item_message_number

    msgty = lv_type

    p1 = item_msg_v1

    p2 = item_msg_v2

    p3 = item_msg_v3

    p4 = item_msg_v4.

    but i hope your message are in interntal table by using loop get them into *v1,v2,v3,v4 variables then use above code.

    hope it works.

    all the best...



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 26, 2009 at 04:40 AM


    Check out the standard program WDR_TEST_MESSAGE_AREA and WDR_MESSAGE_AREA

    I hope it helps.



    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.