
π This article includes 1 downloadable practice file β
Enable GUI Script Recording – SAP
This document describes how you can turn on GUIΒ Script Recording.Β To use GUI Script Recording with Winshuttle Transaction, the scripting parameter must be set in RZ11 and GUI scripting must be enabled in the SAP GUI. Typically, Basis has to enable the parameter setting and users will have to enable scripting in their SAP GUI.
In this article
Enable the RZ11 parameter
- In SAP GUI, start transaction RZ11.

- UnderΒ Param. Name, enterΒ sapgui/user_scripting.

- Click Change Value.

- In theΒ New valueΒ box, enterΒ TRUE, and then click theΒ SaveΒ button.

Scripting is enabled.
Enable scripting in SAPΒ GUI
- ClickΒ Customize Local Layout, and then clickΒ Options.

- ClickΒ Accessibility & Scripting, and then clickΒ Scripting.

- Check theΒ Enable scriptingΒ box.

- ClickΒ OK.
Before you start: who controls scripting
SAP GUI Scripting has two switches, and both must be on:
- Server side β your SAP Basis team controls the profile parameter
sapgui/user_scripting. If it is off, the scripting menu items stay greyed out no matter what you do on your PC. Many companies enable it only in development or quality systems, or only for certain users. - Client side β on your PC, in SAP Logon: Options β Accessibility & Scripting β Scripting, tick Enable scripting. The two warning boxes (βnotify when a script attachesβ, βnotify when a script opens a connectionβ) are worth leaving on at first, so you always know when automation is running.
Recording your first script
- Log in, then open Customise Local Layout (Alt+F12) β Script Recording and Playback.
- Choose where to save the .vbs file, press the red record button, and do the task slowly β for example, open SE16N, enter a table, set a filter and export.
- Stop recording. Open the .vbs file in Notepad: every click and field entry is now a line of code such as
session.findById("wnd[0]/usr/ctxtGD-TAB").text = "MARA".
Those lines can run from Excel VBA with small changes, which is how most SAP-to-Excel automations start β see automating an SAP export into Excel.
When scripting is disabled for you
That is usually a deliberate security decision. Ask for access to a test system, or use standard exports and saved ALV layouts plus Power Query to reduce manual work without scripting.
π Practice files for this article
- πCheck-scripting script (.vbs)Practice file from the matching course lesson.β¬ VBS Β· 377 B
Free to use for learning. Files with macros (.bas) are plain text β import them with Alt+F11 β File β Import File, and always test on a copy.
Atul (AJ) builds office-automation and local-first AI tools as Atulya AI, and works with Excel, SAP and Oracle EPM every day. He writes about the shortcuts, macros and automations that actually save time β plus the occasional wacky fact. Videos on YouTube: Lazy Automator AI (@LazyAutomatorAI).
More posts by Atul βStuck on a step? Ask a question and the AI answers using this article.