It_NewConnection 

Use

Connects to the SAP application server.

Returns a connection handle, which you then use in most subsequent It_* function calls.

Syntax

HANDLE DLEX It_NewConnection (const char *host,
const char *systemno, long flgs);

Parameters

host

This is the host name of the application server. This can also be a net ID.

systemno

System number of the application server to connect to

flags

Flags to control the connection operation. (The same flags are used in all of the connection functions.)

Return Value

Returns the handle to an SAP Automation GUI session if successful, otherwise returns FALSE.

Example

// Opens a connection to the D22 application server.
FLGS = 0; // connect to R3 without invoking SapGui.
hMerlin = It_NewConnection ("apd2105", "22", FLGS);

See Also

It_Login, It_Logoff, It_NewGroupConnection, It_NewServerConnection