Skip to content
Portalby Webisoft®Book a demo

Learn / Connect an on-prem ERP safely

How to connect on-prem SAP S/4HANA without opening a port

Install the On-site connector on a Windows machine that can reach SAP S/4HANA and pair it with a one-time code. It only makes outbound HTTPS connections, so SAP S/4HANA stays behind your firewall with no port to open.

01About

About SAP S/4HANA.

SAP S/4HANA is SAP's ERP suite, built on the SAP HANA database and the successor to SAP ERP, better known as ECC. It runs as SAP S/4HANA Cloud public edition, as a private cloud edition, or on your own servers, and SAP has committed to maintaining S/4HANA until the end of 2040.

Many companies still run SAP ERP 6.0, the ECC core of SAP Business Suite 7. SAP's mainstream maintenance for it runs until the end of 2027, with optional extended maintenance to the end of 2030, so most ECC customers are planning a move to S/4HANA while their business keeps running on ECC.

Sales in both systems are organized by sales area: a sales organization, a distribution channel and a division. Quotations, sales orders, deliveries and billing documents are separate documents that follow one another, which is what any portal on SAP has to respect.

Portal by Webisoft is a B2B portal for SAP S/4HANA: customer self-service and team apps on live SAP S/4HANA data.

02The hard part

Why connecting to SAP S/4HANA is hard.

ECC and on-premise S/4HANA sit behind your firewall, and opening an SAP gateway or RFC port to the internet is what Basis and security teams refuse.

ECC has a support end date

Mainstream maintenance for SAP Business Suite 7, which includes SAP ERP 6.0, ends with 2027 and optional extended maintenance with 2030, while S/4HANA is maintained until the end of 2040. Anything you build on ECC today has to survive the move to S/4HANA, where the data model and the APIs are different.

Every API sits behind a communication arrangement

In S/4HANA Cloud public edition, an outside system calls an API only after an administrator creates a communication user, a communication system and a communication arrangement for the API's communication scenario, such as SAP_COM_0008 for business partners. A portal that reads customers, products, prices, stock, orders, deliveries and billing needs one arrangement per scenario.

ECC speaks RFC through SAP's own connector

ECC and on-premise systems without an exposed OData gateway are reached over RFC, which from Windows means the SAP Connector for Microsoft .NET. NCo 3.0 is out of support, NCo 3.1 runs on .NET Framework and on .NET 8 only from patch level 3.1.5, and the download comes from SAP, so the integration machine has to be set up with the right build.

03Options

Your options.

OptionFits whenWatch out for
Native SAP S/4HANA add-onsYou need one narrow function and an add-on covers it.Each add-on is its own product to license, learn and upgrade.
Generic integration platformYou have someone in-house to build and maintain the flows.You still build the screens, the AI layer and the SAP S/4HANA write rules yourself.
Custom codeThe need is unique and you have developers who know SAP S/4HANA.Upgrades and staff changes put the integration at risk.
Portal by WebisoftYou want customers, your team and AI agents working on live SAP S/4HANA data.It works on top of SAP S/4HANA; it does not replace it.
04How Portal connects

How Portal reaches SAP S/4HANA.

For S/4HANA Cloud, public or private edition, Portal uses SAP's released OData APIs for business partners, products, pricing conditions, stock, sales quotations, sales orders, deliveries, billing documents and open items. Your administrator sets up the communication arrangements, gives Portal the API host and a communication user or OAuth client, and picks the sales area and plant to work in. On-premise S/4HANA with its OData gateway works the same way, called directly or through the On-site connector relay inside your network so nothing is opened to the internet.

For ECC 6.0, and S/4HANA on-premise if you prefer RFC, the On-site connector runs on a Windows machine in your network with SAP's .NET Connector 3.1.5 or later, which you download from SAP. It reads tables over RFC and writes through SAP's BAPIs, so SAP's own checks apply. Either way, every quote and order carries a portal reference that Portal looks up before creating, so a retry never enters a document twice, and an accepted quotation becomes a sales order that references it.

05Before you start

What you need.

06Steps

Step by step.

Your Portal team sets up the SAP S/4HANA connection with you during onboarding, so the first step is done together. The rest is yours to change any time.

  1. Generate a pairing code

    In Portal, ERP, On-site connector, an admin chooses Generate pairing code. It works once and expires after 15 minutes.

  2. Install and pair the agent

    Install the On-site connector on the Windows machine, then in an admin command prompt run portal-on-site pair with the code.

  3. Relay to the OData gateway, or RFC for ECC

    For on-premise S/4HANA, run portal-on-site configure relay, choose the SAP S/4HANA connector and enter the OData gateway host as the agent sees it on your network, then set the connection in Portal to go through the agent. For ECC 6.0, run portal-on-site configure sap_erp instead and enter the application server, system number, client, RFC user and sales area. That driver reads tables over RFC and writes through BAPIs with SAP's .NET Connector 3.1.5 or later, which you download from SAP.

  4. Test, start and watch

    Run portal-on-site test, start the Portal On-site Connector service, then check ERP, Sync health in Portal for the connector status and the data received.

07What syncs

What syncs with SAP S/4HANA.

RecordReadWrite backNote
Customers, contacts and ship-to partnersYesYesCredit limit and block when credit management is read; on S/4HANA over RFC customers are not created
Products (materials)YesYesThose with sales data in your sales area
List and customer pricesYesNoFrom pricing condition records valid today; scales are not read
Stock by plant and storage locationYesYesUnrestricted stock is available; adjustments and transfers post goods movements
Sales quotationsYesYesAn accepted quotation becomes a sales order that references it
Sales ordersYesYesSAP's credit block shows as on hold
Outbound deliveriesYesYesShipped once goods issue is posted; bill of lading as tracking
Billing documentsYesYesInvoices, credit and debit memos; billed from the order's deliveries
PaymentsYesYesRead from cleared items. Cloud API: posted as a journal entry, the open item is then cleared in SAP. ECC: not posted
Customer returnsYesYes
Purchase orders and goods receiptsYesYesCreate, change dates and quantities, receive goods

Limits today: On S/4HANA Cloud a payment is posted as a journal entry and your team clears the open item; on ECC payments are not posted from the portal.

08Next

What you can do next.

09FAQ

SAP S/4HANA questions, answered.

Does SAP S/4HANA need to be on the internet?

No. The agent calls out to Portal over HTTPS; nothing calls in.

What does the agent log?

For relayed requests, only the method, path, status and duration, kept on the machine for 14 days. Its secrets are encrypted on that machine.

How do we know it is working?

ERP, Sync health shows the connector online or offline, what it sent in the last 24 hours and any failed batches you can try again.

10More guides

Keep going.

Sources