claude-sap-kit

Tools and skills that let Claude Code work on an on-premise SAP system without SAP GUI,
built as an extension of ARC-1.
ARC-1 already gives Claude read and write access to ABAP code through ADT. This kit adds what
ADT does not cover: running reports, previewing print output and editing SmartForms and Adobe forms.
⭐ If you find it useful, please star the repo: it helps other SAP developers find it. Questions and ideas are welcome in Issues.
What you can ask Claude
- "Run MB52 for plant 1001, storage locations M001 to M003" → runs the report and reads the ALV as JSON.
- "Compare ZMM_STOCK with its copy on the same filters" → same selection on both, row-by-row comparison.
- "Show me the PDF of delivery 80012345" → preview of the NAST message, nothing is printed.
- "On the delivery note, replace the sender address with a fixed text" → Z copy of the SmartForms,
XML edit, PDF preview and comparison with the original.
- "OK, move the change to the original form in request DEVK900123" → controlled replacement, with backup,
summary and explicit confirmation.
- "On the order confirmation (Adobe form), make the footer text smaller" → Z copy of the form, XDP edit,
PDF preview and comparison with the original.
How it works
Claude Code ──MCP──▶ ARC-1 ──▶ extension (9 Custom_* tools) ──HTTP /sap/bc/soap/rfc──▶ remote-enabled FMs ZAI_* ──▶ ABAP classes
| Tool | What it does |
|---|
Custom_LaunchReport | SUBMIT of a report (by name or transaction) with a variant and/or selection values; returns the ALV as JSON or the list as text |
Custom_PrintPreview | Runs the print program of a NAST message to spool and saves the PDF, even with a SmartForms or Adobe form not yet configured in NACE |
Custom_SmartFormRead | Downloads the XML of any SmartForms |
Custom_SmartFormWrite | Uploads an XML as a ZAI_* copy in $TMP, with check, activation and FM generation |
Custom_SmartFormReplace | Replaces a customer form with the approved copy, under a transport request, in two steps (prepare → execute) |
Custom_AdobeFormRead | Downloads any Adobe form (SFP) as three files: form XML without layout, layout XDP, interface XML |
Custom_AdobeFormWrite | Uploads form XML + XDP as a ZAI_* copy in $TMP, with activation and FM generation |
Custom_AdobeInterfaceWrite | Uploads an interface XML as a ZAI_* form interface in $TMP (new, or updated in place so the forms using it stay linked), with activation |
Custom_AdobeFormReplace | Gives a customer Adobe form the layout of the approved copy, in place, under a transport request, in two steps (prepare → execute); refused if the copy differs in anything else |
ARC-1 extensions can only make HTTP calls, so the tools call remote-enabled function modules
through the standard SOAP-RFC service.
Repository layout
.claude-plugin/ Claude Code plugin and marketplace
skills/
sap-arc1-kit/ skill: installs the kit on an SAP system
assets/abap/ ABAP classes and function group (default prefix ZAI)
assets/arc1-extension/ ARC-1 extension in TypeScript, with tests
scripts/set_prefix.py changes the object prefix (e.g. ZAI → ZXYZ)
sap-report-launcher/ skill: how to run and compare reports
sap-smartform-xml/ skill: how to read, edit and check SmartForms
sap-adobe-form/ skill: how to read, copy, edit and check Adobe forms
Requirements
- SAP_BASIS 7.50 or later, on-premise or private cloud: ECC 6.0 EHP8 and S/4HANA (all releases).
Tested live on S/4HANA 2025 (SAP_BASIS 816) and ECC 6.0 EHP8 (SAP_BASIS 750); the ABAP sources avoid newer constructs.
On ECC the class
/UI2/CL_JSON must exist (used for the ALV output).
Not for S/4HANA Public Cloud or the BTP ABAP Environment (no SUBMIT, NAST or SOAP-RFC there).
- ARC-1 1.4.0 or later, configured in Claude Code with writes enabled.
- SICF service
/sap/bc/soap/rfc active.
- For the Adobe forms tools: Adobe Document Services (ADS) configured (standard report
FP_TEST_00).
- SAP user with
S_RFC on the kit function group, plus the authorizations for the reports to run and for spool requests.
- Node.js 22.19+ or 24 (to build the extension) and Python 3 (for the scripts).
Installation