The function
int SAP_API RfcConnArgv3(char ** argv,
RFC_OPTIONS * rfc_opt,
RFC_CONNOPT_R3ONLY * connopt_r3only
RFC_CONNOPT_VERSION_3 connopt_version_3);
can be used to build up the structures
RFC_OPTIONS, RFC_CONNOPT_R3ONLY, RFC_CONNOPT_VERSION_3 or RFC_CONNOPT_CPIC from the command line.This function is defined in SAPRFC.H.
Return Value:
Function Parameter:
Command line to be parsed.
Option structure to be filled.
Option extension for R/3 connection (a valid pointer must be supplied all the time)
Option extension for a connection to an R/3 System of Release 3.0 or later (a valid pointer must be supplied all the time).
Comments:
The following tokens are recognized in the argv array, which must be terminated by a NULL entry:
name of the destination
client (sign on data)
user ID
password
language
R/3 mode
CPIC mode
turn trace on
name of the target host
system number of the target SAP System
gateway host (if not specified, the h option is used)
TCP/IP service of the gateway (default: sapgwNN, where NN is the system number (-s))
start ‘sapgui’ to be able to display SAP Dypros or Graphics (R/3 mode only)
start communication in debug mode (R/3 mode only).
All tokens that were interpreted by RfcConnArgv3 are removed from the argv array.
See also
RfcConnArgv.