on 12-02-2010 4:48 PM
Hello,
I have one (maybe simple) question:
I have a web dynpro with a view and on this view a table, which is filled with a data from a function module.
Now - if this does not contain any data, a very "ugly" errormessage occurs. Something like "i - This Table contains no data".
I just want to know, if this error can be changed?
Thank you so much,
Lisa
Hi,
Other than two options suggested, you can even handle message using Generate emssage in code wizard.
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
.
report message
CALL METHOD lo_message_manager->report_message
EXPORTING
message_text = 'Table empty'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Table UI elements has a property named as Empty Table Text, set this property with the message you want to display when table is empty. The message will be displayed inside table control.
Additionaly you can also set the property Display Empty Rows to be set to False.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.