The following function opens an RFC connection
RFC_HANDLE SAP_API RfcOpen(RFC_OPTIONS * options)
according to the given options and returns a handle for the connection established. The structureRFC_OPTIONS contains the data needed to open the connection:
char * destination;
void * connopt;
char * client;
char * user;
char * password;
char * language;
This function is defined in SAPRFC.H.
connection parameters as described at structure RFC_OPTIONS.
If you call RfcOpen with an invalid password, the function does not immediately fail. However, the subsequent call to RfcCall (or RfcCallReceive) will fail.