Skip to content
ERP & accounting

SAP S/4HANA MCP server: ask questions, get governed answers

SAP S/4HANA is SAP's ERP system; it holds the general ledger, sales orders, purchasing, inventory, materials and production data.

Try it on your own data in a pilot.

SAP S/4HANA AI analytics: what you can ask

Typical questions from finance and supply chain teams. Each answer shows the definition, source and query behind it.

  • What is total billed revenue by company code this quarter versus last?
  • Which open purchase orders are past their delivery date, by plant?
  • What is current stock value by material group and plant?
  • Show the top 10 customers by open sales order value.
  • Which vendor invoices are blocked for payment, and why?
  • Compare cost center actuals with plan for the last three months.

Worked example: a governed SAP S/4HANA answer

One question, and everything the answer shows so you can check it. The figures are invented sample data.

Which open purchase order items are past their delivery date, by plant?

Approved definition: Overdue purchase order item

A purchase order item that is not completely delivered and not deleted, with a schedule line delivery date before today, counted by plant.

Source

  • A_PurchaseOrderItem (Plant, IsCompletelyDelivered)
  • A_PurchaseOrderScheduleLine (ScheduleLineDeliveryDate)

Query (OData request (shortened))

GET API_PURCHASEORDER_PROCESS_SRV/A_PurchaseOrderItem
  ?$filter=IsCompletelyDelivered eq false
       and PurchasingDocumentDeletionCode eq ''
  &$expand=to_ScheduleLine
→ keep items with ScheduleLineDeliveryDate before today
→ count per Plant

Result

Sample data: overdue purchase order items by plant, invented figures
PlantOverdue itemsOpen value
101014€182,400
10209€96,750
17105$41,300

Common pitfalls when asking SAP S/4HANA questions

Each one is settled once in an approved definition, so every person and every assistant gets the same answer.

  • Company code, plant and controlling area

    Financial, logistics and controlling questions roll up differently. "By site" needs a definition that says whether it means plant or company code.

  • Document, local and group currency

    S/4HANA stores amounts in several currencies at once. Summing document currency across company codes mixes euros and dollars.

  • Fiscal year variants and special periods

    Fiscal years need not match the calendar, and special periods 13 to 16 hold closing entries. The definition says whether they are included.

How Nexatron connects to SAP S/4HANA

Whose permissions
Each person connects their own SAP S/4HANA account, so answers return only the records that person can already see in SAP S/4HANA.
Read and write
Read-only. Nexatron reads SAP S/4HANA data to answer questions and never writes to SAP S/4HANA.
Setup
Sign-in happens on the vendor's own OAuth consent screen; Nexatron never sees a password. Steps: choose the source → check prerequisites → enter connection details → approve access → verify → ask. No data migration and no pipeline to build: data is queried where it lives.

SAP S/4HANA MCP connector for Claude, ChatGPT and Copilot

Nexatron's hosted MCP server is a governed SAP S/4HANA MCP connector: Claude, ChatGPT and Microsoft Copilot ask questions of your SAP S/4HANA data through it. Each person signs in as themselves, so the assistant sees only what they may see.

Connect SAP S/4HANA to Claude, ChatGPT or Copilot

  1. Connect SAP S/4HANA to your Nexatron workspace.
  2. In Claude, add Nexatron from Claude's connector directory. In ChatGPT or Copilot, add a custom MCP connector with the server URL https://api.nexatron.io/api/v1/mcp.
  3. Sign in with your own Nexatron identity (OAuth 2.1), then ask your SAP S/4HANA questions.
How the Nexatron MCP server works

SAP S/4HANA connector FAQ

Can I ask SAP S/4HANA questions without writing queries?
Yes. The connector is available now. Ask in Teams, Slack, the Nexatron web app, or an AI assistant connected through Nexatron's MCP server.
Does Nexatron respect SAP S/4HANA permissions?
Yes. With a personal connection, answers return only the SAP S/4HANA records that person can already see.
Can Nexatron change data in SAP S/4HANA?
No. Nexatron only reads SAP S/4HANA data.
What do I need to connect SAP S/4HANA?
A user who can approve access on the vendor's own sign-in screen.
Is there a SAP S/4HANA MCP server for Claude, ChatGPT or Copilot?
Yes: Nexatron's hosted MCP server, once SAP S/4HANA is connected to your workspace. It is Nexatron's server, not one published by SAP S/4HANA, and the assistant gets the same governed answer as the Nexatron app.
Do I need SAP Analytics Cloud or a warehouse before asking SAP questions?
No. Nexatron queries S/4HANA through SAP's APIs when a question is asked, with no data copy. If you already run an SAP analytics tool or warehouse, keep it; definitions can match the figures it reports.
Can SAP reporting questions use our company codes and fiscal year?
Yes. Company code, plant and fiscal period are standard dimensions, and definitions record your fiscal year variant so "this quarter" means your quarter.
How is Nexatron different from SAP's own AI assistant?
SAP's AI features work inside SAP applications. Nexatron answers from Teams, Slack, the web app or a connected assistant, applies the same definitions across SAP and non-SAP systems, and shows the request behind each answer.

Try Nexatron on your own SAP S/4HANA data

A pilot starts with three questions your team already asks and the report you trust for each, so you can check the answers yourself.

SAP S/4HANA is a trademark of its owner. Nexatron is not affiliated with or endorsed by it; the name and mark identify the system Nexatron connects to.