cancel
Showing results for 
Search instead for 
Did you mean: 

Success/error/info messages

former_member474221
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member199125
Active Contributor
0 Kudos

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

.

former_member474221
Participant
0 Kudos

hi srini

I understand how to generate these messages but i just want to understand the difference

former_member199125
Active Contributor
0 Kudos

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

former_member474221
Participant
0 Kudos

Hi

I want to understand the difference in functionlaity apart from the Icons...

For e.g error message probably does not allow navigation to the next view...whereas success message allows like that

sahai
Contributor
0 Kudos

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

former_member474221
Participant
0 Kudos

thanks srini

and what abt the warning message?

former_member199125
Active Contributor
0 Kudos

its similar to success, but provide warning message, allowed to continue with further action.

Regards

Srinivas

former_member474221
Participant
0 Kudos

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

sahai
Contributor
0 Kudos

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

former_member199125
Active Contributor
0 Kudos

Hema,

Sucess also allow with other action.

after warning you proceed further but you get reminded about the error. Functionality depends on how we write the logic.

And dont give the points unnecessarily , i dont think my replies are worthy .

Regards

Srinivas

Answers (1)

Answers (1)

Former Member
0 Kudos

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...