
The Message Manager (interface IF_WD_MESSAGE_MANAGER) is used to include messages in the message log of a component. The Message Manager is integrated in the Web Dynpro Code Wizard. The following methods are provided for triggering messages:
|
Method |
Description |
|---|---|
|
CLEAR_MESSAGES |
Deletes all messages |
|
IS_EMPTY |
Queries whether messages are available |
|
REPORT_ATTRIBUTE_ERROR_MESSAGE |
Reports a Web Dynpro exception for a context attribute |
|
REPORT_ATTRIBUTE_EXCEPTION |
Reports a Web Dynpro exception for a context attribute |
|
REPORT_ATTRIBUTE_T100_MESSAGE |
Reports a Web Dynpro exception for a context attribute |
|
REPORT_ERROR_MESSAGE |
Reports a Web Dynpro message with optional parameters |
|
REPORT_EXCEPTION |
Reports a Web Dynpro exception (may be returned) |
|
REPORT_FATAL_ERROR_MESSAGE |
Reports a fatal Web Dynpro message with optional parameters |
|
REPORT_FATAL_EXCEPTION |
Reports a fatal Web Dynpro exception |
|
REPORT_SUCCESS |
Reports a success message |
|
REPORT_T100_MESSAGE |
Reports a message using a T100 entry |
|
REPORT_WARNING |
Reports a warning |
The RAISE methods in the Message Manager are deprecated. For this reason you should not use them.
You can specify the name of the window or view where the message is to be displayed in the relevant methods using optional parameter VIEW.
Triggering a T100 Message:
* get message manager
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_T100_MESSAGE
exporting
MSGID ='BC'
MSGNO ='005'
MSGTY ='E'
* P1 =
* P2 =
* P3 =
* P4 =
* MSG_USER_DATA =
You can find more detailed information about the various methods in the interface and method documentation for the relevant objects in the system.