AbortConnection Method
Used to terminate a connection to the SAP system.
Syntax
void __fastcall AbortConnection(String ErrorMessage);Remarks
This method is used to gracefully terminate connection with the SAP system. If the ErrorMessage contains a value the component will raise an error on the SAP system immediately prior to disconnecting.
An error message cannot be sent if the SAP server is not in a state where it expects to receive some RFC data.
Do not use this method to terminate a connection unless there is an error condition. For normal disconnects use the CloseConnection method instead.