Professional Documents
Culture Documents
| SAP Blogs
Community
Technical Articles
Ankur Jain
September 5, 2019
| 4 minute read
After attending SAP Inside Track #sitCHD, I was inspired to write my very first blog
Like post. In this I am sharing my experience on how to create a Fiori App.
ABAP being my core skill, I always felt working in Fiori will be difficult. But when I
RSS Feed created my first Fiori app. I realized how simple, efficient and exciting it is to work in
Fiori. After following a series of tutorials I successfully created a List report in Fiori.
Before we go into details on how to create a Fiori app, lets understand a brief about
ABAP Programming Model for Fiori.
https://blogs.sap.com/2019/09/05/how-to-create-first-fiori-app-using-templates-in-web-ide..../ 1/14
2/10/22, 4:44 PM How to create First Fiori App using Templates in Web IDE…. | SAP Blogs
Above picture (referenced from SAP Help), depicts Architecture for development of
SAP HANA based Fiori App. Using ABAP, Core Data Services, OData protocol and
SAP UI5 based front end interface various type of Fiori apps can be created eq.
transnational, search, analytics.
Prerequisite –
For our example we will create a CDS view on top of existing sales order item(CDS
view).
https://blogs.sap.com/2019/09/05/how-to-create-first-fiori-app-using-templates-in-web-ide..../ 2/14
2/10/22, 4:44 PM How to create First Fiori App using Templates in Web IDE…. | SAP Blogs
On next screen provide the details – Project, Package, Name (CDS view),
Description
Choose Next
In case not using $TMP, give Transport request and choose Next
Select Define view template and choose Finish
https://blogs.sap.com/2019/09/05/how-to-create-first-fiori-app-using-templates-in-web-ide..../ 3/14
2/10/22, 4:44 PM How to create First Fiori App using Templates in Web IDE…. | SAP Blogs
@AbapCatalog.sqlViewName: 'ZDEMOSALES'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
Item.Plant as Plant,
Item.Material as Product,
@Semantics.currencyCode: true
Item.TransactionCurrency as CurrencyCode,
@Semantics.amount.currencyCode: 'CurrencyCode'
Item.NetPriceAmount as NetPrice,
@Semantics.amount.currencyCode: 'CurrencyCode'
Item.NetAmount as NetAmount,
@Semantics.amount.currencyCode: 'CurrencyCode'
Item.TaxAmount as TaxAmount
https://blogs.sap.com/2019/09/05/how-to-create-first-fiori-app-using-templates-in-web-ide..../ 4/14
2/10/22, 4:44 PM How to create First Fiori App using Templates in Web IDE…. | SAP Blogs
Verify the Results by going to data preview for newly created CDS view.
OData can be easily created with the use of Annotation in CDS view
At CDS Consumption view level annotation – “@OData.publish:true” can be
used.
@AbapCatalog.sqlViewName: 'ZDEMOSALES'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@OData.publish: true
On activation of CDS view, objects related to OData like Model, ABAP class
etc are created automatically in the back-end system.
Now we need to activate OData service in SAP Gateway hub.
In front end server go to transaction – /IWFND/MAINT_SERVICE
Choose Add Service
https://blogs.sap.com/2019/09/05/how-to-create-first-fiori-app-using-templates-in-web-ide..../ 5/14
2/10/22, 4:44 PM How to create First Fiori App using Templates in Web IDE…. | SAP Blogs
Select the OData service from the list and choose Add Selected Services,
Choose Continue in following pop-ups. This will register the OData service in
SAP Gateway hub.
OData service can be tested using SAP Gateway Client
https://blogs.sap.com/2019/09/05/how-to-create-first-fiori-app-using-templates-in-web-ide..../ 6/14
2/10/22, 4:44 PM How to create First Fiori App using Templates in Web IDE…. | SAP Blogs
Provide Basic information for the new Project – Project Name, Title and
Choose Next
Select Front End Server where the OData service was registered and OData
service
https://blogs.sap.com/2019/09/05/how-to-create-first-fiori-app-using-templates-in-web-ide..../ 7/14
2/10/22, 4:44 PM How to create First Fiori App using Templates in Web IDE…. | SAP Blogs
https://blogs.sap.com/2019/09/05/how-to-create-first-fiori-app-using-templates-in-web-ide..../ 8/14
2/10/22, 4:44 PM How to create First Fiori App using Templates in Web IDE…. | SAP Blogs
To test, Choose Run in SAP Web IDE and select “flpSandbox.html”, Choose
Ok
Newly created Fiori List Report application will be displayed, However there
is no data.
To display data from CDS view, Choose Setting and select all fields in pop-up
and Choose Ok
https://blogs.sap.com/2019/09/05/how-to-create-first-fiori-app-using-templates-in-web-ide..../ 9/14
2/10/22, 4:44 PM How to create First Fiori App using Templates in Web IDE…. | SAP Blogs
Choose Go on next screen and you will see the data in List report.
That is it, how I created a simple list report in Fiori using CDS and annotations.
Alert Moderator
Assigned Tags
SAP Fiori
ABAP Development
https://blogs.sap.com/2019/09/05/how-to-create-first-fiori-app-using-templates-in-web-ide..../ 10/14
2/10/22, 4:44 PM How to create First Fiori App using Templates in Web IDE…. | SAP Blogs
#sitCHD
Related Questions
Technical error for App created using Template in HCP Trial Web IDE
By
Prakash S Jul 27, 2016
Deploying a ui5 app to launchpad when coming from a fiori app template
By
Former Member Nov 21, 2016
Coffee Corner
Join the new Coffee Corner Discussion Group.
https://blogs.sap.com/2019/09/05/how-to-create-first-fiori-app-using-templates-in-web-ide..../ 11/14
2/10/22, 4:44 PM How to create First Fiori App using Templates in Web IDE…. | SAP Blogs
5 Comments
Nabheet Madan
September 5, 2019 at 4:08 pm
Ankur some days your energy level is low and nothing seems to work. Day is about to end but your blog post
made my day bro! Great stuff., good to see you taking small steps at a time. Well done
Like 3 | Share
Like 0 | Share
Chaouki Akir
September 7, 2019 at 8:19 pm
After creating all these objects in your development system, do you have an idea on how to transport them to
the Quality and Production environments ? And how to call the App from the Fiori Launchpad ?
Like 1 | Share
1. CDS View - While developing if you give Custom Package, system will ask for TR.
2. OData Service registration using Tcode /IWFND/MAINT_SERVICES will also ask for a TR once
you give package during Add Selected Service step.
3. Fiori app - Should be deployed to SAPUI5 ABAP Repository. During deployment WebIde will ask
for package. After that it will ask for TR.
https://blogs.sap.com/2019/09/05/how-to-create-first-fiori-app-using-templates-in-web-ide..../ 12/14
2/10/22, 4:44 PM How to create First Fiori App using Templates in Web IDE…. | SAP Blogs
About, "And how to call the App from the Fiori Launchpad ?" or how to add a tile on Fiori Lauchpad,
You can follow the steps as per the blog post - https://blogs.sap.com/2017/11/19/sap-fiori-ui5-app-
configuration-in-sap-fiori-launchpad/
Like 1 | Share
Sijin Chandran
November 3, 2020 at 8:55 am
Hello,
I was asked to look for Fiori App developments for upcoming projects and as a heads up I was searching and
this is the first blog which I clicked.
After attending SAP Inside Track #sitCHD, I was inspired to write my very first blog post. In this I am
sharing my experience on how to create a Fiori App.
ABAP being my core skill, I always felt working in Fiori will be difficult. But when I created my first Fiori app.
I realized how simple, efficient and exciting it is to work in Fiori.
Would have been even more informative if you would have added information on Cloud Connector as well. I
remember hearing about them in one of the previous projects, I was not involved in the Fiori Dev sections so I
don't have clear idea about it.
Thanks,
Sijin
Like 0 | Share
Find us on
https://blogs.sap.com/2019/09/05/how-to-create-first-fiori-app-using-templates-in-web-ide..../ 13/14
2/10/22, 4:44 PM How to create First Fiori App using Templates in Web IDE…. | SAP Blogs
Legal Disclosure Copyright
Newsletter Support
https://blogs.sap.com/2019/09/05/how-to-create-first-fiori-app-using-templates-in-web-ide..../ 14/14