DidroDocsGitHub

Can the agent save in SAP without me?

Not by default. Each action that may save waits for your yes in your client, and is refused where the client cannot ask.

The server sorts every action before it runs into read, navigate and commit. Commit is anything that may save, and anything not known to be safe. Since version 0.5.0 the default, SAP_WRITE=confirm, asks you before each commit.

How the question works

Your MCP client shows the action, the system and client, the transaction and the window title. The action runs only if you accept; if you decline or dismiss it, nothing runs and the agent is told so. You have five minutes to answer.

The question is bound to what it showed. Before running, the server reads the screen again and refuses if the session, system, transaction, window title or action changed. In a batch, the action that may write is asked about on its own, when its turn comes.

Which clients can ask

Checked on 21 November 2026 from each client’s changelog, documentation and source. Clients change quickly: try a harmless write on a test system first.

ClientAsks?Notes
Claude Codeyes, from 2.1.76Tried live on Web GUI. In claude -p (headless) only an Elicitation hook can answer; otherwise the write does not run.
VS Code (GitHub Copilot, Agent mode)yes, from 1.102The question appears in the chat.
Codex (CLI, IDE extension, app)yes, from 0.119codex exec cancels every question. In Full Access mode Codex accepts the question without showing it: set SAP_WRITE=off there.
Cursorsupported, unreliableUsers report the question not showing on Windows, hidden buttons and a timeout of about a minute.
Claude Desktopnot documentedA write is refused if Claude Desktop does not ask; set off for read-only.
Windsurf / Devin Desktopnot checkedTry a harmless write on a test system, or set off.
The agent CLI (sap-gui act)noWrites need SAP_WRITE=on.

Sources for each client

Settings

  • SAP_WRITE: confirm (default) asks before each write; off is read-only; on lets writes run, and your client’s own tool approval is then the only check.
  • SAP_ALLOW_SYSTEMS: the systems and clients the agent may see, such as QAS/100. Sessions on others are hidden.
  • SAP_ALLOW_TCODES and SAP_BLOCK_TCODES: the transactions and Fiori apps it may open.
  • SAP_ALLOW_ORIGINS: the SAP hosts it may read in Chrome.

Under every setting the command field is used only through the okcode action, logging off is refused unless SAP_ALLOW_LOGOFF=on, and password fields and logon screens are refused.

For a production system: a dedicated SAP user with display authorisations only, SAP_WRITE=off, SAP_ALLOW_SYSTEMS, and SAP_BLOCK_TCODES with transactions such as SE38, SE16N, SM30 and SU01. Recommended settings

Limits

  • This is a safety net for an agent that makes mistakes, not a security boundary. SAP’s authorisations are the real limit.
  • A custom button whose name is on the safe list can still write, and so can a report started with F8.
  • An agent that can run shell commands can start the CLI with SAP_WRITE=on itself. Do not auto-approve sap-gui commands where writes matter.
  • Confirm mode was tried on a live system on Web GUI through interactive Claude Code. On Fiori and on SAP GUI for Windows it has run against test fakes only.

Safety model

Questions

Can the agent save in SAP without me?

Not with the default setting, SAP_WRITE=confirm. Each action that may save, post or delete runs only after you say yes to it in your MCP client, and the agent cannot answer for you. A client that cannot ask gets every such action refused.

How do I make it read-only?

Set SAP_WRITE=off in the server’s environment. Every action that may write is then refused, with no question. Use it with Codex in Full Access mode, which accepts the question without showing it.

Which actions count as writes?

Save, Post, Delete, Release, Yes on a save popup, and any button the server does not know as safe. Reading, value help, scrolling, typing, Enter, Back and Execute (F8) do not. Some reports update data on F8: block them with SAP_BLOCK_TCODES.

Does the command line ask before a write?

No. The agent CLI and replayed recordings cannot ask, so a step that may write needs SAP_WRITE=on.