cancel
Showing results for 
Search instead for 
Did you mean: 

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

sankar_roy
Participant
0 Kudos

Dear Gurus,

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

Thanks in advance.

Sankar

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Sankar,

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

Thanks

Katrice

former_member222068
Active Participant
0 Kudos

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

former_member197475
Active Contributor
0 Kudos

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

sravanthi_polu
Contributor
0 Kudos

Hi,

If your intension is to get the records based on the input given by the user,if so please go through the below link

SAPTechnical.COM - Using Select-Options in Web Dynpro for ABAP

Regards,

Sravanthi