Using the SAP Logon Control 

The SAP Logon control handles the remote access to an R/3 System. To access R/3, your program must do the following:

  1. Obtain a Logon object.
  2. Get this object by calling CreateObject( " SAP.Logoncontrol " ) or by inserting a Logon control directly into a form from a toolbar.

  3. Obtain a Connection Object object.
  4. Get a Connection object by using the Logon object’s Logon Method: NewConnection method or by handling a Click Event.

  5. Call the Connection object’s Logon method.

The Logon method tries to establish the connection immediately and returns TRUE if successful, otherwise FALSE. In the latter case, the IsConnected property provides detailed information about the source of the failure.

 

The following topics are available:

Logon Object

Connection Object

 

Using Logon Controls in Design Mode

Code Examples

Connecting Directly with the Logon Control

Logging on Silently