Skip to Content
author's profile photo Former Member
Former Member

Pass input values of RFC to odata service ?

Hi experts,

I have developed a new Odata service from a BAPI . and it has two values as input parameters. I was able to perform a filter operation and check the values in the browser XML with the generated odata service in service builder . Please let me know how the input values can be passed in the UI5 layer ro the odata service and check the output.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jun 09, 2014 at 06:29 AM

    Hi David

    You can basically bind the data model to the front end UI elements. You will have to take care of the structure which you are binding. What exactly do you want to achieve?


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Nabheet Madan

      Hi nabheet madan

      PLease check and suggest if i am doing it in correct way or missing something.

      I replaced the Fiori exercise 0 files in my newly created UI5 project . and changing the master.view .xml and master.controller.js as below


        xmlns:core="sap.ui.core" >
        title="~MasterPage~" >
      width="100%" >
        <Button id="MyButton" text="Get Sales Order Status" press="doIt"/>  


      sap.ui.controller("sap.ui.demo.myFiori.view.Master", {
        doIt : function(oEvent) {
        var sServiceUrl = "";
        var oModel = new sap.ui.model.odata.ODataModel( sServiceUrl , true, "<User name>", "<Pass word>");
        var oFilter = new Array();
        var ID =  sap.ui.getCore().getElementById('ID').getValue();
        var Desc = sap.ui.getCore().getElementById('Desc').getValue();
        oFilter[0] = new sap.ui.model.Filter("ID", sap.ui.model.FilterOperator.EQ,"HELP" );
        //oFilter[1] = new sap.ui.model.Filter("DESC", sap.ui.model.FilterOperator.EQ, "");
         path: '/<entity set to bound>/',
         filters: oFilter

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.