---
title: "How to connect SAP S/4HANA (on-prem) to Unified"
img: https://s3.us-east-2.amazonaws.com/unified-article-images/how_to_connect_sap_s_4hana_on_prem_to_unified-icon.png
date: 2026-11-23T00:00:00.000Z
updated: "2026-11-23T21:09:26.065Z"
tag: Guides
integrations: 
description: "SAP S/4HANA (On-prem) runs on your own servers. Unified connects to it directly over HTTPS for accounting, HR, commerce, CRM and file data. You don't install..."
url: "https://docs.unified.to/guides/how_to_connect_sap_s_4hana_on_prem_to_unified"
---

# How to connect SAP S/4HANA (on-prem) to Unified
------
_November 23, 2026_

SAP S/4HANA (On-prem) runs on your own servers. Unified connects to it directly over HTTPS for accounting, HR, commerce, CRM and file data. You don't install anything on your side.


## Before you start

- **SAP S/4HANA must be reachable from the internet over HTTPS.** On a private network, publish its API through a reverse proxy with a publicly trusted certificate. Include the port if it isn't 443.
- **Firewall allowlist:** allow Unified's outbound IP for your region (also shown under **API Keys → Outbound IP addresses**): US `44.199.69.244`, EU `3.65.142.239`, AU `13.239.151.208`.
- **Use a dedicated SAP user** with access only to the data you want to share.

## What you'll enter in Unified

- **System URL**: The host name of your S/4HANA system, e.g. [s4.example.com](https://s4.example.com/). It must be reachable from the internet over HTTPS.
- Then sign in to SAP S/4HANA and approve Unified's access when prompted (OAuth 2.0).

## Steps

1. Make sure OAuth 2.0 sign-in is enabled on your S/4HANA system for the user who will connect.
2. Confirm the address is reachable over HTTPS from outside your network.
3. In Unified, create a new SAP S/4HANA (On-prem) connection (or open your Authorization link), enter the System URL and sign in.
4. Save. Unified tests the connection straight away.

## Troubleshooting

- **Timeout or connection refused:** the server isn't reachable, or the firewall blocks Unified's IP.
- **Certificate error:** use a publicly trusted certificate, not a self-signed one.
- **401 or 403:** check the user's authorizations in S/4HANA.

See also: _Connecting Unified to your on-prem and self-hosted systems_.