cancel
Showing results for 
Search instead for 
Did you mean: 

Mock data on Sap Fiori Tools

aymanelm
Explorer
0 Kudos

Hello,

I'm new to SAP Fiori Tools and I'm trying to create a new project to test the capabilities of these tools.
I followed this tutorial Set Up and Generate a New SAP Fiori App Project | Tutorials for SAP Developers and everything worked when using the OData Service provided:

https://sapes5.sapdevcenter.com/sap/opu/odata/sap/SEPMRA_PROD_MAN/

What i'm trying to do now is to create a new project just by using local data (mock data in my case).
So what i did is that I downloaded the metadata file from this link:

https://sapes5.sapdevcenter.com/sap/opu/odata/sap/SEPMRA_PROD_MAN/$metadata

Then i created a project by choosing as a Data source the file i just downloaded.

Then I added under **webapp** > **localService** the **mockdata** folder found on this link:

SAP Fiori tools Sample repository on GitHub

Then i previewed the Application by choosing: start-mock
The application gets laucnhed but no data appears.

This is the normal application when using the Odata Service:

And this is what I get when I use the Mock Data:


Can someone please help me figure out what is wrong?

Thank you in advance.

View Entire Topic
regina_sheynblat
Explorer
0 Kudos

Ayman,

Can you please make sure you don't have mockdata/mockdata in your project where the data sits. Another thing you can do, is delete the mockdata folder. Open the Data Editor by right clicking on the project, generate mock data and try again.

Also, just double check your Application Info page (Command: Open Application Info) and make sure you have all green check's.

Regards,

Regina