How to Create a Northwind Destination in SAP Cloud Platform
If you’re building SAPUI5 or Fiori apps using SAP BAS, youβll likely need to access OData services like Northwind. But wait β the browser’s same-origin policy might block your app. π Donβt worry! We can fix that by creating a destination in the SAP Cloud Platform. Create a Northwind Destination
Letβs walk through the simple steps to do this. π§
π What Is Northwind?
Northwind is a demo OData service. It provides sample data like products, orders, customers β all you need for testing your apps.
URL: http://services.odata.org
π― Why Do We Need a Destination?
Browsers block calls to a different domain for security. This is called the same-origin policy. To work around this, SAP Cloud Platform lets you create a destination β like a shortcut β that routes your app’s calls through a safe tunnel.
π Step-by-Step: Create the Destination
1. Go to SAP Cloud Platform Cockpit
- Log in to your SAP BTP Cockpit
- In the left navigation, select Destinations
- Click New Destination
2. Fill in the Destination Details
| Field | Value |
|---|---|
| Name | northwind |
| Type | HTTP |
| Description | Northwind OData Service |
| URL | http://services.odata.org |
| Proxy Type | Internet |
| Authentication | NoAuthentication |
3. Add These Additional Properties
Scroll down to Additional Properties and click New Property for each of the following:
| Property | Value |
|---|---|
| WebIDEEnabled | true |
| WebIDESystem | Northwind |
| WebIDEUsage | odata_gen |

β Youβre All Set!
Once you save the destination, you can access the OData service in your app using:
/destinations/northwind/V2/Northwind.svc/Products
This setup makes sure your app runs smoothly without hitting browser errors. π
π Conclusion
Create a Northwind Destination in SAP BTP Cockpit is a best practice for securely accessing external services like Northwind during SAPUI5 or Fiori development. It not only helps bypass browser restrictions but also maintains a clean and modular architecture for backend integration.
You can now easily bind your SAPUI5 controls (like tables or charts) to the Northwind service in your app. Try exploring the data and build something fun!
Happy Coding! π
Let me know if you want a downloadable PDF version or markdown/HTML export for your blog platform.