Writes and repairs reusable TypeScript workflows for the SAP UI MCP library. Use when asked to turn a completed SAP task into an editable workflow, change its inputs or assertions, or fix an SDK diagnostic from sap_workflow_save.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Sap Ui Workflow Authoring?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/didroai-sap-ui-workflow-authoring)
---
name: sap-ui-workflow-authoring
description: Writes and repairs reusable TypeScript workflows for the SAP UI MCP library. Use when asked to turn a completed SAP task into an editable workflow, change its inputs or assertions, or fix an SDK diagnostic from sap_workflow_save.
---
# Author a reusable SAP workflow
1. For a completed task, call `sap_history` on the original session with `includeSdk: true`. Each entry pairs an SDK statement with its observed outcome. Choose the actions that reached the requested result. A successful action can still belong to an abandoned attempt. For an existing workflow, inspect its current source and verification status with `sap_library` by name.
2. Start from the statements you selected. Replace values that vary between runs with named string inputs. Keep document numbers as strings. Use the entry screen's control ID to enter a value and the result screen's control ID to verify it.
3. Save a complete module with `sap_workflow_save`. The runner supplies the target session as `sap`. Declare each required input under `workflow.inputs` and describe what the script verifies. If attaching evidence, copy the exact `source` object from the history response.
For example, a sales order lookup can use this module as its `code`:
```ts
import { expect, test } from "sap-ui-automation/test";
test("Display a sales order", async ({ sap, input, output }) => {
const order = input("order");
await sap.okcode("/nVA03");
await sap.set("ctxtVBAK-VBELN", order);
await sap.key("Enter");
await expect(sap).toHaveTitle(/Overview/);
const displayed = sap.field("ctxtVBAK-VBELN");
await expect(displayed).toHaveValue(order);
output("displayedOrder", await displayed.value());
});
```
Pass this `workflow` object alongside the code and name:
```json
{
"description": "Display a sales order in VA03",
"inputs": { "order": "Sales order number" },
"outputs": { "displayedOrder": "Order number displayed on the overview" },
"verifies": "The overview displays the supplied order number"
}
```
For each value the caller needs, declare a named output and emit its displayed string once while the relevant screen is open. A successful run returns these values directly.
This VA03 example shows the same short field ID on both screens. If the overview uses a different ID, use that ID in the field assertion. Read both IDs and the title from your own session. The SDK assertions above wait for the observed state. For a longer flow, group related actions with `await sap.step("Step name", async () => { ... })` or use a local function in the same module.
When save reports a TypeScript error, use its line and column in the submitted code, fix it, and save again. A successful save makes the workflow discoverable. To verify a display lookup, run it with another known order through `sap_workflow_run`, passing the target session and `variables`. A passing run records verification for that revision.
For a workflow that posts or saves business data, use an existing recording of that task under the same name with a recorded write. Look for it with `sap_record {"op":"list"}`. A history attachment alone cannot satisfy this check. If the recording is missing, explain the requirement to the user. Repeating the posting to create evidence or verify the workflow could create another document.