set_focus
You use this method to give the desktop application the focus.
CALL METHOD control->set_focus EXPORTING no_flush = no_flush IMPORTING retcode = retcode error = error.