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

sapgui_logon

Example: sapgui_logon Connection and Session Functions

Logs on to a SAP server.

int sapgui_logon( const char *user_name, const char *password, const char *client_num, const char *language, [args,] LAST );
user_name The name of the user in the session
password The password of the user in the session
client_num The identification number of the client
language The language of the SAP session
args Optional Arguments
LAST A marker indicating the end of the argument list. Not required if Optional Arguments are used.

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.