on 05-26-2009 5:36 AM
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.
Thanks,
Selvakumar M.
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
receiving
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'.
endcase.
report message
call method l_message_manager->report_t100_message
exporting
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...
Thanks,
Mahesh.Gattu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check out the standard program WDR_TEST_MESSAGE_AREA and WDR_MESSAGE_AREA
I hope it helps.
Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.