- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Binding OData service to SAP UI5 table
Your service end point is incorrect- var oModel = new sap.ui.model.odata.v2.ODataModel("http://admin- think:88/sap/...",{useBatch : true});.
To fix this issue, you need to remove “CoreOpenAppSet()” portion of the variable which is getting passed to ODataModel constructor. You need to pass function import using ODataModel- “oModel.callFunction()”.
Once function call is completed, you can bind the result using “setBindingContext” as in below code −
var oPromise = oModel.callFunction("/CoreOpenAppSet"); oPromise.contextCreated().then(function(oContext) { oView.setBindingContext(oContext); });
- Related Articles
- Creating a table in SAP system using OData service
- Binding model to sap.ui.core in SAP UI5 application
- OData or Java Services to be consumed by SAP UI5 application
- Reading an image using SAP OData v2 in UI5 application
- Getting error while running SAP oData service “HTTP Open failed: PLUGIN_NOT_ACTIVE”
- SAP SuccessFactor OData API access
- Connect to dynamic URL within OData in SAP project
- Get access or point to SAP UI5 control
- Loading External Libraries in SAP UI5
- Sorting List in SAP UI5 project
- How to place UI5 code in SAP NetWeaver Server?
- Managing user sessions in SAP UI5 application
- In SAP Workflow, Binding the receiver dynamically
- Error while passing an image value to an OData request in SAP
- Sending a table from UI5 application to ABAP Function Module

Advertisements