‎2008 Feb 05 12:31 PM
Hi,
I would like to know how to incorporate a fuzzy search in a field.
For example... if an user enters TEST* in a selection screen field p_var , I should display all the records which has the p_var starting with TEST..... if the user enters TEST than I should display all the records contains the string TEST
Thanks,
Suresh
‎2008 Feb 05 12:43 PM
‎2008 Feb 05 12:43 PM
‎2008 Feb 05 1:03 PM
try this,
if p_var CA '*' .
split p_var at '*' into var1 var2.
concatenate 'var1' '%' into var1.
condense var1.
select <fields> from <DB> where
<field> like var1.
else.
concatenate '%' 'var1' '%' into var1.
condense var1.
select <fields> from <DB> where
<field> like var1.
endif.
"<var1> and <var2> are string type variables