CallFunction Method
Calls a remote function located on the SAP system.
Syntax
[VB.NET] Public Sub CallFunction()
[C#] public void CallFunction();
Remarks
Before using the CallFunction method, you must first set the FunctionName property and call GetFunctionInfo to retrieve a list of the RequestParameters, ResponseParameters, and tables used by the remote function you wish to execute. Set any RequestParameters you wish to send, and then use the CallFunction method to execute the remote function.
If you do not call GetFunctionInfo before CallFunction, the component throws an exception
If you wish to ensure that the remote function is called only once, even if you retry the same transaction again (for example, if there was a timeout or connection error), set the TransactionMode to tmTransactional and retrieve a TransactionId with the CreateId method before using CallFunction