Components of the Session Object
Note
A session object inherits all generated attributes (connection and context parameters) and standard methods from ISAPConnector Interface. They contain the same attributes and standard methods as business objects.Supplementary Methods:
Logon(pErrInfo As String)
Call the logon method to establish a connection to the R/3 System. If logon is
successful, the call returns boolean 1, otherwise 0.
To display error information, use parameter <pErrInfo>.
If you do not call this logon method, the connection to the R/3 System is established with
the first BAPI call.
CreateInstance(ProgID As String, [InterfID As String])
This method creates an instance of the business object within the session. You specify the generated object as <ProgID>. In addition, you can specify a particular interface to the object. The object is then accessed via this interface. Without this option, the object is accessed via the standard interface ISAP<business object> of the generated business object.