cancel
Showing results for 
Search instead for 
Did you mean: 

Table on Web Dynpro with no data: Error message

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

jayanthi_jayaraman
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

I took the "emptyTableText"-Version and it works great! THANKS a lot!

LISA

Former Member
0 Kudos

Hi,

I took the "emptyTableText"-Version and it works great! THANKS a lot!

LISA