FruxonDocs

SAP S/4HANA

Access business partners, sales orders, purchase orders, materials, invoices, and financial data from SAP S/4HANA via OData APIs

The SAP S/4HANA integration connects your agents to SAP's OData APIs for managing business partners, sales orders, purchase orders, materials, stock, invoices, and financial data. Supports both on-premise and cloud editions.

Prerequisites

You need:

  • SAP S/4HANA System Base URL — The URL of your SAP S/4HANA system (e.g., https://my-s4hana.example.com).
  • SAP Technical User Credentials — A technical user created via transaction SU01 with authorizations for the required OData services.
  • Activated OData Services — The relevant OData services must be activated via /IWFND/MAINT_SERVICE in your SAP system.

Setup

  1. Open Integrations from the sidebar
  2. Select SAP S/4HANA from the catalog
  3. Click Add Integration Config
  4. Give the config a display name (e.g., "SAP S/4HANA - Production")
  5. Enter the Base URL of your SAP S/4HANA system
  6. For authentication, enter your SAP technical username and password (Basic Auth)
  7. Save the config

Using in Your Agent

  1. Open your agent in Agent Studio and select an Agent Step
  2. Under Attached Integration Configurations, click Attach configuration and choose your config
  3. Attach SAP S/4HANA tools from the tools panel
  4. Tools are referenced as sap_s4hana.get_sales_orders, sap_s4hana.create_business_partner, etc.

Available Tools

Business Partners

ToolDescriptionAction Type
get_business_partnersList business partners (customers, suppliers) with OData filteringReadOnly
get_business_partnerGet a specific business partner by IDReadOnly
create_business_partnerCreate a new business partnerIrreversible
update_business_partnerUpdate an existing business partnerReversible

Products & Materials

ToolDescriptionAction Type
get_productsList products (materials) with OData filteringReadOnly
get_productGet a specific product by IDReadOnly
get_material_stockGet stock levels across plants and storage locationsReadOnly

Sales Orders

ToolDescriptionAction Type
get_sales_ordersList sales orders with OData filteringReadOnly
get_sales_orderGet a specific sales order with item detailsReadOnly
create_sales_orderCreate a new sales orderIrreversible

Purchase Orders

ToolDescriptionAction Type
get_purchase_ordersList purchase orders with OData filteringReadOnly
get_purchase_orderGet a specific purchase order with item detailsReadOnly
create_purchase_orderCreate a new purchase orderIrreversible

Billing & Invoices

ToolDescriptionAction Type
get_billing_documentsList billing documents (customer invoices)ReadOnly
get_billing_documentGet a specific billing document with item detailsReadOnly
get_supplier_invoicesList supplier invoicesReadOnly
create_supplier_invoiceCreate a new supplier invoiceIrreversible

Financial Data

ToolDescriptionAction Type
get_journal_entriesList journal entry line itemsReadOnly
get_cost_centersList cost centersReadOnly
get_profit_centersList profit centersReadOnly

On this page