Say i have an internal table I_tab of type
TYPES : BEGIN OF x_tab,
str1 TYPE char20,
END OF x_tab.
the contents of i_tab is 20A111,20ABC11
I have a string STR = 20ABCDE.Now match each line of I_TAB with string STR and find the row which matches most wth STR.Here we will get the answer as row number 2.
Also note that the order in which the charecters are present in the string should be same as STR.
If there is a line of I_TAB having 20111a then the number of charecters mathed = 2 and not 3.