> ## Documentation Index
> Fetch the complete documentation index at: https://docs.satyakod.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SAP S/4HANA

> Keep products in step with SAP's material master and turn production orders into draft batches.

Connect SAP S/4HANA and Satyakod reads, every hour:

* **Products** from the material master (`API_PRODUCT_SRV`): the SAP product number becomes the
  SKU, the English description the name, and the EAN/UPC the GTIN. Only the product types you
  choose are read (finished goods `FERT` and trading goods `HAWA` by default); products marked for
  deletion are skipped.
* **Production orders** (`API_PRODUCTION_ORDER_2_SRV`) planned from today on, if you choose: each
  becomes a **draft batch** once, with the order number as its lot and the planned start as its
  production date. Your team reviews and signs it in [Batches](https://docs.satyakod.com/guides/products-and-batches.md).

## Connect

Admins open **Settings → Integrations → SAP S/4HANA → Connect** and enter:

| Field | |
| - | - |
| SAP address | Your S/4HANA API address, `https://` |
| Client | The SAP client number, up to 3 digits |
| User and password | A communication user with the API roles for products and production orders. The password is stored encrypted. |
| Product types | SAP product type codes, such as `FERT, HAWA` |
| Create draft batches from production orders | On by default |

Satyakod tests the connection when you save and runs a first sync. **Sync now** runs another;
**Disconnect** stops syncing (products and batches already made stay).

## Sync results

The card shows the last sync: products added and updated, production orders imported, and orders
skipped (their material isn't a product here, the quantity is missing or out of range, or a
[pilot](https://docs.satyakod.com/guides/pilot-workspace.md) has reached its code limit). If SAP refuses the user or password,
the card says so.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.