cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Gui Problem

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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?

Former Member
0 Kudos

You have SAPGUI 7.20 ???

What is the patch level, file version?

Former Member
0 Kudos

Yes, SAP GUI 7.20. There is no Patch yet, so no Patch Level.

File Version of saplgpad.exe is 7200.1.0.1050