Hi,
please insert two green code lines into your code:
if p_name1 is not initial.
r_name-sign = 'I'.
r_name-option = 'EQ'.
if p_name1 ca '*'.
r_name-option = 'CP'.
endif.
r_name-low = p_name1.
translate r_name-low to upper case.
append r_name.
endif.
...
w_final-name1 = w_kna1-name1.
translate w_final-name1 to upper case.
append w_final to t_final.
This will give you the right data selection. If you neen the original value of name1, then you need an additional fiield in table w_final:
w_final-name1 = w_kna1-name1.
w_final-name1uc = w_kna1-name1.
translate w_final-name1uc to upper case.
append w_final to t_final.
and you have to change the DELETE from
delete t_final where name1 not in r_name.
to
delete t_final where name1uc not in r_name.
Regards,
Klaus