on 02-03-2012 5:43 AM
Guys need help in using Message UI element . The scenario is i am using select options where i give range and click execute . The results from the DB table are displayed in the ALV.
If the Query did not find the values in the DB table , i should get a message in the Message UI element saying range not found.
Help Needed.
then you can raise the message at your SELECT statement for checking sy-subrc ne 0 and raise the message and return.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi karthik,
Using the code wizard select generate message and give the methods from IF_WD_MESSAGE_MANAGER
For ex: generate REPORT_ERROR_MESSAGE method and pass some message into the MESSAGE parameter.
And as you have MESSAGE UI element in your layout, the message will be displayed in that element.
Then you go to the code wizard and Check the methods and selct it.
or just follow the below example...
* get message manager
DATA lo_api_controller TYPE REF TO if_wd_controller.
DATA lo_message_manager TYPE REF TO if_wd_message_manager.
DATA lv_text TYPE string.
lo_api_controller ?= wd_this->wd_get_api( ).
lo_message_manager = lo_api_controller->get_message_manager( ).
lv_text = 'ERROR MESSAGE'.
lo_message_manager->report_message( lv_text ).
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.