Skip to content
Portalby Webisoft®Book a demo

Integrations / SAP S/4HANA

Show SAP S/4HANA data in Salesforce

Connect SAP S/4HANA and Salesforce to Portal. SAP S/4HANA customers and contacts become Salesforce accounts and contacts, each account can show balance, open orders and credit hold, and every an S/4HANA sales quotation of your quotation type (QT by default), with a binding period end date can be tracked as an opportunity.

01What syncs

What reaches Salesforce from SAP S/4HANA.

SalesforceFrom SAP S/4HANADirection
AccountEach SAP S/4HANA customer, the S/4HANA business partner in the customer role for your sales area, where an order block on the customer or its sales area, or a blocked credit management account, counts as credit hold: name, phone and the website from the email domain, matched on a Portal ID fieldPortal writes; unmatched Salesforce accounts come in as company leads
ContactThe SAP S/4HANA contacts of each linked customerPortal writes; contacts made only in Salesforce come into Portal, and an edit to a SAP S/4HANA contact becomes a change for your team to approve
Account summary fields (optional)The customer's open balance and customer number, the count of open orders, the last five orders with status, and credit holdPortal writes, as text fields on the account
OpportunityOne per an S/4HANA sales quotation of your quotation type (QT by default), with a binding period end date or order, with its total and close datePortal writes; Salesforce changes to it are not read back
Product (optional)Item code, unrestricted stock by S/4HANA plant and storage location as on hand and available, and the base pricePortal writes
Lead, Task, NoteSalesforce leads, tasks and notesPortal reads them; workflows, agents and staff can create new ones
02Set it up

Connect SAP S/4HANA and Salesforce.

  1. Set up communication arrangements and connect

    In S/4HANA, an administrator creates a communication user, a communication system and one communication arrangement per API scenario Portal calls, such as SAP_COM_0008 for business partners and SAP_COM_0109 for sales orders. Under Setup, ERP, ERP system in Portal, choose SAP S/4HANA, enter the API host (for example https://my000000-api.s4hana.cloud.sap), pick Basic with the communication user or OAuth with Connect with SAP, add the SAP client for private cloud or on-premise, and set the sales organization, distribution channel, division and plant. Test connection checks that the sales area has customers.

  2. Connect Salesforce

    In Connect, Integrations, Salesforce, choose Connect Salesforce and sign in as a Salesforce administrator. Portal adds a Portal ID field to accounts, contacts and opportunities, the account summary and product stock fields, and a Portal integration permission set, then runs a first sync of your SAP S/4HANA customers and contacts.

  3. Choose what Portal writes

    Tick Also write balance, open orders, recent orders and credit hold on each Salesforce account so reps see the SAP S/4HANA numbers on the account page. Turn on Products and stock to send item stock and base prices. Accounts Portal cannot match with confidence wait under Companies to check for staff to approve.

  4. Track quotes as opportunities

    Add the Create CRM deal action to a workflow that runs when a quote is sent, and Change CRM deal when it is won or lost. Each an S/4HANA sales quotation of your quotation type (QT by default), with a binding period end date becomes an opportunity at Proposal/Price Quote and moves to Closed Won when Portal posts a sales order whose items reference the quotation items and carry the quote's PO number, and a quotation that already has a follow-on order returns that order instead.

  5. Give reps the rest in the rep portal

    Reps sign in to their own Portal site and see only their assigned customers with balance, credit limit and credit hold. They can open each customer's S/4HANA billing documents, with balances and due dates from the customer's open items and place orders, quotes and returns on the customer's behalf, logged under their name.

03The SAP S/4HANA side

How Portal reads 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.

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
04Limits

What it does not do.

05FAQ

SAP S/4HANA and Salesforce, answered.

Can reps see SAP S/4HANA payment status in Salesforce?

Not invoice by invoice. With the account summary turned on, each Salesforce account shows the customer's open balance, open and recent orders and credit hold. Reps open S/4HANA billing documents, with balances and due dates from the customer's open items themselves in the rep portal.

Does Salesforce write anything back into SAP S/4HANA?

No. SAP S/4HANA owns customers and their contacts. A Salesforce edit to a SAP S/4HANA contact becomes a proposed change that staff approve in Portal, and nothing is written into SAP S/4HANA from Salesforce.

What stops duplicates?

Every account, contact and opportunity carries a Portal ID that Portal upserts on, and orders reaching SAP S/4HANA carry a PR marker in PurchaseOrderByShipToParty on orders and PurchaseOrderByCustomer on quotations, which Portal filters for before every create.

Which communication arrangements does Portal need in S/4HANA Cloud?

One per API it calls: SAP_COM_0008 business partners, SAP_COM_0009 products, SAP_COM_0294 pricing, SAP_COM_0164 stock, SAP_COM_0118 sales quotations, SAP_COM_0109 sales orders, SAP_COM_0106 outbound deliveries and SAP_COM_0120 billing, plus SAP_COM_0303 for open items and SAP_COM_0740 for credit management if you use them.

Related

Keep reading.