SAP GUI handles the advanced search via the function code
"%_SEARCH xxx" where xxx is the current field value. Since the
InputScript is still active, this leads to a wrong GuiXT
reaction that closes the advanced search window.
If this Screen command is the last one in your InputScript, a
workaround is to use a dummy action
InputScript. If it is an intermediate screen, i.e. you want to
continue the InputScript after a user action, we currently have