Skip to Content

How to get the table with no. of records after filter in webdynpro

Dear Gurus,

How to get the table with no. of records after filter in webdynpro?

Thanks in advance.

Sankar

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Apr 26, 2014 at 10:02 AM

    Hello Sankar,

    Please explain your requirement clearly so that we can help you easily.

    To get the table records from your context node use method get_static_attributes_table()

    data lo_nd_mynode       type ref to if_wd_context_node. 

    data lt_atrributes_table  type wd_this->elements_mynode. 

    lo_nd_mynode = wd_context->get_child_node( name = wd_this->wdctx_mynode ). 

    lo_nd_mynode->get_static_attributes_table( importing table = lt_atrributes_table ). 


    Note: You should have already defined your context node as a Dictionary Structure.


    BR,

    RAM

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 26, 2014 at 02:33 PM

    Hi Sankar,

    If you need to know no.of records after performing filter functionality.

    Implement the code in the WDDOMODIFYVIEW( ).

    Data: lo_nd_filter type ref to if_wd_context_node,

             lv_count    type          I.

    lo_nd_filter = wd_context->get_child_node( 'FILTER' ). " FILTER is the name of the node

    lv_count = lo_nd_filter->get_element_count( ).

    Now set the count value to the attribute using SET_ATTRIBUTE( ).

    2. Incase if you need to read the records of the node

    Data: lt_filters type wd_this->elements_filter.

    lo_nd_filter->get_static_attributes_table( importing static_attributes_table = lt_filters ).

    Thanks & Regards,

    Sankar Gelivi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 27, 2014 at 03:21 AM

    Hi Sankar,

    Refer this link which might help you : Reading filter values.

    Thanks

    Katrice

    Add comment
    10|10000 characters needed characters exceeded