Example: sapgui_set_passwordGeneral Object Functions

Enters a password.

int sapgui_set_password( const char *description, const char *password, const char *controlID, [args,]  LAST );
description User entered text to aid in understanding script
password User enters the password text
controlIDObject ID Strings
argsOptional Arguments
LAST A marker indicating the end of the argument list. Not required if Optional Arguments are used.

sapgui_set_password enters a password in a password text box. When the function is recorded the password text is hidden. To replay the script, edit the function and enter the password.

To record this step during logon show operations on logon windows. To record detail steps during logon clear Hide operations on logon windows: Choose Tools > Recording Options > SAPGUI > Code generation.

Return Values

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


You can parameterize all string (char type) arguments.