RFC_CONNOPT_R3ONLY 

This structure provides options for a connection to an R/3 System.

typedef struct {
char * hostname;
int sysnr;
char * gateway_host;
char * gateway_service;
} RFC_CONNOPT_R3ONLY;

This structure is defined in SAPRFC.H.

Members:

host name of target system

Host names can be regular host names defined in a ‘hosts’ file, an IP address like 123.123.123.123 or a saprouter address as /H/hostname/S/port/H/host/S/port/...

system number (0-99)

This is the number by which the target system is identified. In general, this is 0.

gateway hostname

If the pointer is NULL, the gateway is assumed to run at ‘hostname’.

gateway service

If the pointer is NULL, the service "sapgw##" with ## = ‘sysnr’ is assumed.