RequestVRFCLogonParameter

This function provides the logon parameters which were used to establish the connection hAppl, hLid to the SAP R/3. The function fills all buffers with the according values, if they are big enough. The allocation of the buffer has to be done by the calling application.

Function Prototype:

BOOL RequestVRFCLogonParameter(VRFCService_HANDLE hAppl,
VRFCLoginID hLID,
char SAP_FAR* destination,

int destinationlength,
char SAP_FAR* hostname,

int hostnamelength,
int *sysnr,
char SAP_FAR* gateway_host,
int ghostlen,
char SAP_FAR* gateway_service,
int gservicelen,
char SAP_FAR* client,
int clientlength,
char SAP_FAR* user,
int userlength,
char SAP_FAR* password,
int passwordlength,
char SAP_FAR* language,

int languagelen,
int *trace,
RFC_MODE *mode);

Parameter Description

Type

Parameter Name

Description

BOOL

return value

TRUE if connection was found, otherwise FALSE

VRFCService_HANDLE

hAppl

Application identifier

VRFCLoginID

hLID

Connection identifier

LPSTR

destination

R/3 System name buffer

int

destinationlength

R/3 System name buffer length

LPSTR

hostname

R/3 Application server name buffer

int

hostnamelength

R/3 Application server name buffer length

int *

systemnumber

R/3 System number

LPSTR

gateway_host

R/3 Gateway host buffer

int

ghostlength

R/3 Gateway host buffer length

LPSTR

gateway_service

R/3 Gateway service buffer

int

g_servicelength

R/3 Gateway service buffer length

LPSTR

client

R/3 client name buffer

int

clientlength

R/3 client name buffer length

LPSTR

user

R/3 user name, optional

int

userlength

R/3 user name buffer length

LPSTR

password

R/3 password

int

passwordlength

R/3 password name buffer length

LPSTR

language

R/3 language

int

languagelength

R/3 language buffer length

int *

trace

Debugging information, optional

RFC_MODE *

mode

Connect mode, optional