2010 Aug 25 4:09 PM
Hi everyone,
I am trying to use this method to generate a warning message but somehow it's not working. can you please tell me what I am doing wrong.
data: abap_true type abap_bool value 'X'.
CALL METHOD lo_api_controller->get_message_manager
RECEIVING
message_manager = lo_message_manager.
CALL METHOD lo_message_manager->REPORT_WARNING
EXPORTING
SHOW_AS_POPUP = abap_true
message_text = 'You are leaving the current screen''.
Thank You
Rajeev
2010 Aug 25 7:28 PM
Hi Rajeev,
You can try this way.
data: l_message_manager type ref to if_wd_message_manager.
l_message_manager = l_current_controller->get_message_manager( ).
call method l_message_manager->report_warning
exporting
message_text = i_message_text
show_as_popup = i_show_as_popup. " Flag need check
Thanks
Subhankar
Hi everyone,
I am trying to use this method to generate a warning message but somehow it's not working. can you please tell me what I am doing wrong.
data: abap_true type abap_bool value 'X'.
CALL METHOD lo_api_controller->get_message_manager
RECEIVING
message_manager = lo_message_manager.
CALL METHOD lo_message_manager->REPORT_WARNING
EXPORTING
SHOW_AS_POPUP = abap_true
message_text = 'You are leaving the current screen''.
Thank You
Rajeev
2010 Aug 25 4:17 PM
Wow ... I thought we could raise Warning messages using MESSAGE TYPE 'W'. Jokes apart, what is the reference object for lo_api_controller ?
If this is a custom object you need to provide the method implementation details as well.
2010 Aug 25 6:22 PM
it's declared like this:
DATA lo_api_controller TYPE REF TO if_wd_controller.
2010 Aug 25 7:28 PM
Hi Rajeev,
You can try this way.
data: l_message_manager type ref to if_wd_message_manager.
l_message_manager = l_current_controller->get_message_manager( ).
call method l_message_manager->report_warning
exporting
message_text = i_message_text
show_as_popup = i_show_as_popup. " Flag need check
Thanks
Subhankar
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |