cancel
Showing results for 
Search instead for 
Did you mean: 

Reference to the message manager

former_member474221
Participant
0 Kudos

I have create a public attribute in the comp controller GR_MESS_MAN type if_wd_window_manager...

then in the WDDOINIT of comp controller i have written the following code to store the ref of the message manager in the attribute declared above-

DATA: lr_current_controller TYPE REF TO if_wd_controller.

lr_current_controller ?= wd_this->wd_get_api( ).

  • get message manager

wd_this->gr_mess_man = lr_current_controller->get_message_manager( ).

However i get an error that lr_current_controller->get_message_manager( ) cannot be convertible to gr_mess_man

Edited by: hema T on Jan 26, 2012 9:41 AM

Accepted Solutions (1)

Accepted Solutions (1)

former_member199125
Active Contributor
0 Kudos

check this.

lo_api_controller ?= wd_this->wd_get_api( ).

CALL METHOD lo_api_controller->get_message_manager

RECEIVING

message_manager = gr_mess_manr.

regards

Srinivas

former_member474221
Participant
0 Kudos

no it does not wrk...now it says GR_MESS_MAN not known

former_member199125
Active Contributor
0 Kudos

srry initially i didn't check ur post.

You have to create an attribute of type IF_WD_MESSAGE_MANAGER , not if_wd_window_manager

so, now change the attirbute type.

Regards

srinivas

Lukas_Weigelt
Active Contributor
0 Kudos

above poster already solved this but I still wanted to smarty-pants-like add wd_this was missing, that's why it was 'unknown' 😛

check this.

lo_api_controller ?= wd_this->wd_get_api( ).

CALL METHOD lo_api_controller->get_message_manager

RECEIVING

message_manager = wd_this->gr_mess_manr.

regards

Srinivas

Answers (0)