DidroDocsGitHub

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.

ModeWhich ChromeWhat you do onceWhat the server can see
launch (default)a Chrome window the server starts, with a profile of its ownlog on to SAP in that windowonly that window
extensionyour everyday Chrome, through the UI Automation for SAP extensioninstall and pair the extension, register your SAP systemsonly the tabs of the systems you registered
attachyour running Chrome or Edgeallow remote debugging in chrome://inspectevery 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

  1. Add UI Automation for SAP to Chrome from the Chrome Web Store.
  2. Run
    npx -y sap-ui-automation setup --extension
    It adds the server with SAP_BROWSER=extension to 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.
  3. Restart Chrome once, so it finds the helper, and restart your agent apps. Pin the extension’s icon.
  4. Click the UI Automation for SAP icon to open its side panel, and click Pair.
  5. 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.
  6. Check the connection:
    SAP_BROWSER=extension npx -y sap-ui-automation doctor
    It waits up to 35 seconds for the extension to connect.

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)

  1. Install Google Chrome if it is not there. SAP_CHROME_PATH names another Chrome or Chromium.
  2. Run npx -y sap-ui-automation browser. A Chrome window opens.
  3. 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 saysWhat to do
Chrome: Google Chrome was not foundInstall Google Chrome, or set SAP_CHROME_PATH to a Chrome or Chromium program file.
Chrome extension: no UI Automation for SAP extension connectedInstall 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 allowedWith attach: tick the switch in chrome://inspect/#remote-debugging and click Allow when Chrome asks.
No Web GUI or Fiori tab foundOpen your SAP address in the Chrome the server uses, and log on.

Every Chrome check and its fix