on 01-31-2012 5:46 AM
Hi
Can you pls let me know the difference between SUCCESS/ERROR/INFO messages that we generate in WDA
I tried searching help.sap.com as well but could not find
hema,
check in se24 about if_wd_message_manager
in above interface you will find methods related to error , information...
REPORT_SUCCESS
REPORT_WARNING
REPORT_ERROR_MESSAGE
REPORT_MESSAGE
Ex:
DATA lo_api_controller TYPE REF TO if_wd_controller.
DATA 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.
CALL METHOD lo_message_manager->report_error_message
EXPORTING
message_text = 'your msg...'
Regards
Srinivas
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hema,
1) report_success: report a success message on the webdynpro application
2) report_warining: report a warning message on the webdynpro application
3) report_error: report a error message on the webdynpro application
4) report_t100_message: reports a message from the t100 table.
5) clear_messages: clears the messages from the webdynpro application, however this will
happen automatically on the next event on the ui.
6) is_empty: checks for any messages already raised.
7) report_attribute_error_message: reports an error for the context attribute
And based on the message types we can validate the screen and do some actions..( like moving to next screen )
ex:
if message type is S, then we can go for next screen. something like that.
anything else u r looking apart from above?
Regards
Srinivas
Hi,
if you give a success message the action will be completed first and then the success message will be displayed.
whereas if you generate the error message the action will be terminated in between and the user will be shown an error message on screen.
This is the main difference between the two.
Regards,
sahai.s
Hi
>
> Does this mean that Success msg does NOT allow us to continue with other actions ( say if i click a button after the success msg is displayed) and Warning aloows that
warning message and success message will simply give you information, and the user will only be notified about the thing which went wrong, or thing which was successfull
whereas error message will terminate the program and any wrong action will be prevented from executing.
regards,
Sahai,S
Hi hema,
Depending on the actions performed by users you can generate different messages using GENERATE MESSAGE
in wizard of WDA.
The name of messages itself suggests its meaning.
When you generate a success message you get a green coloured icon which says the action is succesfully completed.
similarly for error message we get red coloured icon which tells that there is some error or problem occured.
and the Information shows any kind of information just to let the user know.
Commonly three of them shows the messages but with different icons.
And also you have different options like Scope of the message and can pass some parameters dynamically and
you can show it as popup etc...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.