Hi Gurus,
Messages in my web dynpro application are not getting displayed.
I used an if condition so that if any of the condition is not satisfied will display the message,for the first condition message is getting triggered and for the next conditions its not displaying any messages.
i am using raise_error_message for message handling.
I want simple message to be thrown just like normal ABAP. Here is the code below.
* get message manager
DATA:lo_api_controller TYPE REF TO if_wd_controller,
lo_message_manager TYPE REF TO if_wd_message_manager.
lo_api_controller ?= wd_this->wd_get_api( ).
CALL METHOD lo_api_controller->get_message_manager
RECEIVING
message_manager = lo_message_manager.
IF ( iv_parvw = 'AG').
REFRESH wd_this->gt_partners.
lv_msg = wd_assist->if_wd_component_assistance~get_text( key = '003' ).
"report message
CALL METHOD lo_message_manager->raise_error_message
EXPORTING
message_text = lv_msg.
ELSEIF ( iv_parvw = 'AP' ).
CLEAR lv_msg.
lv_msg = wd_assist->if_wd_component_assistance~get_text( key = '005' ).
"report message
CALL METHOD lo_message_manager->raise_error_message
EXPORTING
message_text = lv_msg.
ENDIF.