RFC_CONNOPT_VERSION_3

This structure provides a connection to an SAP system.

typedef struct {
   char * hostname;
   RFC_INT sysnr;
   RFC_INT use_load_balancing;
   char * lb_host
   char * lb_system_name;
   char *lb_group;
   RFC_INT use_sapgui;
} RFC_CONNOPT_VERSION_3;

SAP systems always have their own ‘gateway’ processes, no gateway options are necessary.

This structure is defined in SAPRFC.H.

Members:

·        hostname

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/...

If ‘use_load_balancing’ is set to a non-zero value, this field can be NULL.

·        sysnr

system number (0-99)

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

If ‘use_load_balancing’ is set to a non-zero value, this field is ignored.

·        use_load_balancing

Use the load balancing features of an SAP System.

If you set this to a non-zero value, ‘hostname’ and ‘sysnr’ are ignored.

You must set the fields ‘lb_host’ and ‘lb_system_name’ instead.

The target system is then determined dynamically.

lb_host

Host name where the ‘message server’ of the target system is running.

This field must only be filled if ‘use_load’balancing’ is set to a non-zero value

·        lb_system_name

name of the target system (e.g. C11)

This field must only be filled if ‘use_load_balancing’ is set to a non-zero value.

·        lb_group

application server group

The group of application servers to be used.

This field must only be filled if ‘use_load_balancing’ is set to a non-zero value.

·        use_sapgui

use ‘sapgui’ processes to display SAP dynpros and graphics.

Set this to a non-zero value to activate this functionality.

Starting sapgui takes some time, so you should not set that value if you do not need it.

This field is set automatically as soon as you activate the ABAP debugger by entering ‘d’ in the trace field or by setting RFC_DEBUG in the system environment.