Skip to Content
avatar image
Former Member

How to get filtered values from WD TABLE

Hi experts,

I have a requirement to export the data from the table to spread sheet.

I can able to export the data from the table, when I switch on the filter it has to export the filtered values to the excel.

How can I achieve this requirement ?

Please suggest.

Thanks in advance,

Giri

excel.JPG (70.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 31, 2015 at 01:25 PM

    Hi Giri,

    You can read the filtered table data by using method GET_TABLE_DATA( ) of method handler 😊

     

    DATA lt_data TYPE wdr_table_row_data_tab.

    "get filtered table data
    lt_data = wd_this->go_method_handler->get_table_data( ).

    To know more about filter in Table ui WDA : Filtering in table UI element | Team ABAP

    Hope this helps you.

    Regards,

    Rama

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 31, 2015 at 11:47 AM

    Hi,

    Refer one of my blog posts which will help you.

    Reading ALV Filter values in Webdynpro ABAP

    Thanks

    KH

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Harsha Jalakam

      Hi Harsha,

      Thanks for reply,

      Could you please let me know, where to get the filtered values to copy them to temp node. I'm using the standard interface method(IF_WD_TABLE_METHOD_HNDL-APPLY_FILTER) to filter the data.

      Regards,

      Giri