cancel
Showing results for 
Search instead for 
Did you mean: 

Refresh WD ALV if no record found

Former Member
0 Kudos

Hi,

I have created web dynpro application to display time entry detail of resources.

This report is work working fine if it founds records for the selection.

The issue is when it doesn't found records for selection criteria this application displaying error message

but it is showing records of previous search.

So How can I refresh WD ALV if no records found for selection.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

On click on search button check if no records found for search criteria show error message and invalidate the node.

Thanks

KH

harsha_jalakam
Active Contributor
0 Kudos

Hi Anshul,

While displaying the error message, just invalidate the table node so that, it doesn't show up the old records.

data:

   lo_node      type ref to if_wd_context_node.

lo_node  = wd_context->get_child_node( name = wd_this->wdctx_node_name ).

lo_node->invalidate( ).

Regards,

Harsha