In this blog, I am going to show How CDS view can be used to generate a Fiori List App Report. Below are the steps that need to be implemented to generate Fiori List App Report.
-
CDS annotations for Fiori List Report.
-
How to create a Gateway service from ABAP CDS view
-
How to create a Fiori List App report in Web IDE.
-
How to Deploy the Fiori Application.
-
Create a Custom Semantic Object.
-
Create a Tile in Fiori.
-
Adding Tile from Catalogs –> Groups.
So Lets Begin with....
1.
CDS view with Annotations for Fiori List Report:
Make sure you set
@OData.publish
annaotation set to True in order to enable the service to Fiori.
Also you can set below CDS view annotation for UI interface.
@UI.HeaderInfo - to display the header information for the list report.
@UI.selectionField.position - this is for filter option
@UI.lineItem.position - This is for Positioning the filed in the Report Layout
@UI.hidden - If you want to hide the filed in Fiori side
@UI.lineItem.exclude - If you want to exclude the filed in Report Layout by default.
and many more.....
You must use Associations in order to bring Value help feature in filters.
Below is the sample CDS view code with UI Annotations, OData, Associations etc.,
@AbapCatalog.sqlViewName: 'ZDEMOCOMPWHR'
...
...
...
If you want ValueHelp in the List report filters to select the Prompts, then you need to implement the associations in the CDS view as mentioned in the above code, I have implemented ValueHelp for Material & Owner.
2. How to create GateWay Service for CDS view:
...
...
...