Quantcast
Channel: SCN : Unanswered Discussions - SAP Fiori
Viewing all 1879 articles
Browse latest View live

Navigation/Routing Failed to Load Error

$
0
0

Hello experts,

 

I am new to Fiori and I am attempting to create a Master/Detail app with an additional view to display additional item details.

I am getting below error whenever I try to navigate to the additional view

 

Uncaught Error: failed to load 'ZEHS_NAMESPACE/controller/DetailsExpanded.controller.js' from ../controller/DetailsExpanded.controller.js: Error: failed to load 'ZEHS_NAMESPACE/webapp/view/DetailsExpanded.js' from ../webapp/view/DetailsExpanded.js: 404 - Not Found

 

 

This is the code in the Manifest Routing (my code is highlighted in blue)

 

"routing": {
"config": {
"routerClass": "sap.m.routing.Router",
"viewType": "XML",
"viewPath": "ZEHS_NAMESPACE.view",
"controlId": "idAppControl",
"controlAggregation": "detailPages",
"bypassed": {
"target": ["master", "notFound"]
}
},
"routes": [{
"pattern": "",
"name": "master",
"target": ["object", "master"]
}, {
"pattern": "Person_detailsSet/{objectId}",
"name": "object",
"target": ["master", "object"]
}, {
"pattern": "DetailsExpanded/{ZzCasId}",
"name": "DetailsExpanded",
"target": "DetailsExpanded"
}],
"targets": {
"master": {
"viewName": "Master",
"viewLevel": 1,
"viewId": "master",
"controlAggregation": "masterPages"
},
"object": {
"viewName": "Detail",
"viewId": "detail",
"viewLevel": 2
},
"DetailsExpanded": {
"viewName": "DetailsExpanded",
"viewLevel" : 3
},
"detailObjectNotFound": {
"viewName": "DetailObjectNotFound",
"viewId": "detailObjectNotFound"
},
"detailNoObjectsAvailable": {
"viewName": "DetailNoObjectsAvailable",
"viewId": "detailNoObjectsAvailable"
},
"notFound": {
"viewName": "NotFound",
"viewId": "notFound"
}
}
}
}

}

 

 

This is the code from my additional view

<mvc:View

  controllerName="ZEHS_NAMESPACE.controller.DetailsExpanded"

  xmlns="sap.m"

  xmlns:mvc="sap.ui.core.mvc"

  xmlns:f="sap.ui.layout.form"

  busyIndicatorDelay="0">

 

What am I missing here? the name space is correct and the routing is setup to navigate from the details view to the additional details view.

 

Thanks,

Abdul.


Resource not found for segment ''.

$
0
0

Hello, getting Resource not found for segment ''. when we run sap/opu/odata/SAP/SRA004_SRV/Travels('2000000155').

 

For some reason, this GET_ENTITY call works fine in Fiori itself, but when testing the call from gateway client or browser we get that error or sometimes Resource not found for segment 'Travel'.

 

Tried clearing cache and loading metadata, but that didn't help.

 

sap/opu/odata/SAP/SRA004_SRV/Travels comes back 200, so it can see the resource.


This also happens in our Z extension of the project, and for any new GET_ENTITY we make in that project.


Any ideas?

Setting data to chart using odata service

$
0
0

Hi experts,

 

I am trying to set data in chartcontainer   in my fiori application, i am using odata service from my xs application to feed data,

Code for my view is

 

<core:View

    controllerName="sap.ui.demo.wt.controller.ChartContainer"

    xmlns="sap.suite.ui.commons"

    xmlns:m="sap.m"

    xmlns:mvc="sap.ui.core.mvc"

    xmlns:viz="sap.viz.ui5.controls"

    xmlns:layout="sap.ui.layout"

    xmlns:core="sap.ui.core">

    <layout:Splitter width="100%" height="100%">

    <layout:contentAreas>

    <ChartContainer

        id="idChartContainer"

        showFullScreen="true"

        showPersonalization="false"

        autoAdjustHeight="false"

        showLegend="true"

        personalizationPress="attachPersonalizationPress"

        contentChange="attachContentChange"

        title="Revenue">

 

      

        <content>

            <ChartContainerContent

                   icon = "sap-icon://bubble-chart"

                title = "Bubble Chart">

                <content>

                    <viz:VizFrame id="idoVizFrame" height="700px" width="100%" uiConfig="{applicationSet:'fiori'}"> </viz:VizFrame>

                </content>

            </ChartContainerContent>      

        </content>  

    </ChartContainer>

    </layout:contentAreas>

    </layout:Splitter>  

</core:View>

 

Code for my controller is



sap.ui.controller("sap.ui.demo.wt.controller.ChartContainer", {

  

    onInit: function() {

      

        var url ="/destinations/XXXX/services.xsodata/XXX(XXXXXXX) + ")/Results/?$format=json";

        var  oModel_bl = new sap.ui.model.json.JSONModel();

         oModel_bl.loadData(url);

        //alert(url);

        /*var oModel = new sap.ui.model.json.JSONModel("/destinations/XXXX/services.xsodata/XXX(XXXXXXX) + ")/Results/?$format=json");*/

  

oModel_bl.attachRequestFailed(function() { alert("OData Request Failed!"); });

 

 

 

        oModel_bl.attachRequestCompleted(function() {

 

            alert(oModel_bl.getJSON());

 

 

        });

          

        var oVizFrame = this.getView().byId("idoVizFrame");

 

      

          

            var oDataset_bl = new sap.viz.ui5.data.FlattenedDataset({

            

               dimensions: [{

                                  

                                    name: 'PD_DESC', // 'name' is used as label in the Legend

                                    value: '{PD_DESC}' // 'value' defines the binding for the displayed value 

                                }],

               measures: [

                 {

                

                name: 'CNT', // 'name' is used as label in the Legend

                    value: '{CNT}'

                 }

               ],

               data: {

                 path: "/d/results"

               }

             

             });

        

         oVizFrame.setVizProperties({

              plotArea: {

                showGap: true

              }/*,

            title : {

                visible : false,

                text : 'Revenue'

      }             */

            });

            oVizFrame.setDataset(oDataset_bl);

            //oVizFrame.setModel(oModel_bl);

            //alert(oModel_bl);

            oVizFrame.setModel(oModel_bl);

 

            var feedPrimaryValues_bl7 = new sap.viz.ui5.controls.common.feeds.FeedItem({

              'uid' : "primaryValues",

              'type' : "Measure",

//              'values' : ["Profit", "Revenue"]

              'values' : ["CNT"]

            }), feedAxisLabels_bl7 = new sap.viz.ui5.controls.common.feeds.FeedItem({

              'uid' : "axisLabels",

              'type' : "Dimension",

              'values' : ["PD_DESC"]

            })/*,

            feedTargetValues_bl7 = new sap.viz.ui5.controls.common.feeds.FeedItem({

              'uid' : "targetValues",

              'type' : "Measure",

              'values' : ["CNT"]

            })*/;

 

            oVizFrame.addFeed(feedPrimaryValues_bl7);

            oVizFrame.addFeed(feedAxisLabels_bl7);

            //oVizFrame.addFeed(feedTargetValues_bl7);

            oVizFrame.setVizType('bar');

            //oVizFrame.setUiConfig({'applicationSet': 'fiori'});

          

 

    }

 

/*    attachPersonalizationPress : function(oE) {

        sap.m.MessageToast.show("Personlainzation event was fired.");

    },

    attachContentChange : function(evt){

        var itemId = evt.getParameter("selectedItemId");

        sap.m.MessageToast.show("ContentChange event was fired. Selected Item was changed to:" + itemId);

    }*/

 

});

 

Output



sc99.png

 

sc100.png

 

Thanks

Installation / Implementation of SAP FIORI

$
0
0

Dear Team,

 

We need to Implement / Install SAP FIORI in our SAP landscape.

 

We created 1 new ECC (EHP6 for ERP6.0) Sandbox system and installed the Gateway Components, UI5 Components and IW_BEP component.

Also configured the Gateway and its active.

 

Please let me know how should i proceed further with the App installation and try the same in any Mobile / Tab / Ipad.

 

Your help will be highly appreciated.

 

Awaiting for replies.

 

 

Thanks,

VARUN.

Fiori LaunchPad: Your connection is not private

$
0
0

Hello,

 

We are having Fiori Launchpad configured.

When we are first hit the main page (Before Login Page) We are getting this warning.

Although we are able to bypass this issue but every time it is occurring.

 

I doubt it is issue with SSL certificate. (Http:// is having red cross).

Can anyone point out what exactly needs to be done to resolve this issue.

1202 Chrome Issue.JPG

Spaces: SAP for Mobile.

 

Thanks for read.

Pavan G

 

Message was edited by: Pavan Golesar

this.getView is not a function

$
0
0

Hi all,

 

while creating a ui5 application, I'm trying to implement an auto refresh.

 

return Controller.extend("Dashboard.controller.DashboardMasterView", {  formatter: formatter,  onBeforeRendering: function() {  console.log("Dashboard.controller.DashboardMasterView onBeforeRendering");  },  onAfterRendering: function() {  console.log("Dashboard.controller.DashboardMasterView onAfterRendering");  setInterval(function() {       console.log(this.getView().getModel());  }, 10000);  },  onInit: function() {  console.log("Dashboard.controller.DashboardMasterView OnInit");

I'm setting the model within in the view, at onInit function, but how could I access the model in the setInterval function? I always getting the error, that this.getView is not a function.

 

Thanks in advance, Chris

Viz Chart only shows last entry of Model

$
0
0

Hi all,

 

I'm creating an Viz Chart from oModal service, the service is delivering data as (odata):

odata.PNG

There are more than 140 entries within this list.

 

// 1. Get the id of the VizFrame  var oVizFrame = this._getVizFrame(Q1_FREIGABE_CHART);
// 2. Create a JSON Model and set the data  var oModelT = oModel;//this._getOModel();
// 3. Create Viz dataset to feed to the data to the graph  var oDataset = new sap.viz.ui5.data.FlattenedDataset({  dimensions: [{  name: "Zeit",  value: "{ZeitVon}"  }],  measures: [{  name: "Online",  value: "{Bis30}"  }, {  name: "Offline",  value: "{Bis60}"  }],  data: {  path: "/EtDbDatenQ1AnzSet"  }  });  oVizFrame.setDataset(oDataset);  oVizFrame.setModel(oModelT);  oVizFrame.setVizType("line");
 // 4. Set Viz properties  oVizFrame.setVizProperties({  general: {  layout: {  padding: 0.04  }  },  valueAxis: {  title: {  visible: true,  text: "Anzahl"  }  },  categoryAxis: {  title: {  visible: true,  text: "Zeitraum"  }  },  plotArea: {  colorPalette: d3.scale.category20().range()  },  title: {  visible: false,  text: "Auswertung Freigabeprozess"  }  });  var feedValueAxis = new sap.viz.ui5.controls.common.feeds.FeedItem({  "uid": "valueAxis",  "type": "Measure",  "values": ["Online", "Offline"]  });  var feedCategoryAxis = new sap.viz.ui5.controls.common.feeds.FeedItem({  "uid": "categoryAxis",  "type": "Dimension",  "values": ["Zeit"]  });  oVizFrame.addFeed(feedValueAxis);  oVizFrame.addFeed(feedCategoryAxis);

Running the application, it only shows the last entry!

last_entry.PNG

 

Any idea why this is happen? While using an local created jsonModel it works... only with the original data from the server, as shown, it doesnt workss...

 

Thanks!

Use two OData services in the same fiori application

$
0
0

Hi,

 

I am extendind a standard fiori application which is based on a standard odata service.Requirement is to add additonal functionality to the application but it it is based on another custom Odata service .

Is it possible to integrate two Odata services in the same fiori application and call the methods accordingly.

 

Regards

Radhika


Launch Fiori Client Directly From URL

$
0
0

All,

 

Is there a way to directly Launch Fiori Client on Phones & Tablets via URLs?

i.e. A requisition approval email is sent to an Approver with a link in the email. When the URL is clicked on the approver's mobile device, Fiori Client will be opened directly instead of opening Fiori in a browser.

 

Example of what I'm referring to:  Launching iOS Applications Via URL | Launching Your App Via URL | InformIT

 

Thank you!

SAP Fiori principal apps 1.0 for SAP ERP on Netweaver 7.5

$
0
0

Hello,

 

I'm trying to install SAP Fiori principal apps 1.0 for SAP ERP on my GW, specially app "Approve Purchase Orders" but when I go and look for the OData Service GBAPP_POAPPROVAL to activate it for my Alias, I can't find it. I have already activated the sicf service mm_po_apv.


Anybody knows why?


Landscape:

Central HUB Arquitecture


GW:

 

 

Backend:

 

ERP 6.0 EHP7 SPS08

 

Note:

 

I haven't installed component GBAPP002 600 on the back-end since it's my understanding I don't need to given my ERP version, but I think maybe that would be an issue later on, not when I'm tryng to look for the OdataService.




Screenshots:


No service found


Sicf Service activated


SAP UI5 Hindi Language Support

$
0
0

Hi Experts,

 

We are having requirement where client needs UI5 Application in Gujarati and Hindi Language.

 

Can you please let us know UI5  Application supports Gujarati and Hindi Language .

Smart Business Modelling - Adding Evaluation to a KPI not possible

$
0
0

Hi All,

 

I am an absolutely beginner in the world of Fiori Apps and need help by implementing the Smart Business KPI Components.

 

Due to the following Documentation I added KPIs, by choosing the "Add KPI" App on my Fiori Launchpad.

Adding an Evaluation to a KPI - SAP Smart Business, Component for KPI Modeling - SAP Library

 

To make a KPI visible to the user at runtime, I must create an evaluation and a visualization.

 

Now the problem appears:

When I choose the Application "Create Evaluation" a Popup appears with an message "App cannot be opened. Please try again later". I found a second possibility to create an Evaluation by Using the App "KPI Workspace" and than coosing the Button "create Evaluation" in the Detail view of KPI. Here the same Error Pop-up.

 

(sorry it's in german)

 

Does anyone know something about this problem?

Is there any further installation needed to run this app or can I chance some settings to get this evaluation done?

 

Thanks in advance!

Mareike

Smart table column width

$
0
0

Hi Experts!

 

We're making a smart table Fiori application and we've got 22 column and we can't figure it out, how we can set the width of the columns. Now the table use the Maxlength to set the column width and we can't reduce this value. Can we set a non fixed column width, or how can we use the Column width annotation?

 

Regards,

Adam

Issue during Odata services Activation for Fiori App Setup

$
0
0

Dear Experts,

 

We successfully installed the software components UITRV001 100 SP06 and EA-HR 607 SP44 as a prerequistic for the Fiori App "My Travel and Expenses" implementaion.

 

As a part of configuration, when we try to activate the Odata service TRV_TE_CRE via /IWFND/MAINT_SERVICE transaction, we don't get the backend services result. (see attached screenshot).

 

Any ideas, please?

 

Thanks & best regards,

Sreenu

Fiori Approve Purchase Orders App

$
0
0

Dear All

 

We are using Firoi's Approve Purchase Orders App.

 

 

Currently the search functionality only allows me to filter by PO number, order value, PO creator and vendor name. These are not case sensitive

 

 

However due to the volume of POs we need to be able to filter the POs by account assignment. In our case we have projects set up in SAP PS and hence want to be able to search by project code (first few characters of the project WBS).

 

 

Any idea on how me may achieve this

 

 

 

thanks

 

rehan


Not able to activate search connector SAPFINH

$
0
0

Hello Experts,

 

We are trying to implement Journal Entry Factsheet Fiori app. We have configured search connector and implemented couple of factsheet as well.

 

Journal Entry Factsheet app needs search connector SAPFINH to be activated.

 

But there is no search model available in SAPFINH connector due to this system is not able to activate search connector SAPFINH.

 

Is there any configuration is missing for activation of SAPFINH search connector?

 

We have searched SAP note as well for the same. Kindly provide any suggestion to solve this issue.

 

Regards,

Vishal Solanki

Service Pack Issue - Leave Request V1 - absence type

$
0
0

Hi

 

We recently applied SAP service packs to our system, but now our leave request app is generating the following error.

 

error.png

From what i can see, this is being caused when trying to find the default absence type during config. Does anyone now how to fix this problem?

What it might be? or know what has caused it.

 

This is all SAP standard code we have not changed this element in anyway

 

Kind regards

Chantele

Setup Fiori in Netweaver 7.4

$
0
0

Hello All,

 

   We are planning a Netweaver 7.4 system in our landscape to enable Fiori as front end server and one of my ERP system as backend system.

 

   I searched enough end-to-end configuration guide but I couldn't find any. Would any one help how to start and end the Fiori setup.

 

   Thanks in advance

 

Regards

 

Srikanth S

Fiori Launchpad Designer - no catalogs are displayed

$
0
0

Hi,

 

I installed SAP Fiori according to the guidelines in SAP Help Portal:
- Setup of SAP Fiori System Landscape with ABAP Environment

- Configuration of SAP Fiori Infrastructure > Setup of SAP Fiori Launchpad

- App Implementation for Transactional Apps

 

I implemented 2 Apps:
- My Travel and Expenses for Employee
- Approve Travel Expenses for Manager

 

Relevant Packages are up to date:
- Frontend
        SAP NetWeaver 7.4 SPS 11

        SAP_GWFND 740 0013

        SAP_UI 740 0015

        UITRV001 100 0006

        UIX01TRV 100 0007
- Backend
        SAP NetWeaver 7.4 SPS 11

        EA-HR 607 0039
        SRA008 600 0010

 

Unfortunately in Fiori Launchpad neither Apps nor Catalogs are shown.
The Problem already starts in Fiori Launchpad Designer being empty (no catalogs, no groups).

 

During my problem investigation I found out, that in transaction /UI2/FLC (Fiori Launchpad Checks) all Packages are shown with no errors (all is green), but when I click on either one of the catalog IDs, MSIE opens and I get following error message (roughly translated from German):
"Catalog with ID:X-SAP-UI2-CATALOGPAGE:... does not exist; the first catalog in the list will be loaded".
The catalog IDs involved are:
SAP_TRAVEL_BC_MANAGER_X1
SAP_TRAVEL_BC_EMPLOYEE_X1
SAP_TRAVEL_TC_T_X1
SAP_TRAVEL_BC_BUSINESSTRA
SAP_TRAVEL_TC_T

 

Please advise since I am completely stuck here.

 

Thanks,

Christiaan

FIORI analytical applications

$
0
0

Hi Experts,.

 

 

I want to know how to enable FIORI analytical applications, which would be the

step by step to activate them and work perfectly.

 

 

1- should first install certain components as shown below:

 

 

https://fioriappslibrary.hana.ondemand.com/sap/fix/externalViewer/#/detail/Apps('F0343 ')

 

 

2- Then you must activate the service and application odata.

 

 

3. Finally assign the respective roles the user.

 

 

there is a part where it says KPI, the KPI is only activated? where you should do that? in the back-end or front-end?

 

 

Thanks for the support.

Regards.

Viewing all 1879 articles
Browse latest View live