cancel
Showing results for 
Search instead for 
Did you mean: 

Message display

selvakumar_mohan
Active Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member188831
Contributor
0 Kudos

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

Answers (1)

Answers (1)

former_member40425
Contributor
0 Kudos

Hi,

Check out the standard program WDR_TEST_MESSAGE_AREA and WDR_MESSAGE_AREA

I hope it helps.

Regards,

Rohit