Setting the Connection Implicitly 

The following code shows how to set a Connection object implicitly from inside the Functions collection.

Code

Comment

Set Conn = RfcObj.Connection

Gets the Connection object using the Connection method of the Functions collection.

Conn.User = " CPIC "

Assigns a user name.

Conn.Password = " test "

Assigns a password.

...

 

Conn.Logon(0,False)

Opens the connection.