Skip to Content
Technical Articles

SAP Sales Cloud integration with Salesforce (SFDC) without Advancto adapter

Introduction

Advantco Salesforce (SFDC) adapter for SAP Cloud Platform Integration enables Salesforce integration with SAP and non-SAP system through SAP Cloud Platform Integration. This requires additional license for Advantco adapter.

In many cases, Customers would not opt for additional cost and instead would like to maximize their existing SAP Sales Cloud investments for setting up the integration with SFDC. This blog post will help the integration consultants in integrating SAP Sales Cloud with SFDC without using the Advantco adapter.


Integration Architecture

Architecture

Key points to be noted:

  • Custom package needs to be developed for integrating SAP Sales Cloud with SFDC in SAP Cloud Platform Integration
  • SAP Sales cloud supports REST as well as SOAP based service, however SFDC supports REST services only.

Authentication

  • As SFDC supports REST services, it is recommended to use OAuth authentication

 

Project Scenario

In this blog post, we will show how a Prospect created in SAP Sales Cloud can be replicated to SFDC via the custom interfaces developed in SAP Cloud Platform Integration.

  • Against Individual customer, tickets are getting created in SAP Sales Cloud.
  • In Tickets overview page, custom action is created to trigger the replication of One-time customer to SFDC.
  • For this CPI has created the custom IFlow and shared the end point to SAP Sales Cloud
  • In turn SAP Sales cloud consumed the end point and created respective communication arrangement and on the click of custom action share the required information for One-time customer create in SFDC

Implementation Steps

Step 1: Custom IFlow

  • SAP Sales cloud shared the WSDL structure to CPI
  • CPI is configured with SOAP adapter and shared the end point with SAP Sales cloud

Step 2:

  • Based on the WSDL structure from SAP Sales cloud and schema structure in which SFDC expects data we introduced the mapping of fields.

Sample incoming payload

<n0:DSM_BPCreateCreateRequest_sync xmlns:n0=”http://sap.com/xi/SAPGlobal20/Global” xmlns:soap-env=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:prx=”urn:sap.com:proxy:LY8:/1SAI/TASCBC2450914F26C9449E4:804″>

  <BasicMessageHeader/>

  <DSM_BPCreate>

    <CountryCode>GB</CountryCode>

    <Email>test@test.com</Email>

    <FirstName>test</FirstName>

    <LastName>DSM1</LastName>

    <Phone>+44 533253255</Phone>

    <RoleCode>ZB2C</RoleCode>

    <Sales_Org>9001</Sales_Org>

    <Distr_Channel>01</Distr_Channel>

    <Division>01</Division>

    <AccountNumber__c>0001125006</AccountNumber__c>

    <C4C_Account__c>Onetime Account</C4C_Account__c>

    <EmailAddress__c>test@test.com</EmailAddress__c>

    <BillingCountry>GB</BillingCountry>

    <CountryID__c>GB</CountryID__c>

    <SalesOrganization__c>9001</SalesOrganization__c>

    <DistributionChannel__c>01</DistributionChannel__c>

    <Division__c>01</Division__c>

  </DSM_BPCreate>

</n0:DSM_BPCreateCreateRequest_sync>

Step 3:

  • Since SFDC works with JSON payload we convert XML to JSON format
  • With JSON payload we call the end points of SFDC to maintain One-time customer in SFDC

  • Since we are having REST based service authentication methodology is “OAuth2 Client Credential”
  • For this in security material in CPI we maintained OAUth2 credential

Step 4:

  • We receive the response from SFDC and update same to SAP Sales Cloud

Sample SFDC Response

{“id”:”0011l00000d8TX5AAM”,”success”:true,”errors”:[]}

Step 5:

  • As we are not using standard interface ID mapping for SFDC ID and SAP Sales cloud ID of One-time customer would not be handled by system.
  • Hence to maintain ID mapping we consume standard SOAP service provided by SAP Sales cloud

 

Maintenance Parameter for ID Mapping

  • System UUID – Is provided by SAP Sales cloud

Note: Identifier information from SAP Sales Cloud is as follow

Conclusion:

This blog post will help the integration consultants to set up the integration between SFDC & SAP Sales Cloud using custom interfaces via SAP Cloud Platform Integration.

 

 

3 Comments
You must be Logged on to comment or reply to a post.
  • Hi Preeti,

     

    A correction on your post - there is an OEM partnership between SAP and Advantco, so the Salesforce adapter in included in the CPI license at no additional cost. You can check it out yourself on the CPI tenant or SAP API Business Hub.

    https://api.sap.com/package/SAPOEMSalesForceAdapterbyAdvantco?section=Overview

     

    Best regards

    Eng Swee

    /
  • Hi - Can you please confirm do we need additional license to install Advancto SFDC adapter, since our Basis team is not able to download by going below option.

    SOFTWARE DOWNLOAD CENTER _SAP Cloud Platform Integration =>SAP HANA CLOUD INTEGR.(PI) 1.0 => COMPRISED SOFTWARE COMPONENT VERSIONS and select the adapters which you want to download:
    SalesForce Adapter by Advantco -> ADVANTCO SFO ADAPT FOR HCI 1.0

     

    What is the best option do you recommend to integrate one SFDC to another SFDC instance pls ?

     

    Regards,

    Venu

  • Hi Preeti,

     

    This blog is very informative, thanks.

    I have a query, do you have any idea on how the ‘client credentials’ oauth is set up in SFDC end.

    Right now when I try in CPI and postman using 'client_credentials' as grant type I am getting 'unsupported_grant_type" error response.

    Kind Regards,

    Jovita