Skip to Content

Introduction:

One of the challenges for any Salesforce and SAP PI/PO integration project is getting data from Salesforce back to SAP in reliable and secured way. Salesforce provides different ways like Streaming API, Queries using SOAP API or APEX callouts. This blog covers one specific option: Outbound Messaging.

Outbound Messaging:

Using Outbound messaging, you can define fields within Salesforce for which a notification will be send to SAP PI/PO when values of these fields are changed. Outbound messaging is part of a workflow rule defined in Salesforce for a specific object.

One important feature of Outboundmessaging is that it guarantees delivery of messages that are not older than 24 hrs. This means that if for some reasons the PI/PO system is temporal inaccessible, Salesforce will retry to deliver the data at later time. However, keep in mind that the data may be out of order when arriving to the PI/PO system.

Example of Outbound Messaging:

We will use the Opportunity object as an example on how to setup Outbound messaging on Salesforce side and how to use the Advantco SFDC adapter to listen for messages from Salesforce.

1.       Salesforce – Create a new workflow rule

/wp-content/uploads/2015/04/pic1_675502.jpg

2.       Salesforce – Define a new Outbound message

       Create a new Workflow rule for the Opportunity object.

/wp-content/uploads/2015/04/pic2_675527.jpg

Create an outbound message and assign it to the workflow rule.

/wp-content/uploads/2015/04/pic3_675528.jpg

Workflow with Outbound message action activated.

/wp-content/uploads/2015/04/pic4_675529.jpg

3.       Salesforce – Download WSDL

/wp-content/uploads/2015/04/pic5_675539.jpg

4.       SAP PI/PO – Import WSDL and generate the PI/PO OBM Web service deployment file.

       /wp-content/uploads/2015/04/pic6_675540.jpg

          A web service deployment file is created based the Salesforce Outbound message WSDL file.

       /wp-content/uploads/2015/04/pic7_675541.jpg

      

5.       SAP PI/PO – Deploy and Configure OBM Web service

Deploy and configure the Web service object to listen for incoming notifications from Salesforce.

/wp-content/uploads/2015/04/pic17_676158.jpg

6.       SAP PI/PO – Import WSDL into ESR to generate message structure

       Import the Outbound message WSDL from Salesforce into the ESR to define the source message structure.

      /wp-content/uploads/2015/04/pic9_675546.jpg

7.       SAP PI/PO – Create sender SFDC channel and create OBM mapping

        Create new sender SFDC channel of type Salesforce OBM.

        /wp-content/uploads/2015/04/pic10_675547.jpg

           Mapping object Opportunity to the sender OBM channel.

           /wp-content/uploads/2015/04/pic8_675567.jpg

8.       SAP PI/PO – Complete Configuration Scenario

/wp-content/uploads/2015/04/pic11_675554.jpg

9.       Salesforce – Update Outbound message endpoint

        Copy the endpoint of the Web service OpportunityNotificationPort.

     /wp-content/uploads/2015/04/pic12_676116.jpg

        Goto the Outbound Message screen and update the endpoint with the correct endpoint from the PI system.

        /wp-content/uploads/2015/04/pic13_676117.jpg

10.   Salesforce – Test Opportunity update

       Create a new Opportunity object to trigger an outbound message.

        /wp-content/uploads/2015/04/pic14_676159.jpg

11.   SAP PI/PO – Check incoming message from Salesforce.

       Channel monitor: new message coming into the OBM sender channel

       /wp-content/uploads/2015/04/pic15_676157.jpg

       Payload of the Outbound message as received by PI.

       /wp-content/uploads/2015/04/pic16_676156.jpg

Summary:

Outbound Messaging is a very powerful feature to get almost real-time information from Salesforce to SAP. The Advantco SFDC adapter supports this method of data replication with minimal configuration efforts and without the need to implement specific JAVA codes.

https://store.sap.com/sap/cpa/ui/resources/store/html/SolutionDetails.html?pid=0000013830&catID=&pcntry=US&sap-language=EN&_cp_id=id-1428076572209-0

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

Leave a Reply