function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
srikanth challasrikanth challa 

SAP Integration using Web Services

Hi All,

What process exactly I should use to send few fields from Salesforce to SAP when a case is 'Saved'. Please explain in detail as I did not work on Webservices anytime before 
You have a couple of different options that could do:

You can have a system that calls a Salesforce SOAP or REST endpoint [1] [2] and pulls the data for any cases that have been updated since X date.

  • Any hiccup in the communication you can easily re-poll and pull the data.
  • Do not have to open ports to internal systems
  • Not real time
  • Requires additional infrastructure
  • Limits around large data sets 
  • Times only accurate down to the second so if you have too many cases updated within a second then you'll have trouble indexing them

Outbound WebService Call
As part of an after trigger you can make an @future call and make an outbound WebService call [3] to your SAP instance.

  • Close to real time
  • Direct access to SAP with feedback about failures
  • Requires opening ports to your SAP instance
  • @future calls have limits on the number of per day
  • @future calls can get backed up and be not real time

Outbound Messaging
Using a workflow rule you can send an Outbound Message [4] to a system that handles messages and then converts them over to your SAP instance.

  • Real-time
  • Fault tolerant
  • Requires no additional code in Salesforce
  • Requires additional infrastructure
  • Requires knowledge of ESB / messaging systems

Lightning Connect
Comming soon (safeharbor), Lightning Connect [5] should be able to talk with SAP over oData and do read/write.  This would allow you to add SAP as a connect endpoint and use Salesforce triggers to write the data to your SAP endpoint

  • Real-time
  • All Salesforce native
  • Requires opening ports to your SAP instance
  • Expensive
  • Not GA'd yet
  • Requires your SAP instance to have oData support

3rd Party Options
There are some third party options that you can use to connect Salesforce to SAP.  I don't know any off the top of my head and have not used any, so I won't link them here

  • Someone else is maintaining the infrastructure
  • Faster to implement
  • Can be expensive
  • Have to trust a 3rd party with your data