Connection Object 

The Function control uses a Connection object to connect to the R/3 System. Only one Connection object can be associated with a Functions collection. You must log on with the Connection before any new Function objects can be requested.

You can create the Connection object through the Functions collection, or you can acquire it from a Logon control. The Logon control provides a Connection object through its NewConnection method.

Connection objects can be shared by multiple Function controls. Every Connection object continues to exist as long as there is any control that refers to it.

The following code examples illustrate two ways to create Connection objects:

To create functions and call them in an R/3 System, you first have to establish a connection. (Function definitions are retrieved from the R/3 System.)