OpenConnection 

BOOL OpenConnection (LPCTSTR HostName, LPCTSTR SystemNumber,
BOOL RunFront, BOOL RunMerlin)

Parameters

HostName

Name of SAP system host; may be TCP/IP network identifier.

SystemNumber

SAP system number.

RunFront

TRUE to run FRONT.EXE and see the SAP GUI; FALSE to hide the SAP GUI.

RunMerlin

TRUE to run an SAP Automation GUI session; FALSE otherwise.

Return Value

Returns TRUE on success, FALSE on error.

Comments

Retained for compatibility with older version of SAP Automation GUI. Use the Connect method instead.