How to Connect Claude
to SAP S/4HANA
Claude has no route into S/4HANA by itself, and SAP's 2026 API Policy limits the routes an agent may take. Here is what each edition exposes and how writes stay with your team.
- Claude has no S/4HANA connector. It needs an MCP server that calls SAP's published APIs as its own SAP user.
- Public Edition opens published APIs only; Private Edition and on premise also accept classic BAPIs. No edition supports reading or writing ACDOCA directly.
- SAP's API Policy of 27 April 2026 bars AI agents that choose their own API calls except through SAP endorsed routes, such as the MCP Gateway in SAP Integration Suite.
- Public Edition cannot park general journal entries, so approval has to happen before the posting call.
- Read first, against figures you already trust, and test the role before the agent sees live data.
To connect Claude to SAP S/4HANA, you run an MCP server that calls SAP's published APIs as a dedicated SAP user, and you route it the way SAP's API Policy allows. Claude asks for a tool, the server makes one named API call, and anything that changes the ledger waits for a person to approve it.
This guide covers Public Edition, Private Edition and on premise S/4HANA. It names the APIs, the policy, the permissions and the tests, and explains where ChatFin fits for teams that would rather not build the layer themselves. For why the API choice matters to clean core, see our clean core guide.
What Claude can and cannot do with S/4HANA on its own
Claude works on what it is given and writes text back. It has no S/4HANA connector of its own. The Model Context Protocol, which Anthropic published in November 2024, is how Claude calls tools, so connecting it to S/4HANA means choosing the MCP server that sits between them, the SAP user that server runs as, and the APIs it is allowed to call.
| On its own, Claude can | On its own, Claude cannot |
|---|---|
| Explain a trial balance export you paste in | Read the live universal journal |
| Draft variance commentary from a report | See which journal entries are waiting for verification |
| Suggest a journal entry from a description | Create or post it in S/4HANA |
| Read supplier invoice PDFs | Match them to purchase orders and goods receipts in SAP |
SAP is building its own route as well. On 12 May 2026 SAP and Anthropic announced plans to make Claude a reasoning layer inside Joule and Joule agents, connected to S/4HANA through MCP, with no availability date. Until that ships, a finance team that wants Claude on S/4HANA builds or buys the tool layer, and our Joule page tracks what SAP has dated so far.
ChatFin is one way to fill the tool layer. ChatFin connects to S/4HANA through SAP's published APIs, prepares the work, and nothing it prepares reaches SAP until a named person approves it.
Your S/4HANA edition decides the doors
Start with the edition, because it decides which interfaces exist at all. SAP now sells S/4HANA Cloud Public Edition and SAP Cloud ERP Private (the former Private Edition), and on premise S/4HANA is still maintained.
| Public Edition | Private Edition and on premise | |
|---|---|---|
| Published APIs | Yes, each enabled through a communication arrangement | Yes, activated by your basis team |
| Classic BAPIs over RFC | Not available to outside callers | Yes, SAP calls them classic APIs |
| Who the call runs as | The communication user of the arrangement | A technical user with a PFCG role |
| Parking general journal entries | Not supported | Available |
On every edition the tables are off limits. SAP's Cloudification Repository marks ACDOCA, BKPF and BSEG as not to be released and names CDS views such as I_JournalEntryItem, I_GLAccountLineItem and I_JournalEntry as their successors. RFC_READ_TABLE is classed as no API. SAP's clean core levels put write access to SAP tables at Level D, not recommended. An MCP server that reads ACDOCA through SQL sits outside the interfaces SAP keeps stable across upgrades.
The SAP S/4HANA APIs a finance agent uses
These are the interfaces a finance agent uses. SAP's API hub needs a login to read in full, so confirm service versions there before you build.
| Interface | What it does | Protocol | Edition |
|---|---|---|---|
| Journal Entry Post, in scenario SAP_COM_0002 | Creates journal entries, synchronous or asynchronous | SOAP | All |
| Journal Entry Clearing, SAP_COM_0002 | Clears open items | SOAP | All |
| Journal Entry Item read (API_JOURNALENTRYITEMBASIC_SRV) | Reads journal entry line items | OData | All |
| API_SUPPLIERINVOICE_PROCESS_SRV | Creates and reads supplier invoices | OData | All |
| API_OPLACCTGDOCITEMCUBE_SRV | Reads open and cleared items | OData | All |
| BANKSTATEMENTPOST_IN | Posts bank statements | SOAP | All |
| BAPI_ACC_DOCUMENT_POST | Posts accounting documents | RFC | Private and on premise |
| BAPI_INCOMINGINVOICE_PARK | Parks supplier invoices | RFC | Private and on premise |
Each has limits that matter to an agent. SAP's guidelines for the Journal Entry Post API say it does not post customer or supplier payments and does not clear open items, which is why the clearing service exists. A KBA on the read API notes that the accounting document read service skips some entries, such as asset postings. The supplier invoice API does not support updates on Public Edition, and the bank statement service carries opening and closing balances only, not interim ones.
What an SAP MCP server for Claude sits on
Since 27 April 2026 this question has a policy answer. SAP's API Policy, version 4.2026a, prohibits API use for AI systems that "plan, select, or execute sequences of API calls" except through architectures SAP endorses. Claude choosing its own tools through an MCP server is that kind of system.

SAP also warns that MCP "does not add business context" and that direct MCP access to raw transactional APIs carries a significant risk of incorrect business transactions for writes. Other options exist, such as the AWS for SAP MCP Server, which reaches S/4HANA OData services and keeps create, update and delete off until the operator enables them. Whichever you choose, the server should expose a short list of named tools, each mapped to one published API, rather than a generic call any API tool.
Ask any vendor, ChatFin included, which SAP endorsed route its agent traffic uses under the API Policy, and get the answer in writing.
The SAP user, role and licence to set up
The permissions follow the edition.
Public Edition: a communication arrangement
Create a communication system for the MCP server, then an arrangement for each scenario it needs, such as SAP_COM_0002 for journal entries. The arrangement's communication user, with a certificate or basic authentication, is the identity SAP sees. Enable only the services you approved.
Private Edition and on premise: a technical user and one role
Create a system or communication user in SU01, never a dialog user, and a single PFCG role holding only the API services the server calls. Limit company codes as organisational levels, and give display only activity where it only reads. A vendor setup guide walks through the screens.
Activate the services
On Private Edition and on premise, your basis team activates the OData services in /IWFND/MAINT_SERVICE or /IWFND/V4_ADMIN and the SOAP services in SOAMANAGER.
Check the licence
SAP's Digital Access model counts documents created in S/4HANA by bots and automated systems through non SAP software, at item level. SAP states that reading, updating and deleting are not counted. Agree with your account team how agent created entries are counted before go live.
Never give the agent a person's login, a shared integration account or SAP_ALL. If a role check fails later, the fix is in the role, not in the prompt.
What to read first
Start with reads you can check against a number you already trust.
Every answer the server returns should carry the API, company code, period, filter and row count, so a person can rerun the read in SAP. Run large reads outside the posting window; SAP says it may throttle API traffic under the policy.
How writes go through approval
The approval has to sit before the call, because on Public Edition there is no parked state to fall back on. SAP's KBA 2758922 says parking of general journal entries is not supported there.
| Step | Who | Where |
|---|---|---|
| Prepare the entry and its evidence | Agent | Outside SAP |
| Approve or reject | Named accountant | The agent's review screen |
| Post through Journal Entry Post | Communication user | Public Edition |
| Create parked, or post through BAPI_ACC_DOCUMENT_POST | Technical user | Private and on premise |
| Release a parked document | Named accountant | SAP, under their own user |
| Record who prepared, approved and posted | SAP and the agent log | Both |
SAP's own posting checks still run on the call, so an entry your configuration would reject is rejected. Keep the write tools separate from the read tools in the MCP server, so a read only Claude session cannot reach them at all.
ChatFin prepares each entry with its support, a named person approves it in ChatFin, and only then is it written through the published interface for your edition. Where your edition supports parking, your SAP release step still runs.
What to test before production
Run these in a test tenant or a copy of production before the agent sees live data.
For ECC, the same questions have different answers; see connecting Claude to SAP ECC. For a broader view of where SAP's agents stop, see ChatFin vs Claude for SAP HANA and the SAP S/4HANA AI agents pillar.
Questions S/4HANA teams ask
Is there an SAP MCP server for Claude?
We found none that SAP ships for S/4HANA finance transactions as of October 2026. SAP's route is the MCP Gateway in SAP Integration Suite, which builds MCP servers from published APIs or RFC functions. You can also run your own server, or use a product such as ChatFin, but SAP's API Policy still applies.
How do I connect Claude to SAP with MCP?
Pick the route first: the MCP Gateway in SAP Integration Suite, or a server you run with full responsibility for its security. Give it a communication arrangement on Public Edition, or a technical user with one narrow PFCG role on Private Edition and on premise. Expose a few named tools, each mapped to one published API, and keep the posting tools behind approval.
Does SAP's API Policy allow Claude to call S/4HANA APIs?
Only through architectures SAP endorses. Section 2.2.2 of the policy, published 27 April 2026, prohibits API use for AI systems that plan, select or execute sequences of API calls outside those routes. Custom APIs in your own namespace remain permitted on private cloud and on premise.
Can Claude post journal entries in S/4HANA?
It can prepare them. On Public Edition the post goes through the Journal Entry Post service in SAP_COM_0002, and general journal entries cannot be parked, so a person should approve before the call. On Private Edition and on premise, BAPI_ACC_DOCUMENT_POST is also available and documents can be parked for release in SAP.
Can Claude read ACDOCA directly?
It should not. SAP marks ACDOCA, BKPF and BSEG as not to be released and points to CDS views such as I_JournalEntryItem and I_GLAccountLineItem, or the journal entry item read API. ChatFin reads through those released interfaces.
Does an agent user need an SAP licence?
SAP's Digital Access model counts documents that bots and automated systems create in S/4HANA, at item level, and does not count reads. How agent created entries are counted on your contract is a question for your SAP account team.
Published APIs, a narrow SAP user, approval before every write.
ChatFin connects to S/4HANA through SAP's published APIs and released CDS views, and on Private Edition and on premise also through classic BAPIs, under an SAP user your administrator creates and scopes.
ChatFin prepares journal entries, supplier invoices and clearing proposals with their evidence, a named person approves each one, and only then does ChatFin write it to SAP.
Book a demoSection photograph: a row of data centre server racks with red and blue cabling, sourced from Pexels and used under the Pexels licence.
All images are served from the Pexels content network. No third party product screenshots, vendor logos or licensed media are used on this page.
See the reads on your own S/4HANA.
Bring a closed period trial balance and your AP ageing. We will run the same reads through ChatFin and show you the evidence behind each figure.