Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
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


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