on 04-25-2014 1:37 PM
Dear Gurus,
How to get the table with no. of records after filter in webdynpro?
Thanks in advance.
Sankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.