Single rfcconnect statements

Using a single rfcconnect statement.

If only a single server is to be the target, we can use a single rfcconnect command as shown in the following example:

rfcconnect = "ifdatabase=XXX,lang=E,client=100,ashost=system,sysnr=00,lcheck=0,use_sapgui=0";
rfcuser="user";
rfcpasswd="password";
    
Note: The rfcconnect statement is placed in the guixt.sjs file.

in the preceding example, the parameters are as follows:

ifdatabase
Defines the SAP database to which the user will be connecting.in our example, this is 'XXX'.
lang
Optional parameter that defines the default language. In our example, the language will be 'E' for English.
client
Defines the system number of the target SAP application server.
ashost
Defines the name of the target server. In our example, the name is 'system'.
sysnr
Defines the system number of the target server. In our example, the system number is '00'.
lcheck
This parameter is optional. It defines whether or not a logon check will be performed. In our example, the value is defined as '1', meaning that a logon check will be performed.
use_sapgui
Optional parameter. It defines if SAP GUI will or will not be used. In our example, the value is set to '0', meaning that SAP GUI will not be used.
user

Defines the SAP user name of the person who will be connecting.

Note: Beginning with release 1.2.157.0, the rfcconnect statement will no longer require the username and password - these must be placed in the 'rfcuser' and 'rfcpassword' statements in the guixt.sjs file.
passwd

Defines the password used by the person who will be connecting. in our example, it is in unencrypted format.

Note: Beginning with release 1.2.157.0, the rfcconnect statement will no longer require the username and password - these must be placed in the 'rfcuser' and 'rfcpassword' statements in the guixt.sjs file.