Use this method to close an ActiveX document that you created using Visual Basic.
CALL METHOD document->close_activex_document EXPORTING no_flush = no_flush IMPORTING error = error retcode = retcode.