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.
What reaches Salesforce from SAP S/4HANA.
| Salesforce | From SAP S/4HANA | Direction |
|---|---|---|
| Account | Each 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 field | Portal writes; unmatched Salesforce accounts come in as company leads |
| Contact | The SAP S/4HANA contacts of each linked customer | Portal 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 hold | Portal writes, as text fields on the account |
| Opportunity | One 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 date | Portal 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 price | Portal writes |
| Lead, Task, Note | Salesforce leads, tasks and notes | Portal reads them; workflows, agents and staff can create new ones |
Connect SAP S/4HANA and Salesforce.
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.
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.
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.
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.
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.
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 record | Read | Write back | Note |
|---|---|---|---|
| Customers, contacts and ship-to partners | Yes | Yes | Credit limit and block when credit management is read; on S/4HANA over RFC customers are not created |
| Products (materials) | Yes | Yes | Those with sales data in your sales area |
| List and customer prices | Yes | No | From pricing condition records valid today; scales are not read |
| Stock by plant and storage location | Yes | Yes | Unrestricted stock is available; adjustments and transfers post goods movements |
| Sales quotations | Yes | Yes | An accepted quotation becomes a sales order that references it |
| Sales orders | Yes | Yes | SAP's credit block shows as on hold |
| Outbound deliveries | Yes | Yes | Shipped once goods issue is posted; bill of lading as tracking |
| Billing documents | Yes | Yes | Invoices, credit and debit memos; billed from the order's deliveries |
| Payments | Yes | Yes | Read from cleared items. Cloud API: posted as a journal entry, the open item is then cleared in SAP. ECC: not posted |
| Customer returns | Yes | Yes | |
| Purchase orders and goods receipts | Yes | Yes | Create, change dates and quantities, receive goods |
What it does not do.
- Invoice lines, payment status and credit limits from SAP S/4HANA are not written to Salesforce; reps see them in the rep portal.
- Portal syncs with Salesforce every 15 minutes, and soon after customers or contacts change in the ERP. It is not instant.
- Changes made to opportunities in Salesforce are not read back, so winning one there does not start a workflow in Portal.
- The Salesforce connection is tested against a Salesforce stand-in so far, so your Portal team sets it up with you on your org.
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.