{"slug":"sap-ui-automation","title":"sap-ui-automation","summary":"Works in SAP through the sap-ui-automation MCP tools (sap_look, sap_act, sap_sessions, sap_logon). Opens transactions, reads and fills screens, reads ALV lists, looks up, creates or changes documents, and runs several SAP sessions in parallel, in SAP GUI for Windows, Web GUI (SAP","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-11-29T00:26:36.877732Z","repo":{"url":"https://github.com/DidroAI/sap-ui-mcp","stars":25,"forks":1,"license":"MIT","updatedAt":"2026-11-28T23:45:37Z"},"bodyHtml":"<hr>\n<h2>name: sap-ui-automation\ndescription: Works in SAP through the sap-ui-automation MCP tools (sap_look, sap_act, sap_sessions, sap_logon). Opens transactions, reads and fills screens, reads ALV lists, looks up, creates or changes documents, and runs several SAP sessions in parallel, in SAP GUI for Windows, Web GUI (SAP GUI for HTML) and Fiori, on ECC or S/4HANA. Use this skill whenever the user wants something looked up, checked, created or changed in SAP, even if they name no tool or say only a transaction code (VA03, ME23N, MM03, FB03, MIGO) or a business object (sales order, purchase order, material, customer, vendor, invoice, delivery, goods receipt, Fiori app). Also use it to log on, set up or troubleshoot the SAP MCP tools, or record and replay SAP regression tests. Read it before the first sap_* call.</h2>\n<h1>Driving SAP screens with the sap_* tools</h1>\n<p>The tools work in the SAP sessions the user has open, as that user and\nunder their authorisations. They come from the <code>sap-ui-automation</code> MCP\nserver (<code>sap-ui-automation:sap_look</code>; the tool names are the same under any\nserver name). Each tool's description lists its actions and fields. This\nskill gives the order of work and how SAP behaves.</p>\n<h2>Setup and repeatable tests</h2>\n<p>For first-time installation, follow the <a href=\"https://docs.didro.ai/sap-ui-automation/getting-started/setup-prompt\">setup guide</a>.\nIf an installed server’s tools are missing, check the MCP client configuration and restart the\nclient after setup. If no SAP session appears, run <code>npx -y sap-ui-automation doctor</code>\non the SAP machine and use its suggested fix for the intended surface.\nThe user handles credentials.</p>\n<p>When the user asks for a regression test, use a clean test session. List\nsaved flows with <code>sap_record {\"op\":\"list\"}</code>. To record one, start with\n<code>sap_record</code> (<code>op: start</code>, name and session id), perform the requested steps,\nassert the expected field or status on the result, then stop. Replay the\nnamed test on the verified test session and report the first failing step.\nRecordings retain typed values. <a href=\"https://docs.didro.ai/sap-ui-automation/guides/record-replay\">Recording guide</a></p>\n<h2>One screen, one call</h2>\n<ol>\n<li><p><strong>Identify the target.</strong> List sessions with <code>sap_sessions</code>, then inspect the intended\nscreen using <code>sap_look</code> with its exact <code>session</code> id. Check system, client, user, transaction and any\npopup. If the target disappears, list sessions again and verify the new id.\nKeep existing work intact. To start another transaction use a fresh session\n(<code>sap_act</code> with <code>newSession: \"VA03\"</code>). Use <code>/n</code> only in a known clean\nsession or with permission to discard its contents.</p>\n</li>\n<li><p><strong>Send the whole screen in one <code>sap_act</code></strong> with the verified session ID: the fields you see, then the\nkey that submits them.</p>\n<pre><code>{\"session\":\"&lt;verified-id&gt;\",\"actions\":[\n  {\"do\":\"set\",\"id\":\"ctxtVBAK-AUART\",\"value\":\"OR\"},\n  {\"do\":\"set\",\"id\":\"ctxtVBAK-VKORG\",\"value\":\"1000\"},\n  {\"do\":\"key\",\"key\":0}]}\n</code></pre>\n</li>\n<li><p><strong>Read the answer, not the screen again.</strong> The answer is the new screen\n(or only the lines that changed). <code>Ran k of n actions. Stopped: ...</code>\nmeans the batch ended early, at a popup, a status message or another\nscreen: go on from the screen it shows with the actions that did not run.</p>\n</li>\n<li><p><strong>Read the status bar first</strong> (<code>STATUS E: ...</code>; toasts in Fiori).\n<code>E</code>: nothing went through, correct the field it names. <code>W</code>: Enter\naccepts it, when the warning is acceptable for the task. <code>S</code>: done.</p>\n</li>\n<li><p><strong>Report</strong> what you read or saved, with the document number from the\nstatus bar.</p>\n</li>\n</ol>\n<p>A write (Save, Post) on a screen the batch reached after you sent it does\nnot run. Read that screen in the answer, then send the write. Mark the step\n<code>\"unseen\": true</code> only when you know the screen.</p>\n<h2>How SAP screens behave</h2>\n<ul>\n<li><strong>Fields take effect on Enter.</strong> <code>set</code> only types. SAP checks the input\nand fills dependent fields on Enter, so fill the screen, then press Enter\nonce.</li>\n<li><strong>Do not guess codes</strong> (order type, plant, company code): open the value\nhelp with <code>{\"do\":\"f4\",\"id\":...}</code> and pick from its list.</li>\n<li><strong><code>/n&lt;tcode&gt;</code> drops unsaved input</strong> in the current transaction.</li>\n<li><strong>Popups come first.</strong> A <code>WINDOW wnd[1]</code> blocks the screen below until it\nis answered.</li>\n<li><strong>A list shows the rows on screen and the total.</strong> Never conclude that an\nentry is missing from the rows on screen: read the others with <code>sap_look</code>\nand <code>\"id\"</code>, <code>\"rows\":\"100-150\"</code>. <code>\"row\"</code> in an action is the number the\nview prints.</li>\n<li><strong>Numbers follow the user's notation.</strong> Trust the <code>NUMBERS</code> line of the\nview: with <code>NUMBERS 1.234,56</code>, \"1.000\" is one thousand. When it says\n<code>unknown</code>, find the notation before you read or type an amount.</li>\n<li><strong>Leaving without saving:</strong> Back (<code>key 3</code>) or Cancel (<code>key 12</code>). When SAP\nasks whether to save, answer No unless the user asked you to save.</li>\n<li><strong>Fiori:</strong> open an app with <code>{\"do\":\"open\",\"app\":\"#PurchaseOrder-manage\"}</code>.\nThe okcode <code>/n</code> goes to the launchpad's home page.</li>\n</ul>\n<h2>Several sessions at once</h2>\n<p>Use one session per independent part of a task (look up one order while\ncreating another, the same check in two systems).</p>\n<ol>\n<li><p><strong>Get a session per part.</strong></p>\n<ul>\n<li><code>sap_act {\"newSession\":\"VA03\",\"session\":\"&lt;source-id&gt;\"}</code> opens a fresh Web GUI tab in launched or attached Chrome, or a second desktop SAP window. Send it on its own: inside <code>actions</code> it\nis refused.</li>\n<li><code>sap_logon</code> with <code>\"newSession\": true</code> opens a new window with a logon\nof its own, on the same system or another. Only servers set up with\nthe Chrome extension have <code>sap_logon</code>.</li>\n</ul>\n<p>The new session becomes the active one.</p>\n</li>\n<li><p><strong>Wait until it is verified.</strong> Use a session when the <code>sap_logon</code> answer\nsays <code>verified</code>, or <code>sap_sessions</code> lists it with its system, client and\nuser. A Web GUI tab marked \"not verified\" is still loading or shows a\npopup: call <code>sap_sessions</code> again before you work in it.</p>\n</li>\n<li><p><strong>Pass <code>session</code> on every call</strong>, with the id from the answer. Never rely\non the active session. Calls on different sessions run at the same time,\ncalls on one session run in order.</p>\n</li>\n<li><p><strong>Send the independent calls together</strong>, then check each answer against\nits own part (transaction, document number) and report each part as it\nfinishes.</p>\n</li>\n</ol>\n<p>If SAP reports a session limit, dismiss its information popup. In Web GUI,\nopen the system’s normal Web GUI start URL in a separate tab. List sessions,\nverify the new tab and use its ID. Repeating <code>/o</code> or closing another agent’s\ntab can disrupt work. On desktop, use an available session or another logon.</p>\n<h2>SAP GUI for Windows: two ways to read it</h2>\n<p><code>sap_sessions</code> lists SAP GUI sessions found by SAP GUI scripting and, for\nconnections logged on through the server's router, by the network reader\n(\"through the DIAG router\"). When one connection is listed both ways, use\nthe scripting session: it reads more of the screen. Use the network reader's\nsession when it is the only one listed, for example when scripting is off.</p>\n<h2>Logging on</h2>\n<p>Without <code>sap_logon</code> the server never logs on: ask the user to open SAP.\nWith it, log on only to a system <code>sap_systems</code> lists. When <code>sap_logon</code>\nstops (wrong password, locked user, SAP asking about other logons), tell the\nuser what it says. Never retry on your own and never ask for a password.</p>\n<h2>Writing to SAP</h2>\n<p>Saving, posting, releasing and deleting change the system for real. The\nuser's write setting decides what happens, and <code>sap_act</code> says which one\napplies:</p>\n<ul>\n<li><strong>confirm</strong> (default): the server requests approval from the client. Codex Full Access can accept automatically.\nIf they decline, ask how to go on. A client that cannot ask gets the\naction refused: tell the user what you would have saved and stop.</li>\n<li><strong>off</strong> (read-only): the action is refused. Tell the user what you would\nhave saved and stop.</li>\n<li><strong>on</strong>: the action runs. Say what you saved, with the document number.</li>\n</ul>\n<p>Save with <code>{\"do\":\"key\",\"key\":\"Save\"}</code> on every surface (in Web GUI the\nserver presses the toolbar's Save button for it).</p>\n<p>Never work around the setting, for example with a save code in the command\nfield or another route to the same change. The setting is the user's\ndecision, not an obstacle.</p>\n<p>When a write did not run, report the unsaved edits and any document lock.\nDiscard only your own disposable input or edits the user authorized you to discard.\nIf ownership is unclear, leave the screen open and ask how to proceed.</p>\n","files":[{"path":"SKILL.md","sizeBytes":8391,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-11-29T00:26:50.89724Z","sha256":"33B1F9EC76A1C6E38D3716C44D38195B43C3776FD48B52228AF6A001A1E5957E","sizeBytes":3865},"review":null,"source":{"repositoryUrl":"https://github.com/DidroAI/sap-ui-mcp","path":"skills/sap-ui-automation","license":"MIT","commit":"831cca2c1cc1e79f883a63e3da3fd749ca0b4729","subtreeSha":"0A538406431E6C30148D7D830E9720E2A04B1811755F78414E84EBCF32754239","lastSyncedAt":"2026-11-29T00:26:36.874193Z"},"reviewedAt":"2026-11-29T00:26:55.750111Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/DidroAI/sap-ui-mcp/tree/main/skills/sap-ui-automation"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install didroai-sap-ui-mcp@llmmart"},{"target":"git","command":"git clone https://github.com/DidroAI/sap-ui-mcp.git"}]}