cancel
Showing results for 
Search instead for 
Did you mean: 

Filter method on a Normal table

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (2)

Answers (2)

shaik_sajid
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.