Free text search in a field in a internal table

FUNCTION SEARCH_TEXT_IN_TABLE


Inputparametre:

Returparametre:

field-symbols: <f>
data: txt(500) type c.

assign (FIELDNAME) to <f>.
clear RESULT_INDEX.
translate SEARCH to upper case.
loop at TABLE.
move <f> to txt.
translate txt to upper case.
if <f> cs SEARCH.
move <f> to RESULT.
move sy-tabix to RESULT_INDEX.
exit.
endif.
endloop

Converted from CHM to HTML with chm2web Standard 2.7 (unicode)