Connecting to Servers

Using rfcconnect to connect to a SAP application or message server.

Connecting to Application Servers

if you want to connect directly to a SAP application server, the rfcconnect statement would look like the example below:

rfcconnect = [ "ifdatabase=XXX,lang=E,client=100,ashost=system1,sysnr=00,lcheck=0,use_sapgui=0 ];
rfcuser="rfc_userName";
rfcpasswd="rfc_Password";
		

Connecting to Message Servers

If you want to conenct to a message server, the string would look like the following example:

rfcconnect=[
	"ifdatabase=XXX,mshost=message_server,r3name=sap_SYSTEM_NAME, group=group_name, lang=E, client=000, sysnr=00, lchec=0, use_sapgui=0 ] ;
rfcuser="rfc_userName";
rfcpasswd="rfc_Password";