Click or drag to resize

MPInterfacebInitInterface Method (String, Int32, String, String, String)

Initialization of the interface with connectivity to the HANA Appliance of the MARIProject and the SBO schemas. The SBO database are indirectly linked via the MPSysConnections table in the MARIProject schema.

Namespace:  MARIInterface
Assembly:  MARIInterface (in MARIInterface.dll) Version: 8.0.0.100
Syntax
public bool bInitInterface(
	string sHANAServerOrIP,
	int lHANAPortNumber,
	string sMARIProjectSchemaName,
	string sHANAUser,
	string sHANAPWD
)

Parameters

sHANAServerOrIP
Type: SystemString
Server name or ip address of the hana server. Please use the same name or ip as defined in the SLD (system landscape definition)
lHANAPortNumber
Type: SystemInt32
30015 is the default
sMARIProjectSchemaName
Type: SystemString
Name of the MARIProject database(schema)
sHANAUser
Type: SystemString
SYSTEM
sHANAPWD
Type: SystemString
password

Return Value

Type: Boolean
True if sucessfully initialized MARIProject Interface
Remarks
Examples
Initialization Example for HANA
public void InitInterfaceHANA() {
    MARIInterface.MPInterface MPInterface;
    MPInterface = new MARIInterface.MPInterface();
    if (MPInterface.bInitInterface("HANAB1VM4", 30015, "SBODEMOGTPM", "SYSTEM", "manager")) {
        // MARIProject user and password
        if (MPInterface.bUserLogin("MARINGO", "")) {
            // Start your code here...
            this.oMPInterface = MPInterface;
        } else {
            //                                           Read results from oError Object
            throw new SystemException("Login failed: " + MPInterface.oErrors.PrintErrors());
        }
    } else {
        //                                           Read results from oError Object
        throw new SystemException("Login failed: " + MPInterface.oErrors.PrintErrors());
    }
}
See Also