on 01-26-2012 8:12 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.