Show TOC

SAPLogOffLocate this document in the navigation structure

You can use this API method to disconnect a workbook from the server or to trigger a restart to the system.

To call the method, use Application.Run and specify the following input parameters:

  • Boolean Parameter for restarting a system
    This parameter is optional. You can enter the following values:
    • True: With this value, the system will be restarted.

    • False: With this value, the system will not be restarted.

The system returns one of the following output parameters for each command execution:
  • 0 = execution failed.
  • 1 = execution successful.

Example

Dim lResult As Long

lResult= Application.Run("SAPLogOff", True )

If you you execute this command, the workbook connection to the system is restarted.