You are on page 1of 8

1/21/23, 8:25 PM How To Enable SAP GUI Scripting

(/s/)

English (US)

Find solutions and get support

How To Enable SAP GUI Scripting


May 22, 2020 • Knowledge

Article Number
000001698

Title
How To Enable SAP GUI Scripting

Summary
This article describes the procedure to enable SAP GUI Scripting on client side as well
as server side.

Instructions
Steps to enable SAP GUI Scripting enables in local machine(client side):

Setup the SAP Gui client to allow scripting in local machine, On the Toolbar, go to
the Customize Local Layout button and select Options from the drop-down menu.
The SAP GUI Options window opens.
Go to Accessibility & Scripting and click on Scripting. Under User Settings, check
the box next to Enable scripting. Make sure the other two options Notify when a
Was this article helpful? 0 1

https://apeople.automationanywhere.com/s/article/How-To-Enable-SAP-GUI-Scripting?_ga=2.3422069.455127791.1674323880-1630309378.166… 1/8
1/21/23, 8:25 PM How To Enable SAP GUI Scripting

script attaches to SAP GUI and Notify when a script opens a connection are


disabled. Save the changes by clicking OK. The SAP GUI scripting is now enabled.

Steps to enable SAP GUI Scripting in your SAP System(server-side):

Launch "saplogon.exe" log in to your SAP server using your credentials.


SAP Easy Access window opens.
Run transaction RZ11. Specify the parameter name "sapgui/user_scripting" and
press enter.

Was this article helpful? 0 1

https://apeople.automationanywhere.com/s/article/How-To-Enable-SAP-GUI-Scripting?_ga=2.3422069.455127791.1674323880-1630309378.166… 2/8
1/21/23, 8:25 PM How To Enable SAP GUI Scripting

 
In the Display, Profile Parameter Attributes window, press the Change Value button
on the toolbar and set the New value of "sapgui/user_scripting" to TRUE. Save the
changes.

Was this article helpful? 0 1

https://apeople.automationanywhere.com/s/article/How-To-Enable-SAP-GUI-Scripting?_ga=2.3422069.455127791.1674323880-1630309378.166… 3/8
1/21/23, 8:25 PM How To Enable SAP GUI Scripting

Log off and log in back to see the change into effect, then you can see the scripting
is enabled and ready to record

Additional Information
This article applicable to Automation Anywhere Version 10, 11 and A2019.

If SAP GUI Scripting is not enabled on client side as well as server side then you will get
the error 'Maximum number of sessions have been reached for this connection. Please
retry after some time.' while running the Bot having SAP connect command.

Was this article helpful? 0 1

https://apeople.automationanywhere.com/s/article/How-To-Enable-SAP-GUI-Scripting?_ga=2.3422069.455127791.1674323880-1630309378.166… 4/8
1/21/23, 8:25 PM How To Enable SAP GUI Scripting

Component
SAP Integration
Sub-Component
Not Visible

First Published Date


7/22/2019 10:32 AM
Last Published Date
5/22/2020 12:01 AM

URL Name
How-To-Enable-SAP-GUI-Scripting

Product Support Automation Anywhere Enterprise


(/s/topic/0TO6F000000oT3bWAE… (/s/topic/0TO6F000000oV9ZWA…

F(0) (/s/relatedlist/ka02t000000PBvhAAG/AttachedContentDocuments)

Post

Was this article helpful? 0 1

https://apeople.automationanywhere.com/s/article/How-To-Enable-SAP-GUI-Scripting?_ga=2.3422069.455127791.1674323880-1630309378.166… 5/8
1/21/23, 8:25 PM How To Enable SAP GUI Scripting

SHARE AN UPDATE... Share

Search this feed...

krishnanand.srinivasan1 (/s/profile/0056F00000Cg44UQAR) (Automation Anywhere,


Inc.) published a new version of this Knowledge.
May 22, 2020 at 12:01 AM (/s/feed/0D52t000006TGmwCAG)

Translate with Google

1 comment 3 views

Like Comment

Alex Salwisz (/s/profile/0052t000000DhIRAA0) (Johns Manville)


3 years ago
I have followed these commands and verified with our Basis team that all scripting is
enable, however I still confront the same error when trying to connect - I am using
A2019 Enterprise cloud.

Like Translate with Google

Write a comment...

Vyjayanthi (/s/profile/0056F00000Ch8BlQAJ) (Automation Anywhere, Inc.) published


this new Knowledge.
July 22, 2019 at 10:32 AM (/s/feed/0D56F00007D5UgHSAV)

Translate with Google

7 comments 22 views

Like Comment

1 of 7
More comments

Gopi Krishna Mannem (/s/profile/0056F00000CfZDCQA3) (Automation Anywhere, Inc


3 years ago
Hi @SnehajitDas (/s/profile/0056F000009QUJnQAO) (Customer)​ ,
 
With DLL itself it is firing the VB script and hence it is we are interacting with SAP
GUI.
Was this article helpful? 0 1
 

https://apeople.automationanywhere.com/s/article/How-To-Enable-SAP-GUI-Scripting?_ga=2.3422069.455127791.1674323880-1630309378.166… 6/8
1/21/23, 8:25 PM How To Enable SAP GUI Scripting

For technology used at the back-end we would recommend to raise a case with SAP
team so that they will be helping with the query.

Like Translate with Google

Write a comment...

RELATED ARTICLES

'A script is attempting to access SAP GUI' popup appears while running the task using SAP Metabot DLL
194
(/s/article/SAP-scripting-error-while-running-the-task-using-SAP-Metabot-DLL)

How to enable and disable Client logs for V11.X? (/s/article/How-to-enable-Client-logs-for-


11.29K
V11-X)

Automation 360: How to enable DEBUG logs for Bot Agent (/s/article/A2019-How-to-enable-
7.23K
DEBUG-logs-for-Bot-Agent)

How to extract Table data from grid using SAP GUI command (/s/article/How-to-extract-Table-
401
data-from-grid-using-SAP-GUI-command)

Why the Script Recording and Playback needs to be enabled in SAP? (/s/article/Usage-of-SAP-
95
scripting-option)

TRENDING ARTICLES
Black screenshot while running the bot in Unattended mode
(/s/article/Commands-like-Object-Cloning-Image-Recognition-Keystrokes-Etc-Do-
Not-Work-In-Unattended-Mode-When-Autologin-Is-Enabled-And-Error-Out-With-
Black-Screenshot-On-Failure)

Unexpected behavior observed with Two Factor Authentication post A360.26 upgrade, where a valid authenticator
code alone i…
(/s/article/Two-Factor-Authentication)

How to setup App in Azure and Exchange Online to use OAuth 2.0 Client Credentials Flow for IMAP/POP3 Mail
Server?
(/s/article/How-to-setup-App-in-Azure-for-using-Client-Credentials-Flow)

Unable to connect to the Control Room and it may be due to not being able to validate the SSL Certificate presented
by the…
(/s/article/Getting-a-Unable-to-connect-to-Control-Room-not-being-able-to-vali-
date-SSL-certficate) 0 1
Was this article helpful?

https://apeople.automationanywhere.com/s/article/How-To-Enable-SAP-GUI-Scripting?_ga=2.3422069.455127791.1674323880-1630309378.166… 7/8
1/21/23, 8:25 PM How To Enable SAP GUI Scripting

Bad Gateway error encountered when launching Automation 360 CR


(/s/article/A2019-Control-room-Not-accessible-after-Installation-502-Bad-Gateway)

Products
Our platform is powerful enough to automate tasks of any complexity, but user-friendly enough for anyone
on your team to use.

Learn more... (https://www.automationanywhere.com/products/enterprise?


_ga=2.78241104.537351473.1559053078-277468989.1539138132)

Services
The Automation Anywhere services team has worked with companies of all sizes to automate their business
processes for them, help discover new automation ideas, and maximize ROI.

Learn more... (https://www.automationanywhere.com/consulting-services?


_ga=2.111935168.537351473.1559053078-277468989.1539138132)

Contact Us
USA Headquarters
San Jose
1-888-484-3535 (tel:1-888-484-3535)
E-mail (mailto:contact@automationanywhere.com)
intl 408-834-7676 (tel:408-834-7676)

Support
1-888-484-3535 (tel:1-888-484-3535)
408-834-7676 (tel:408-834-7676)

Boston Mumbai
Dallas London

New York Ontario


Bangalore Melbourne

Baroda Japan

© 2020 Automation Anywhere, Inc.


Privacy Terms Trademark Products Customers
(https://www.automationanywhere.com/company/careers?
Careers
_ga=2.120329676.537351473.1559053078-277468989.1539138132)
Was this article helpful? 0 1

https://apeople.automationanywhere.com/s/article/How-To-Enable-SAP-GUI-Scripting?_ga=2.3422069.455127791.1674323880-1630309378.166… 8/8

You might also like