Web GUI and Fiori in Chrome
Your agent works in SAP Web GUI and SAP Fiori tabs: in your everyday Chrome through the UI Automation for SAP extension, or in a Chrome window of its own.
Web GUI and Fiori run in Google Chrome on Windows, macOS and Linux, and need nothing on the SAP system. You log on to SAP yourself, or the extension logs on with a password you saved in it. The server never sees a password.
Choose a browser mode
SAP_BROWSER in the server’s environment says which Chrome the server works in.
| Mode | Which Chrome | What you do once | What the server can see |
|---|---|---|---|
launch (default) | a Chrome window the server starts, with a profile of its own | log on to SAP in that window | only that window |
extension | your everyday Chrome, through the UI Automation for SAP extension | install and pair the extension, register your SAP systems | only the tabs of the systems you registered |
attach | your running Chrome or Edge | allow remote debugging in chrome://inspect | every tab of that browser; it reads only SAP tabs |
Start with launch: nothing to switch on in Chrome. Use the extension for your normal profile and its single sign-on, or to let it log on for you.
Install the UI Automation for SAP extension
- Add UI Automation for SAP to Chrome from the Chrome Web Store.
- Run
It adds the server withnpx -y sap-ui-automation setup --extensionSAP_BROWSER=extensionto your agent apps, installs the skills, and installs the extension’s helper, which pairs the extension in one click and keeps saved passwords in your system’s keychain. - Restart Chrome once, so it finds the helper, and restart your agent apps. Pin the extension’s icon.
- Click the UI Automation for SAP icon to open its side panel, and click Pair.
- Open your SAP system in a tab and click Add this SAP page in the panel. Add user and password if the extension should log on for you.
- Check the connection:
It waits up to 35 seconds for the extension to connect.SAP_BROWSER=extension npx -y sap-ui-automation doctor
The agent then also has sap_systems, your registered systems, and sap_logon, which opens one and logs on. The side panel shows what the agent does in SAP, step by step, and when it waits for your yes to save. While the server works in a tab, Chrome shows “UI Automation for SAP started debugging this browser”: Cancel there stops all sharing until you click Share again in the side panel.
An entry that setup made before keeps its settings: add "SAP_BROWSER": "extension" to its env by hand and restart the agent app. Where a company policy blocks the store, npx -y sap-ui-automation extension install copies the extension to a folder to load unpacked. npx -y sap-ui-automation extension uninstall removes the helper, the saved passwords and the copied folder.
The extension sends nothing to Didro or anyone else: its only connections are to the local server on 127.0.0.1 and, through your tabs, to the SAP systems you registered. Extension privacy policy, permissions, IT deployment and limits
A Chrome window of its own (the default)
- Install Google Chrome if it is not there.
SAP_CHROME_PATHnames another Chrome or Chromium. - Run
npx -y sap-ui-automation browser. A Chrome window opens. - Open your Web GUI or Fiori launchpad address there and log on.
The window keeps its own profile, so you log on once and the next session starts logged on where SAP allows it. The server never closes it, and leaves your everyday Chrome alone.
Your running Chrome or Edge
Set SAP_BROWSER=attach, open chrome://inspect/#remote-debugging in Chrome 144 or later, and tick Allow remote debugging for this browser instance. Chrome asks you to allow each new connection. Remote debugging gives the server every tab of that browser: use a separate Chrome profile for SAP work, or set SAP_ALLOW_ORIGINS to your SAP hosts. Chrome guide
Working in Fiori and Web GUI
- Fiori apps open by their launchpad intent, such as
#SalesOrder-manage, on the launchpad and logon you are on. - In a draft-enabled Fiori app, typing into a field saves the draft on the server at once. Activating the draft (Save, Create) counts as a write and waits for your yes.
- Web GUI reads like SAP GUI for Windows: the same view, ids and actions. A tab in the background is slower, because Chrome draws it about once a second.
- Firefox and Safari are not supported. Microsoft Edge is found the same way as Chrome and is likely to work.
When doctor shows ✗
| doctor says | What to do |
|---|---|
| Chrome: Google Chrome was not found | Install Google Chrome, or set SAP_CHROME_PATH to a Chrome or Chromium program file. |
| Chrome extension: no UI Automation for SAP extension connected | Install the extension, open Chrome, click its icon and Pair, then run doctor again. If the side panel shows another port, set SAP_EXTENSION_PORT to it. |
| Chrome: no Chrome with remote debugging allowed | With attach: tick the switch in chrome://inspect/#remote-debugging and click Allow when Chrome asks. |
| No Web GUI or Fiori tab found | Open your SAP address in the Chrome the server uses, and log on. |
