ChatGPT SAP Integration: Connect OpenAI ChatGPT to ECC and S/4HANA

Table of contents
ChatGPT SAP integration lets users retrieve SAP data and request permitted actions through an authenticated MCP connection. Instead of uploading a spreadsheet each time information changes, a configured ChatGPT workspace can call selected SAP APIs when the user asks a question.
The aim is not to give a chatbot unrestricted ERP access. It is to make useful SAP operations available through a controlled interface, with clear identity, authorization, and audit boundaries.
Datawiza's secure MCP server for SAP connects OpenAI ChatGPT to SAP ECC and S/4HANA through the Model Context Protocol (MCP).
Watch ChatGPT Connect to SAP ECC
This demo shows the Datawiza MCP for SAP plugin installed by a ChatGPT workspace administrator. The plugin connects to Datawiza Agent Gateway, with Microsoft Entra ID authentication.
ChatGPT discovers the available SAP Gateway OData services, retrieves a supplier's five most recent purchase orders, and reports their net values, SAP status, and total. It then encounters a read-only boundary: a request to change a purchase order's delivery date leaves SAP unchanged.
The demo uses a shared, read-only SAP technical account. Datawiza also supports per-user SAP access through principal propagation, allowing SAP to enforce each user's permissions when delegated user identity and the required SAP configuration are in place. That mode is not shown in this demo. Response waits are shortened in the recording.
How ChatGPT Reaches SAP Through an MCP Plugin
The plugin gives ChatGPT access to configured tools rather than an unrestricted database connection. Each tool maps to an operation exposed through selected SAP OData APIs, using SAP Gateway or the SAP BTP API Management layer.
The flow is:
- Select the SAP integration. The user invokes the configured plugin in ChatGPT and asks a business question.
- Verify identity and policy. Datawiza Agent Gateway checks the authenticated caller and whether the requested tool call is allowed.
- Execute the SAP request. The Datawiza SAP MCP Server calls the approved API. SAP enforces the permissions of the configured backend identity.
- Return and review the answer. ChatGPT uses the tool response to answer, and Datawiza logs the call.
SAP credentials stay in the backend connection rather than ChatGPT prompts. SAP data returned by a tool does reach the AI service, so review the information being exposed and your organisation's workspace and data-retention policies.
Connect SAP to Your ChatGPT Workspace
Start by identifying a small, useful workflow, such as reading purchase-order status. Configure the necessary OData services and a least-privilege SAP connection. Deploy Datawiza as a hosted service or in your environment, then configure caller authentication and allowed tools.
Have an authorised administrator configure the custom MCP connection in ChatGPT, provide the secured endpoint, complete authentication, and review the discovered tools before making it available to the intended users. Follow OpenAI's current custom MCP server connection guide for your workspace; available settings and permissions depend on the account and workspace configuration.
An approved plugin and a successful sign-in are only the beginning. Test a permitted query, a denied operation, an expired session, and the resulting audit records. Check important amounts and statuses against SAP rather than assuming an AI-generated summary is correct.
Control ChatGPT's SAP Writes Separately from Reads
Datawiza is read-only by default. You can explicitly enable supported write operations and restrict them through Datawiza policy and SAP permissions. The recorded demo does not show enabled writes.
Before allowing changes, decide which operations are appropriate, who may request them, and where approvals must occur. ChatGPT confirmation prompts can support the user experience, but they do not replace backend authorization or business approval controls.
Choose the SAP identity model deliberately. A shared technical account uses that account's permissions, even when Datawiza knows which person initiated the call. For per-user SAP authorization, configure principal propagation and the required SAP identity mapping and trust.
No Datawiza ABAP add-on is required. That does not eliminate the work of configuring APIs, network connectivity, permissions, and a tested production rollout.
Frequently Asked Questions
Can ChatGPT connect to SAP ECC as well as S/4HANA?
Yes. Datawiza connects through configured SAP OData APIs for either system. The demo uses ECC; available tools and actions depend on your enabled services and policies.
Is signing in to ChatGPT enough to access SAP?
No. The user also needs access to the configured MCP integration and must satisfy its authentication and authorization requirements. The backend SAP identity determines which SAP permissions apply.
Do we need to build an application using the OpenAI API?
Not for the ChatGPT workspace approach shown here. Users work in ChatGPT with a configured MCP plugin. Building a separate application with OpenAI APIs is a different integration path.
Bring Live SAP Access to ChatGPT
A useful pilot proves both sides of the connection: ChatGPT can retrieve the information it needs, and cannot perform operations outside its approved scope.
Explore Datawiza's SAP MCP server, or book a demo to review your ChatGPT workspace, SAP services, and access requirements.



