You use this method to replace a character string in the open office document
CALL METHOD wp->replace
EXPORTING replace_string = replace_string
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 | |
replace_string |
The character string that replaces the search 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 |