SAP GUI Functions (SAPGUI) > Alphabetical List of Functions > sapgui_select_active_connection

sapgui_select_active_connection

Example: sapgui_select_active_connection Connection and Session Functions

Sets the specified connection as the active connection.

int sapgui_select_active_connection( const char *connectionID);
connectionID The connection name.

sapgui_select_active_connection specifies an open connection to a server as the working connection.

The connectionID is retrieved by sapgui_open_connection_ex and sapui_open_connection. The id of the first connection opened from the client is "con[0]", the second is "con[1]", etc.

Return Values

This function returns LR_PASS (0) on success or LR_FAIL (1) on failure.

Parameterization

You can parameterize all string (char type) arguments.