# SAP S/4HANA MCP for AI Agents AI Agent Connect

> SAP S/4HANA MCP lets you manage your ERP operations through a natural conversation with your AI agent. It handles purchase orders, business partner records, inventory levels, and financial postings. Instead of wrestling with the SAP GUI, you can ask your agent to check stock, create POs, or pull G/L balances directly. It's the fastest way to bridge your enterprise data with the power of your AI client.

## Overview
- **Category:** industry-titans
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_eqX5erHLdIAURtxCaYfxRaRdpIvxLK4SXtvRKzq9/ai-agent-connect
- **Tags:** purchase-orders, master-data, inventory-management, financial-postings, business-partners, enterprise-resource-planning

## Description

Imagine you're in the middle of a supply chain crunch. Usually, you'd have to log into a complex ERP system, navigate through nested menus, and hunt for a specific stock level or purchase order status. It's slow and prone to human error. With this Connector, you just ask your AI agent. You can check if a supplier is ready, see if a purchase order was approved, or get a snapshot of your G/L balances without ever opening a new tab. It turns your AI client into an ERP power user that knows your inventory and your partners inside and out.

Whether you're pulling custom data via OData or managing a high volume of business partners, this connector handles the heavy lifting. You don't need to be an SAP expert to get the data you need. By hosting this on Vinkius, you get a reliable way to connect your enterprise data to your favorite AI tools, making it easy to move from searching for data to making decisions in seconds.

## Tools

### get_business_partner
Fetch the specific details for a business partner using their unique ID. Use this to quickly pull partner profiles.

### create_business_partner
Add new business partners to your system with basic profile information. This simplifies the onboarding of new vendors.

### list_purchase_orders
Filter and view your purchase orders using specific supplier or status criteria. This helps you track pending orders quickly.

### create_purchase_order
Generate new purchase orders by providing the necessary company and line item details. Use this to automate order creation.

### list_sales_orders
Retrieve a list of sales orders filtered by your specific organizational needs. It gives you a clear view of your sales pipeline.

### get_material_stock
Check current material quantities across all your different storage locations. This is perfect for real-time inventory checks.

### get_gl_balances
Pull G/L account balances to get a quick look at your current financial standing. Use it for fast balance checks.

### query_odata
Run custom OData v4 queries to get specific data points not covered by standard tools. It provides tailored data access.

### list_business_partners
Search and list your business partners using specific filters like category. This helps manage your vendor list.

## Prompt Examples

**Prompt:** 
```
Show me all pending purchase orders for plant 1000 above €50,000.
```

**Response:** 
```
Found 7 pending POs for Plant 1000 above €50K:

| PO Number | Item Description | Value | Supplier |
| :--- | :--- | :--- | :--- |
| 4500012345 | Raw Materials Q2 | €125,000 | ACME GmbH |
| 4500012350 | Server Equipment | €89,500 | TechCorp |
| ... | ... | ... | ... |

**Total Pending Value:** €487,230. Would you like me to approve or view details?
```

**Prompt:** 
```
What's the current stock level for material MAT-2024-A across all plants?
```

**Response:** 
```
Here are the current stock levels for **MAT-2024-A**:

*   **Plant 1000 (Berlin):** 2,450 units
*   **Plant 2000 (Shanghai):** 1,800 units
*   **Plant 3000 (São Paulo):** 920 units

**Total Available:** 5,170 units.

⚠️ *Note:* São Paulo is currently below the safety stock threshold of 1,000 units. Want me to create a purchase requisition?
```

**Prompt:** 
```
Create a business partner record for 'NovaTech Solutions' as a supplier.
```

**Response:** 
```
✅ **Success!** I've created a new business partner record.

*   **Name:** NovaTech Solutions
*   **ID:** BP-0010045678
*   **Category:** Organization
*   **Role:** Vendor

Would you like me to add bank details, purchasing organization assignments, or a contact person next?
```

## Capabilities

### Create purchase orders
Generate new purchase orders by providing the necessary company and line item details.

### Check real-time stock
See available material quantities across all your different storage locations instantly.

### List business partners
Search and filter your vendor and customer records using specific categories or filters.

### Pull G/L balances
Retrieve G/L account balances to get a quick look at your current financial standing.

### Execute custom OData queries
Run custom OData v4 queries to get specific data points not covered by standard tools.

### Query production status
Check production order statuses and material requirements planning results.

### Retrieve sales data
Get sales order delivery status and billing documents across your organization.

## Use Cases

### Tracking pending supplier orders
A procurement lead needs to know if a supplier is over capacity. They ask the agent to list all pending POs for that supplier and check the current status.

### Identifying inventory shortages
A warehouse manager sees a low stock alert. They use get_material_stock to see levels across all plants and ask the agent to summarize the shortages.

### Posting journal entries
A finance clerk needs to post a journal entry. They tell the agent to check the current G/L balance and then post the entry using the relevant account.

### Auditing specific plant data
A consultant needs to audit a specific region. They use query_odata to pull a custom list of all orders from a specific plant in a single request.

## Benefits

- Stop digging through menus to find stock levels with get_material_stock.
- Create purchase orders faster by letting your agent handle the JSON structure via create_purchase_order.
- Pull financial data instantly with get_gl_balances to skip manual reporting.
- Manage your entire vendor list easily using list_business_partners and create_business_partner.
- Access custom data points on demand using the query_odata tool for specific needs.
- Get a clear view of your sales pipeline with list_sales_orders without navigating the GUI.

## How It Works

The bottom line is it turns your AI agent into a functional operator for your SAP environment.

1. Subscribe to the SAP S/4HANA MCP on Vinkius.
2. Provide your SAP S/4HANA Communication User credentials and instance URL.
3. Ask your AI client to perform ERP tasks like checking stock or listing orders.

## Frequently Asked Questions

**Can the SAP S/4HANA MCP create purchase orders?**
Yes. You can ask your AI agent to create new purchase orders by providing the company code, supplier details, and line items. It handles the data structure for you so you don't have to manually enter every field.

**How does the SAP S/4HANA MCP help with inventory?**
It allows you to check real-time material stock levels across different plants and storage locations. You can quickly identify shortages or verify availability without opening any SAP screens.

**Can I use the SAP S/4HANA MCP for financial postings?**
Yes. You can use it to pull G/L account balances and post journal entries directly through your AI client. It makes it much easier to handle routine financial tasks using natural language.

**Does the SAP S/4HANA MCP support custom OData queries?**
Yes. It supports OData v4 queries, which means you can get specific data points that aren't covered by the standard tools. This gives you flexible access to your S/4HANA data.

**How do I connect my SAP S/4HANA system to my AI agent?**
Once you subscribe on Vinkius, you just need to provide your SAP Communication User credentials and your instance URL. After that, your AI client can start interacting with your ERP.

**Can the SAP S/4HANA MCP manage my business partners?**
It can. You can list existing business partners, search for them using specific filters, and create new records for organizations or individuals directly through your chat interface.

**What authentication does SAP S/4HANA require?**
SAP S/4HANA uses Communication Arrangements with a dedicated Communication User. You create a technical user in the Fiori Launchpad, assign it to a Communication System, and link it to the appropriate Communication Scenario (e.g. SAP_COM_0008 for Business Partners).

**Can I create purchase orders through the agent?**
Yes. The `create_purchase_order` tool posts to the A_PurchaseOrder OData endpoint. Provide the supplier, purchasing organization, plant, material, quantity, and price — the agent returns the PO number on success.

**Does it support querying custom OData services?**
Absolutely. The `query_odata` tool executes GET requests against any OData v4 service exposed via your Communication Arrangement, including custom CDS views. Full $filter, $expand, and $select support is included.

**Can I check stock levels across multiple plants?**
Yes. The `get_material_stock` tool queries the A_MaterialStock OData service, returning current stock quantities by plant and storage location. You can filter by material number, plant, or storage location.