Call the remote function using:
RFC_RC SAP_API RfcCallExt(RFC_HANDLE handle,
RFC_PARAM_SPACE PSpace,
char * function);
The parameter PSpace is a pointer to the stack area where parameters have been stored.
The function RfcCallExt returns after sending the call request, and returns either RFC_OK or RFC_FAILURE.
RfcCallExt can fail because you called RfcOpenExt with an invalid password. See