artemzhuchkov
ServiceNow Employee
ServiceNow Employee

Let’s be honest, integrating with SAP can sometimes feel like trying to plug your toaster into a spaceship. You know there’s power there, but making the connection work smoothly? That’s the real trick. Fortunately, SAP’s OData services offer a clean, standardized way to access and interact with data—without the need for custom rocket science.

 

OData (Open Data Protocol) is the modern backbone of many SAP APIs, making it a reliable and developer-friendly option for reading, creating, and updating business records. And when you pair that with ServiceNow ERP Canvas, you unlock a whole new level of simplicity and reusability. With ERP Canvas, you can build modular, drag-and-drop data models that connect directly to SAP and can be reused across apps and workflows—no duct tape required.

 

In this blog, I, along with my co-author @Sandeep Voona, will show you how to use SAP’s OData services to create clean, reusable data models right inside ERP Canvas. Whether you're building an app to display real-time SAP data or creating workflows that push updates back to the core system, this guide will get you from “where do I even start?” to “why didn’t I do this sooner?”

 

Prerequisites:

  1. Have ERP Canvas Installed
    1. See Blog for detailed steps on getting started with ERP Canvas https://www.servicenow.com/community/app-engine-for-erp-blogs/erp-canvas-app-install-guide/ba-p/3146...
  2. Confirm that you have an SAP system that has been enabled to make an OData connection.
    1. See SAP Help documentation for enabling OData on S/4HANA
    2. https://help.sap.com/docs/excise-tax-management/administration/sap-s-4hana-activating-odata-services...
    3. https://discovery-center.cloud.sap/card/893e883c-0801-4a8f-9b32-304a1fafc22a
  1. ERP Canvas versions 6.0.9 and greater
  2. MID Server Configuration is optional
    1. These steps will be shown with no MID Server

 

Steps:

  1. Navigate to Connection -> Connection & Credential Aliases

artemzhuchkov_0-1747324838527.png

 

 

 

 

 

 

 

 

 

 

 

2. Select ERP Canvas HTTP

SandeepVoona_0-1747350310933.png

 

You may be prompted to change scopes

artemzhuchkov_1-1747338758639.png

3. In the bottom right under Related Links in the Connections Tab click New

artemzhuchkov_3-1747338879224.png

artemzhuchkov_4-1747338915388.png

4. Name your HTTP(s) Connection

5. Select or Create your Credential - As of this blog only Basic Auth is supported for OData

artemzhuchkov_5-1747339000931.png

artemzhuchkov_6-1747339012956.png

artemzhuchkov_7-1747339024032.png

artemzhuchkov_8-1747339089011.png

6. Select the URL builder checkbox

7. Enter your Host URL [saphostname]

8. Enter your port number - Default is 443, but could be different based on your SAP implementation

Note: Mid Server [optional]

 

Finished record should look like below

artemzhuchkov_9-1747339245635.png

 

9. Click Submit

10. Navigate to ERP Canvas

artemzhuchkov_10-1747339334369.png

 

11. Click the Systems Tab in ERP Canvas

artemzhuchkov_0-1747339515288.png

 

If your System is already created skip to step 15.

 

12. Click New

artemzhuchkov_1-1747339759737.png

 

13. Enter a name for ERP system and enter a description in Short description

14. Click Save

        

artemzhuchkov_0-1747342981154.png

   15. Select the HTTP connection you created earlier.

   16. Click Save

artemzhuchkov_1-1747343252030.png

 

 

17. Click Restart data retrieval

 

artemzhuchkov_3-1747343321928.png

 

18. Successfully Connected when you have a Successful ERP HTTP heartbeat and Completed OData Retrieval status

artemzhuchkov_4-1747343361020.png

 

Congratulations you’ve successfully established OData connectivity between SAP and ERP Canvas!

 

Check out these blogs on what to do next from creating models using OData to using those models in ServiceNow applications!

ERP Model creation using OData Service: A Step-by-Step Guide

Part 1 of 4 – Intelligent ERP Workflows

ServiceNow Documentation:

https://www.servicenow.com/docs/bundle/yokohama-application-development/page/build/erp-integration/t...

 

More to come on OData and REST !!!