Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to pass values to odata service

I need to pass value (date) to the following odata service-


Have already created XML view/ controller, model using WEBIDE 1.12.

Also able to get value from Datepicker in the above date format.

Pls guide how to do the data binding..etc

There is a serviceBinding.js file generated while creating Odata model.

function initModel() {

  var sUrl = "/sap/opu/odata/sap/ZDATAXYZ_SRV/";

  var oModel = new sap.ui.model.odata.ODataModel(sUrl, true);




Odata service needs to fetch just one value ItemID, for the specified date (Pdate).

after passing Pdate-

the result - ItemID is to be displayed.

Not what you were looking for? View more on this topic or Ask a question