The function

RFC_HANDLE SAP_API RfcConnect(char * system_name,
char * ms_hostname,
char * group_name,
char * client,
char * user,
char * password,
char * language,
int trace,
RFC_HOSTNAME as_hostname,
int * sysnr);

opens an RFC connection via LOAD BALANCING.

With this function the RFC library will try to connect to an application server with the least load (LOAD BALANCING principle) within a group of predefined application servers.

This function is only available for R/3 Release 3.0 onwards.

Better use the call RfcOpenEx.

This function has the following advantages:

Information about the SAP gateway, application server, system number, etc. as parameters for RfcOpen or RfcOpenExt or as parameters in sideinfo are no longer necessary. Even the sideinfo is no longer required.

You ought to use RfcOpen or RfcOpenExtV3 with RFC_MODE, RFC_MODE_VERSION3 or RFC_MODE_PARAMETER instead of this function.

This function is defined in SAPRFC.H.

Return Value:

Function Parameters:

See also RfcOpen, RFC_OPTIONS, RfcOpenExtV3 and RFC_OPTIONS.