You use this method to activate the search function in the office document:
CALL METHOD wp->search
EXPORTING search_string = search_string
pos = pos
flag = flag
no_flush = no_flush
IMPORTING retcode = retcode
error = error.
Description of parameters
Parameter |
Optional |
Description |
search_string |
Searches for a character string | |
pos |
global: searches the entire text up: searches from the current position to the start of the document down: searches from the current position to the end of the document | |
flag |
‘ ‘: searches for character string word: searched for word exact: case-sensitive search |