Additional Blogs by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
raja_g
Participant
0 Kudos
Can I get the right business partner even though I enter the search only phonetically right? If a Business partner lives in New York and I enter New Yark, can I see the business parter in the result list? The answer to the above questions is ‘Yes’ if Fuzzy search is enabled in ICWC.    h5. Note:- The prerequisite for enabling fuzzy search in ICWC is that BP search should be based on TREX. Fuzzy search can be performed only on complete search and not on pattern based search     The following simple example talks about fuzzy search on fields containing information about Name. Similarly fuzzy search can also be enabled for other fields.    Step 1:  Create a new class ZCL_BUIL_HEADER  inheriting the standard class CL_BUIL_HEADER .    Step 2:  In IMG, add the new class as implementation class for BP          Step 3:  Create a new function group ZCRM  and add the following code in the TOP include    * global types TYPES: BEGIN OF ty_tables,          field TYPE trexd_attr_name,          tab   TYPE trext_doc_attributes,        END OF ty_tables.  TYPES: ty_tables_t TYPE STANDARD TABLE OF ty_tables.  TYPES: ty_bp_result_t TYPE STANDARD TABLE of bus020_search_result.  * constants CONSTANTS: gc_pattern  TYPE char2 VALUE 'CP'. CONSTANTS: gc_equal    TYPE char2 VALUE 'EQ'.  DATA: gr_bp TYPE REF TO cl_trex_bp. DATA: gr_cp TYPE REF TO cl_trex_bp.     Step 4:  In the Main program of the function group add the following includes LCRM_BUPA_TREX_SEARCHF02  and LCRM_BUPA_TREX_SEARCHF01 .   
4 Comments