Another Wednesday and we are back with Task 3 of the August Developer Challenge on ABAP Core Data Services. We are thrilled to see the amazing response to Task 1 and Task 2. Whoever missed it can find all the information in our blogpost August Developer Challenge.
Today for Task 3 we decided to take you all through one of the interesting and widely used feature of ABAP Core Data Services – Annotations.
Annotations allow you to add domain-specific metadata and text labels to CDS objects that goes beyond the syntax features of ABAP SQL. This means that it enhances the technical properties of CDS view entities such as adding search , capabilities or controlling access to your data. To know more about Annotations watch the SAP TechByte on Annotations or go through the CDS Annotation Help Documentation
Task 3 – In this task we will add annotations to the CDS View Entity created in Task1 and then create a Fiori app to view the results.
- Add annotations to display all the fields in the Fiori app by default.
- Add annotations to provide a search field and enable search by ‘Description’ in the filter bar.
- Add annotations to provide a filter on the ‘Status text’ field based on Overall Status text.
- Add annotations to provide a filter for the Travel ID field.
- Create a Service Definition
- Create a Service Binding to preview the Fiori app.
Follow the instructions carefully and share with us the screenshots of the items mentioned in the ‘Validation’ section of this discussion.
Please use this separate thread to ask your questions and discuss issues.
Validation :-
Please share screenshots after performing the following :
- Preview the App showing all the columns, search and filter options in the CDS view entity.
- Search records based on a specific value from ‘Description’ field, and apply a filter on ‘Status’.
We are eagerly waiting to see your submissions. Enjoy!!