<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: SAPUI5 callFunction not executed in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271765#M4597093</link>
    <description>&lt;P&gt;you can see in the documentation, they have mParameters, it is an object type, so we are passing that as an object to call function, I am rewriting it as below for better understanding.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;var mParameters = {
            method: "GET",
            urlParameters: { "Aufnr" : Order },
            success: function(oData, response) {
                
            }.bind(this), // callback function for success
            error: function(oError) {
                
            }.bind(this)
        };
oModel.callFunction("/CheckOrder", mParameters);   &lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 18 Nov 2020 18:55:51 GMT</pubDate>
    <dc:creator>maheshpalavalli</dc:creator>
    <dc:date>2020-11-18T18:55:51Z</dc:date>
    <item>
      <title>SAPUI5 callFunction not executed</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaq-p/12271759</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
  &lt;P&gt;I have an oData model with an Import Function to check an order. I use this code to call it:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;        var oModel = this.getView().getModel();
        oModel.callFunction("/CheckOrder", { "Aufnr" : Order },        
        function(oData, response) { return response;  }, 
                  
        function(oError){} );   
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;But the function os not called? When i check trace i don´t se any calls - not even erronous calls?&lt;/P&gt;
  &lt;P&gt;What is wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 16:53:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaq-p/12271759</guid>
      <dc:creator>jakob_steen-petersen</dc:creator>
      <dc:date>2020-11-18T16:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 callFunction not executed</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271760#M4597088</link>
      <description>&lt;P&gt;did you check the api how the call should be?&lt;/P&gt;&lt;P&gt; don't write code by imagination.....&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 17:44:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271760#M4597088</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2020-11-18T17:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 callFunction not executed</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271761#M4597089</link>
      <description>&lt;P&gt;Could you please elaborate your comment? &lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 18:27:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271761#M4597089</guid>
      <dc:creator>jakob_steen-petersen</dc:creator>
      <dc:date>2020-11-18T18:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 callFunction not executed</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271762#M4597090</link>
      <description>&lt;P&gt;It is quite funny to check your profile: allmost all your answers is just stupid comments that do not help anybody... I really cannot understand why you are spending your own and all of ours time?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 18:30:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271762#M4597090</guid>
      <dc:creator>jakob_steen-petersen</dc:creator>
      <dc:date>2020-11-18T18:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 callFunction not executed</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271763#M4597091</link>
      <description>&lt;P&gt;check api, is it that hard to under standard?&lt;/P&gt;&lt;P&gt;if you are a abaper, when you call rfc/bapi whatever, how you know what parameter you need to put.... how you do? check api, right?????&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 18:42:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271763#M4597091</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2020-11-18T18:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 callFunction not executed</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271764#M4597092</link>
      <description>&lt;P&gt;Check this documentation here :&lt;/P&gt;&lt;P&gt;&lt;A href="https://ui5.sap.com/#/api/sap.ui.model.odata.v2.ODataModel%23methods/callFunction" target="test_blank"&gt;https://ui5.sap.com/#/api/sap.ui.model.odata.v2.ODataModel%23methods/callFunction&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you can pass parameters like mentioned in the api documentation.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;oModel.callFunction("/CheckOrder", {
            method: "GET",
            urlParameters: { "Aufnr" : Order },
            success: function(oData, response) {
                
            }.bind(this), // callback function for success
            error: function(oError) {
                
            }.bind(this)
        });   &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Mahesh&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 18:53:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271764#M4597092</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2020-11-18T18:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 callFunction not executed</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271765#M4597093</link>
      <description>&lt;P&gt;you can see in the documentation, they have mParameters, it is an object type, so we are passing that as an object to call function, I am rewriting it as below for better understanding.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;var mParameters = {
            method: "GET",
            urlParameters: { "Aufnr" : Order },
            success: function(oData, response) {
                
            }.bind(this), // callback function for success
            error: function(oError) {
                
            }.bind(this)
        };
oModel.callFunction("/CheckOrder", mParameters);   &lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Nov 2020 18:55:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271765#M4597093</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2020-11-18T18:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 callFunction not executed</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271766#M4597094</link>
      <description>&lt;P&gt;Arh - now i understand. Thank you it worked. &lt;/P&gt;&lt;P&gt;The only thing i now need to figure out is this: seems like the call is done Async - i need it synchron in order to stop further processing if the response contains a particular value?!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 19:41:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271766#M4597094</guid>
      <dc:creator>jakob_steen-petersen</dc:creator>
      <dc:date>2020-11-18T19:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 callFunction not executed</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271767#M4597095</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;jakob.steen-petersen&lt;/SPAN&gt;  it will be asynchronous, so you have to write code inside success, or wrap your logic inside a function and call it inside the success handler, it's same like your odata read call, whhhiiich I answered in ur previous question.&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/questions/13182744/sapui5-odata-read.html?childToView=13183691#comment-13183691" target="test_blank"&gt;https://answers.sap.com/questions/13182744/sapui5-odata-read.html?childToView=13183691#comment-13183691&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 19:48:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271767#M4597095</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2020-11-18T19:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 callFunction not executed</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271768#M4597096</link>
      <description>&lt;P&gt;Actually i did write code inside success... For now just a simple Message:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;        var oModel = this.getView().getModel();
	        
        oModel.callFunction("/CheckOrder", {
            method: "GET",
            urlParameters: { "Aufnr" : Order },
            success: function(oData, response) {
                
                MessageBox.error(response);   
                
            }.bind(this), // callback function for success
            error: function(oError) {
                
            }.bind(this)
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And i get the message - but it is still issued after further processing of code (i have checked by debugging)&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 19:56:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271768#M4597096</guid>
      <dc:creator>jakob_steen-petersen</dc:creator>
      <dc:date>2020-11-18T19:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 callFunction not executed</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271769#M4597097</link>
      <description>&lt;SPAN class="mention-scrubbed"&gt;jakob.steen-petersen&lt;/SPAN&gt; , yes it will go immediately as by default the requests that u do with ui5 odata model is asynchronous, so u should not write any code after the callFunction. Once the request is successful (reaches backend and comes back) then the success handler is called. So You should write all the code inside the success handler or simple put that code u want to call after the call fucntion in a separate function method and call it inside the success handler.</description>
      <pubDate>Thu, 19 Nov 2020 05:26:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-callfunction-not-executed/qaa-p/12271769#M4597097</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2020-11-19T05:26:01Z</dc:date>
    </item>
  </channel>
</rss>

