Connecting through a Logon Control 
The following code shows how to set a Connection object directly through the Logon control.
Code |
Comment |
Set LogonOCX = CreateObject ( " SAP.LogonControl " ) |
Creates a Logon control. |
Set fns.Connection = LogonOCX.NewConnection |
Creates a new Connection object and sets it in the Functions collection object. |
Set fns.Connection.User = " Csmith " |
Provides logon information to the R/3 System. |
... |
|
fns.Connection.Logon (0,True) |
Silent logon. |