How to Connect Claude to SAP S/4HANA with MCP
A developer workstation with two monitors showing code
SAP S/4HANA · Claude · Guide

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.

At a glance
  • 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.

SAP S/4HANAClaudeMCPSAP API PolicySAP Integration SuiteJournal Entry PostClean coreERP AI agents
01

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 canOn its own, Claude cannot
Explain a trial balance export you paste inRead the live universal journal
Draft variance commentary from a reportSee which journal entries are waiting for verification
Suggest a journal entry from a descriptionCreate or post it in S/4HANA
Read supplier invoice PDFsMatch 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.

In ChatFin

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.

02

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 EditionPrivate Edition and on premise
Published APIsYes, each enabled through a communication arrangementYes, activated by your basis team
Classic BAPIs over RFCNot available to outside callersYes, SAP calls them classic APIs
Who the call runs asThe communication user of the arrangementA technical user with a PFCG role
Parking general journal entriesNot supportedAvailable

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.

Public Edition: published APIs only. Private and on premise: published APIs plus classic BAPIs. No edition: tables.
03

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.

InterfaceWhat it doesProtocolEdition
Journal Entry Post, in scenario SAP_COM_0002Creates journal entries, synchronous or asynchronousSOAPAll
Journal Entry Clearing, SAP_COM_0002Clears open itemsSOAPAll
Journal Entry Item read (API_JOURNALENTRYITEMBASIC_SRV)Reads journal entry line itemsODataAll
API_SUPPLIERINVOICE_PROCESS_SRVCreates and reads supplier invoicesODataAll
API_OPLACCTGDOCITEMCUBE_SRVReads open and cleared itemsODataAll
BANKSTATEMENTPOST_INPosts bank statementsSOAPAll
BAPI_ACC_DOCUMENT_POSTPosts accounting documentsRFCPrivate and on premise
BAPI_INCOMINGINVOICE_PARKParks supplier invoicesRFCPrivate 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.

04

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.

Diagram: SAP API Policy section 2.2.2 at the top. An AI agent reaches S/4HANA either through the MCP Gateway in SAP Integration Suite, the SAP endorsed route, or through a server you run yourself with full operational and security responsibility.
Section 2.2.2 of SAP's API Policy decides which route agent traffic can take. The MCP Gateway in SAP Integration Suite is the endorsed one.
The endorsed route is the MCP Gateway in SAP Integration Suite. SAP's own briefing on the policy (30 May 2026) says it can build MCP servers from API artefacts, API specifications or RFC functions, with OIDC sign in, rate limiting and logging. SAP's innovation guide planned it for general availability in Q1 2026.
A server you run yourself is allowed, with conditions. SAP's reference architecture for third party MCP access says the customer then carries full operational and security responsibility, and that the server must never pass the caller's token straight to a downstream API; it should use token exchange and keep secrets in a credential store.
Custom APIs in your own namespace remain permitted. The same briefing says Z and Y interfaces, custom RFCs, OData services and CDS views stay allowed on private cloud and on premise.
Fixed sequences are treated differently. ERP Today reports that rule based automation following a set call sequence falls outside the agentic restriction. An agent that chooses its own calls does not.

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.

a row of data centre server racks with red and blue cabling
The MCP server sits between Claude and S/4HANA, and SAP's policy decides where it may run.
In ChatFin

Ask any vendor, ChatFin included, which SAP endorsed route its agent traffic uses under the API Policy, and get the answer in writing.

05

The SAP user, role and licence to set up

The permissions follow the edition.

1

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.

2

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.

3

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.

4

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.

06

What to read first

Start with reads you can check against a number you already trust.

Trial balance for a closed period by company code. Read it through I_GLAccountLineItem or the journal entry item read API and compare it with the figure your team signed off.
Open supplier and customer items. Tie API_OPLACCTGDOCITEMCUBE_SRV to the AP and AR ageing your teams use. The S/4HANA payables page shows what an agent does with that population.
Entries waiting for release. On Public Edition, entries submitted in the Verify General Journal Entries app; an entry whose only approver is its submitter stays there with no processor. On Private Edition and on premise, parked documents.
Supplier invoices blocked for payment. Read them through the supplier invoice API and group them by block reason before anyone asks the agent to fix one.

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.

07

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.

StepWhoWhere
Prepare the entry and its evidenceAgentOutside SAP
Approve or rejectNamed accountantThe agent's review screen
Post through Journal Entry PostCommunication userPublic Edition
Create parked, or post through BAPI_ACC_DOCUMENT_POSTTechnical userPrivate and on premise
Release a parked documentNamed accountantSAP, under their own user
Record who prepared, approved and postedSAP and the agent logBoth

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.

In ChatFin

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.

08

What to test before production

Run these in a test tenant or a copy of production before the agent sees live data.

Scope. Ask for a company code outside the role and confirm SAP refuses it.
Read only. From a read only session, try a posting tool and confirm the server does not offer it.
Approval. Prepare an entry, leave it unapproved, and confirm nothing reaches SAP.
Known answers. Rerun the reads above and match each to the signed off figure.
Rejections. Send an entry with a mismatched tax code and confirm SAP's error comes back to the reviewer in plain words.
Audit trail. Check that SAP shows the agent user as creator and that the approver is recorded against the same document.

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.

How ChatFin connects to S/4HANA

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 demo
AM
Ashok Manthena
CEO and co founder, ChatFin

Ashok Manthena is the CEO and co founder of ChatFin, an AI agent platform for enterprise finance. He works with CFOs and controllers on governed automation of the close, payables, receivables and reporting on SAP S/4HANA, SAP ECC, SAP Business One, NetSuite, Oracle and Dynamics 365. Connect on LinkedIn.

Image credits. Header photograph: a developer workstation with two monitors showing code, sourced from Pexels and used under the Pexels licence.
Section 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.
Get started

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.

Published APIs named for your edition
A dedicated SAP user and narrow role
Every write approved by a named person first
Request a demo
Confidential & private