on 05-07-2010 10:44 AM
Hi,
i've got a problem. we use an autoit script for automating the login process (user + password are securily saved on smartcard). the script worked fine for gui 6.20 and 7.10. now in version 7.20 it works no longer. i'm using this command:
$sap.openConnectionByConnectionString($connection_string, TRUE)
this normaly opened a sap gui window connected to the right server. Now the gui only pop's up very short and disappears again.
this is the error i get:
X:\AutoIt_Scripts\sso\Neu AutoIt v3 Script.au3 (61) : ==> The requested action with this object has failed.:
$sap.openConnectionByConnectionString($connection_string, TRUE)
$sap.openConnectionByConnectionString($connection_string, TRUE)^ ERROR
also in the sap gui scripting (SAP GUI Scripting API 7.10) help, which was in the sap gui 7.20 package the syntax hasn't been changed.
Public Function OpenConnectionByConnectionString( _
ByVal ConnectString As String, _
Optional ByVal Sync As Variant, _
Optional ByVal Raise As Variant _
) As GuiConnection
can someone explain me why this happens?
greets
i think i found the problem. the com error handler gave me this description:
COM error Encountered in Neu AutoIt v3 Script.au3
Scriptline = 61
NumberHex = 80020009
Number = -2147352567
WinDescription = ??????????????
Description = Scripting is disabled by the server.
Source = saplgpad
HelpFile = C:\Programme\SAP\FrontEnd\SAPgui\saplgpad.HLP
HelpContext = 393215
LastDllError = 0
i know that scripting is disabled by the server, but the script does work fine with 6.20 and 7.10 gui. has something changed in 7.20 or do i only have to set a registry setting that it works again?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.