Skip to Content
avatar image
Former Member

Refresh WD ALV if no record found

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.

Error.JPG (59.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 24, 2014 at 08:15 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 24, 2014 at 09:24 AM

    Hi,

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

    Thanks

    KH

    Add comment
    10|10000 characters needed characters exceeded