Micro Focus QTP (UFT) Forums
SAPGuiUtil.Autologon method fails - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: SAPGuiUtil.Autologon method fails (/Thread-SAPGuiUtil-Autologon-method-fails)



SAPGuiUtil.Autologon method fails - liorde - 02-19-2015

Hello all.

I use this command in order to automatically logon to the local SAP installed on the machine.
The SAP version is 7.10.
Code:
SAPGuiUtil.AutoLogon SAP_ENV, "400", SAP_USER, SAP_PSWD, "EN"

This command worked fine when the user's password was 6 characters long.
Now, SAP policies have changed and an 8 character password is required.

This command now, fails to enter anything to the password field.
Cannot find anything that configures this.

Please assist anyone with an idea about this.

Thanks!!


RE: SAPGuiUtil.Autologon method fails - anand7um - 10-23-2015

Hi

I am facing exactly the same problem in my environment. After the password policy changed from 6 to 8 characters, the QTP scripts are no longer working. I have tried to debug the script and it reaches to the point where the SAPGuiUtil command is invoked and the SAP Gui comes up, but the parameters passed through the command are not populated on the Login and Password fields.

Kindly help!

Regards
anand7um


RE: SAPGuiUtil.Autologon method fails - liorde - 10-25-2015

Use the UFT password encoder for your 6 letter password and paste the encoded long string to your SAP AUTOLOGIN function.
This has worked for me.
Other option is to completely record the PASSWORD INSERTION portion to your script (and only that portion) and then place it after your user-name.