on 03-04-2008 1:42 PM
Gudday,
I need to display information message,'saved successfully' in my WDA after successfully saving it in the database for a new entry.It is not a pop-up, just message.
Can anyone suggest me how can i do this??
Thanks,
Deepthi.
Hi,
Write this code under your condition,
DATA: L_CURRENT_CONTROLLER TYPE REF TO IF_WD_CONTROLLER,
L_MESSAGE_MANAGER TYPE REF TO IF_WD_MESSAGE_MANAGER.
L_CURRENT_CONTROLLER ?= WD_THIS->WD_GET_API( ).
CALL METHOD L_CURRENT_CONTROLLER->GET_MESSAGE_MANAGER
RECEIVING
MESSAGE_MANAGER = L_MESSAGE_MANAGER.
* Report message
CALL METHOD L_MESSAGE_MANAGER->REPORT_SUCCESS
EXPORTING
MESSAGE_TEXT = 'Sucessfully Completed'.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
better to use wizard then select message manager and click F4 then you can choose option Report_success click on OK you can get the code.
regards-Naresh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
See Viji's post
Hi Deepthi,
Use the Message Manager to report a succes message.
Regards,
Roelofdata:
l_current_controller type ref to if_wd_controller,
l_message_manager type ref to if_wd_message_manager.
l_current_controller ?= wd_this->wd_get_api( ).
call method l_current_controller->get_message_manager
receiving
message_manager = l_message_manager.
CALL METHOD l_message_manager->report_success
EXPORTING
message_text = 'saved successfully'.
Edited by: Roelof Albers on Mar 4, 2008 2:56 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.