<?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>topic Problem with uri static odata in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-uri-static-odata/m-p/12335785#M1991842</link>
    <description>&lt;P&gt;Hello expert, i'm triying to solve why i'm getting an error:&lt;/P&gt;
  &lt;P&gt;This is the error: &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1882615-error-uri.png" /&gt;&lt;/P&gt;
  &lt;P&gt;This was not happening before, and now i'm getting them &lt;/P&gt;
  &lt;P&gt;This is the way that the app call the service:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;lectura: function () {
            var that = this;
            this.setBusyById("page", true);

            var arrayDISP = [];
            var arrayAEJE = [];
            var arrayEJCC = [];
            var arrayEJET = [];
            var arrayAPRB = [];
            var filterArray = [];
            var fnVarSuccess = function (oData, response) {

                if (oData.results.length == 0) {
                    sap.m.MessageToast.show("No se a encontrado ordenes de mantenimiento...");
                    that.setBusyById("page", false);
                    return false;
                }

                for (var i = 0; i &amp;lt; oData.results.length; i++) {
                    var caso = oData.results[i].UStatus;
                    switch (caso) {
                    case "DISP":
                        arrayDISP.push(oData.results[i]);
                        break;
                    case "AEJE":
                        arrayAEJE.push(oData.results[i]);
                        break;
                    case "EJCC":
                        arrayEJCC.push(oData.results[i]);
                        break;
                    case "EJET":
                        arrayEJET.push(oData.results[i]);
                        break;
                    case "APRB":
                        arrayAPRB.push(oData.results[i]);
                        break;
                    }
                } //fin for

                //var oModelDISP = new sap.ui.model.json.JSONModel();
                oModelDISP.setData(arrayDISP);

                var oModelAEJE = new sap.ui.model.json.JSONModel();
                oModelAEJE.setData(arrayAEJE);

                var oModelEJCC = new sap.ui.model.json.JSONModel();
                oModelEJCC.setData(arrayEJCC);

                var oModelEJET = new sap.ui.model.json.JSONModel();
                oModelEJET.setData(arrayEJET);

                var oModelAPRB = new sap.ui.model.json.JSONModel();
                oModelAPRB.setData(arrayAPRB);

                var lista1 = that.getView().byId("lista1");
                var lista2 = that.getView().byId("lista2");
                var lista3 = that.getView().byId("lista3");
                var lista4 = that.getView().byId("lista4");
                var lista5 = that.getView().byId("lista5");

                lista1.setModel(oModelDISP);
                lista2.setModel(oModelAEJE);
                lista3.setModel(oModelEJCC);
                lista4.setModel(oModelEJET);
                lista5.setModel(oModelAPRB);

                that.byId("__filtro1").setCount(that.byId('lista1').getMaxItemsCount());
                that.byId("__filtro2").setCount(that.byId('lista2').getMaxItemsCount());
                that.byId("__filtro3").setCount(that.byId('lista3').getMaxItemsCount());
                that.byId("__filtro4").setCount(that.byId('lista4').getMaxItemsCount());
                that.byId("__filtro5").setCount(that.byId('lista5').getMaxItemsCount());

                that.feedFacetFilterDISP(arrayDISP);
                that.feedFacetFilterAEJE(arrayAEJE);
                that.feedFacetFilterEJCC(arrayEJCC);
                that.feedFacetFilterEJET(arrayEJET);
                that.feedFacetFilterAPRB(arrayAPRB);

                that.setBusyById("page", false);

            };

            var fnVarError = function (err) {
                sap.m.MessageToast.show("Ocurri� un problema en la comunicaci�n con el servidor");
                that.setBusyById("page", false);
            };

            that.onCallReadOdata(filterArray, fnVarSuccess, fnVarError);
        },

        serviceUrl: "/sap/opu/odata/SAP/ZPMGW_ORDENPMRFC_SRV_02",

        onCallReadOdata: function (filterArray, fnVarSuccess, fnVarError) {
            var url = this.serviceUrl;

            var oModel = new sap.ui.model.odata.v2.ODataModel(url, false);

            var params = {
                context: null,
                urlParameters: {
                    "$format": "json"
                },
                async: false,
                filters: filterArray,
                sorters: null,
                success: fnVarSuccess,
                error: fnVarError

            };

            oModel.read("/ZRFC_LISTAORDEN2Set", params);

        },

&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;What do you think that is wrong ? i'm always getting the message ""Ocurri� un problema en la comunicaci�n con el servidor"&lt;/P&gt;</description>
    <pubDate>Mon, 01 Feb 2021 19:19:52 GMT</pubDate>
    <dc:creator>former_member666258</dc:creator>
    <dc:date>2021-02-01T19:19:52Z</dc:date>
    <item>
      <title>Problem with uri static odata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-uri-static-odata/m-p/12335785#M1991842</link>
      <description>&lt;P&gt;Hello expert, i'm triying to solve why i'm getting an error:&lt;/P&gt;
  &lt;P&gt;This is the error: &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1882615-error-uri.png" /&gt;&lt;/P&gt;
  &lt;P&gt;This was not happening before, and now i'm getting them &lt;/P&gt;
  &lt;P&gt;This is the way that the app call the service:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;lectura: function () {
            var that = this;
            this.setBusyById("page", true);

            var arrayDISP = [];
            var arrayAEJE = [];
            var arrayEJCC = [];
            var arrayEJET = [];
            var arrayAPRB = [];
            var filterArray = [];
            var fnVarSuccess = function (oData, response) {

                if (oData.results.length == 0) {
                    sap.m.MessageToast.show("No se a encontrado ordenes de mantenimiento...");
                    that.setBusyById("page", false);
                    return false;
                }

                for (var i = 0; i &amp;lt; oData.results.length; i++) {
                    var caso = oData.results[i].UStatus;
                    switch (caso) {
                    case "DISP":
                        arrayDISP.push(oData.results[i]);
                        break;
                    case "AEJE":
                        arrayAEJE.push(oData.results[i]);
                        break;
                    case "EJCC":
                        arrayEJCC.push(oData.results[i]);
                        break;
                    case "EJET":
                        arrayEJET.push(oData.results[i]);
                        break;
                    case "APRB":
                        arrayAPRB.push(oData.results[i]);
                        break;
                    }
                } //fin for

                //var oModelDISP = new sap.ui.model.json.JSONModel();
                oModelDISP.setData(arrayDISP);

                var oModelAEJE = new sap.ui.model.json.JSONModel();
                oModelAEJE.setData(arrayAEJE);

                var oModelEJCC = new sap.ui.model.json.JSONModel();
                oModelEJCC.setData(arrayEJCC);

                var oModelEJET = new sap.ui.model.json.JSONModel();
                oModelEJET.setData(arrayEJET);

                var oModelAPRB = new sap.ui.model.json.JSONModel();
                oModelAPRB.setData(arrayAPRB);

                var lista1 = that.getView().byId("lista1");
                var lista2 = that.getView().byId("lista2");
                var lista3 = that.getView().byId("lista3");
                var lista4 = that.getView().byId("lista4");
                var lista5 = that.getView().byId("lista5");

                lista1.setModel(oModelDISP);
                lista2.setModel(oModelAEJE);
                lista3.setModel(oModelEJCC);
                lista4.setModel(oModelEJET);
                lista5.setModel(oModelAPRB);

                that.byId("__filtro1").setCount(that.byId('lista1').getMaxItemsCount());
                that.byId("__filtro2").setCount(that.byId('lista2').getMaxItemsCount());
                that.byId("__filtro3").setCount(that.byId('lista3').getMaxItemsCount());
                that.byId("__filtro4").setCount(that.byId('lista4').getMaxItemsCount());
                that.byId("__filtro5").setCount(that.byId('lista5').getMaxItemsCount());

                that.feedFacetFilterDISP(arrayDISP);
                that.feedFacetFilterAEJE(arrayAEJE);
                that.feedFacetFilterEJCC(arrayEJCC);
                that.feedFacetFilterEJET(arrayEJET);
                that.feedFacetFilterAPRB(arrayAPRB);

                that.setBusyById("page", false);

            };

            var fnVarError = function (err) {
                sap.m.MessageToast.show("Ocurri� un problema en la comunicaci�n con el servidor");
                that.setBusyById("page", false);
            };

            that.onCallReadOdata(filterArray, fnVarSuccess, fnVarError);
        },

        serviceUrl: "/sap/opu/odata/SAP/ZPMGW_ORDENPMRFC_SRV_02",

        onCallReadOdata: function (filterArray, fnVarSuccess, fnVarError) {
            var url = this.serviceUrl;

            var oModel = new sap.ui.model.odata.v2.ODataModel(url, false);

            var params = {
                context: null,
                urlParameters: {
                    "$format": "json"
                },
                async: false,
                filters: filterArray,
                sorters: null,
                success: fnVarSuccess,
                error: fnVarError

            };

            oModel.read("/ZRFC_LISTAORDEN2Set", params);

        },

&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;What do you think that is wrong ? i'm always getting the message ""Ocurri� un problema en la comunicaci�n con el servidor"&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 19:19:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-uri-static-odata/m-p/12335785#M1991842</guid>
      <dc:creator>former_member666258</dc:creator>
      <dc:date>2021-02-01T19:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with uri static odata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-uri-static-odata/m-p/12335786#M1991843</link>
      <description>&lt;P&gt;Please search in Google before posting. I simply put "static path conflict with URI site:sap.com" and it found this &lt;A href="https://answers.sap.com/questions/11799695/not-able-to-trigger-post-method-to-update-back-end.html"&gt;old answered question&lt;/A&gt; and an SAP note mentioning this message.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 00:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-uri-static-odata/m-p/12335786#M1991843</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2021-02-02T00:57:20Z</dc:date>
    </item>
  </channel>
</rss>

