on 07-09-2009 6:17 AM
Hi Experts ,
I have implemented the filter method on my normal table (not an alv) through the below code:
In WDDOMODIFY,
IF ( first_time = abap_true ).
wd_table ?= view->get_element( 'Name of the table UI element' ).
wd_this->m_table_handler ?= wd_table->_method_handler.
wd_this->m_table_handler->set_key_attribute_name( 'Any key field name bound (not column name)' ).
ENDIF.
METHOD onactionfilter .
wd_this->m_table_handler->apply_filter( ).
ENDMETHOD.
However it is surprising to see that the standard method provided by SAP does not find string searches i.e if i enter vendor to find vendor 1 or pattern searches i.e if i enter* Ven* to find Vendor and it only works when we give the entire word.
Could someone please tell me if this is standard behaviour and if there is a better way to handle filter for normal tables in webdynpro.
Thanks In Advance,
Chaitanya.
hi,
check out this link :
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/2d/390e422dfcde2ce10000000a1550b0/content.htm
it contains info about the method that you are using
hope this will surely help you !!!!
Thanks & Regards,
Punit Raval.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Chaitanya,
use replace statement to replace * with % bcoz internally % means *
REPLACE ALL OCCURRENCES OF '*' IN lv_carrid WITH '%' .
This will surely work.
Regards
Sajid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the info., would like to confirm weather string searches and pattern searches are possible through the above said method automatically or should we write custom code to handle them.
Many Thanks ,
Chaitanya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.