Example: sapgui_select_active_sessionConnection and Session Functions

Activates a session.

int sapgui_select_active_session( const char *sessionID);
sessionID The number of the session

sapgui_select_active_session chooses the current working session from the collection of open sessions.

The sessionID of the first session is "ses[0]", the second is "ses[1]", etc. The first session is opened by the initial login sequence. Unless sapgui_create_new_session is called, or a new session is started from the menu, sessionID is generally "ses[0]".

Return Values

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


You can parameterize all string (char type) arguments.