Skip to main content
SAP actions let an agent work with SAP S/4HANA data directly in a flow. An agent can create, update, read, list, and delete business partners, read materials, and manage purchase orders and sales orders, then pass the results to later steps.

Supported actions

Prerequisites

Store your SAP API key as an SAP credential in Credential Management. Select that credential on every SAP action.

How to use these actions

  • Every action needs your tenant Base URL. Supply the Base URL of your S/4HANA tenant, such as https://tenant.s4hana.cloud.sap, on every action.
  • Map text inputs from earlier steps. Inputs such as identifiers and names accept a value mapped from a previous step.
  • Paging numbers take fixed values. The Top and Skip numbers are entered as fixed values.
  • Get All actions accept OData query options. Use Filter to narrow results, Top to limit the number returned, and Skip to page through results.
  • Materials are read only. You can read materials with Get and Get All.
  • Choose names by partner type. For a person business partner, provide a first and last name. For an organization, provide the organization name.

Actions

Business partner

SAP Business Partner Create

Creates a new business partner.

SAP Business Partner Update

Updates an existing business partner.

SAP Business Partner Get

Retrieves a business partner by ID.

SAP Business Partner Get All

Lists business partners.

SAP Business Partner Delete

Deletes a business partner.

Material

SAP Material Get

Retrieves a material by ID.

SAP Material Get All

Lists materials.

Purchase order

SAP Purchase Order Create

Creates a new purchase order.

SAP Purchase Order Update

Updates an existing purchase order.

SAP Purchase Order Get

Retrieves a purchase order by ID.

SAP Purchase Order Get All

Lists purchase orders.

Sales order

SAP Sales Order Create

Creates a new sales order.

SAP Sales Order Update

Updates an existing sales order.

SAP Sales Order Get

Retrieves a sales order by ID.

SAP Sales Order Get All

Lists sales orders.

Example

An agent that creates a sales order for a known customer:
1

Find the customer

A SAP Business Partner Get All action with a Filter locates the customer so a model step can confirm the Sold To Party number.
2

Create the sales order

A SAP Sales Order Create action sets the Base URL, Sales Order Type, Sales Organization, Distribution Channel, Organization Division, and the matched Sold To Party.
3

Confirm

A model step summarizes the created sales order, including its returned identifier, for the activity log.

Troubleshooting

Confirm the stored API key is valid and has not been rolled, and that the Base URL points to the same tenant the key belongs to.
Every SAP action needs the Base URL of your S/4HANA tenant, such as https://tenant.s4hana.cloud.sap. Confirm the value has no trailing path and is reachable.
The Business Partner ID, Material ID, Purchase Order ID, or Sales Order ID does not exist in this tenant. Use a Get All action with a Filter to discover valid IDs.
Create actions require their organizational fields. For a business partner, set Business Partner Category and the matching name fields. For orders, set the order type and organization fields.
For issues common to every vendor, see the Actions overview.