OpenConnection Method
Opens a connection to the SAP system.
Syntax
void __fastcall OpenConnection();Remarks
Connection fields are specified in the SapConnection property .
At the very least, you must supply the SapConnectionClient, SapConnectionHost, SapConnectionUser, and SapConnectionPassword to connect to and authenticate with a server. If SapConnectionType is set to ctSOAP then you need to supply the SapConnectionSoapURL as well.
Note that it is not necessary to call OpenConnection while using SOAP, however if you do, the component will call the function RFC_PING to determine if the SOAP service specified in SapConnectionSoapURL is available.