Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Task 3 - Enhancing CDS View Entities with Annotations

sheenamk
Developer Advocate
Developer Advocate
42,829

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.

  1. Add annotations to display all the fields in the Fiori app by default.
  2. Add annotations to provide a search field and enable search by ‘Description’ in the filter bar.
  3. Add annotations to provide a value help filter on the ‘Status text’ field based on Overall Status text.
  4. Add annotations to provide a filter for the Travel ID field.
  5. Create a Service Definition
  6. 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 :-

Note:- Please do not search with '*'

Please share screenshots after performing the following :

  1. Preview the App showing all the columns, search and filter options in the CDS view entity.
  2. Search records based on a specific value from 'Description' field and select an available value from the 'Status' field.

We are eagerly waiting to see your submissions. Enjoy!!

196 REPLIES 196
Read only

this_yash
Participant
Read only

0 Kudos
7,270

Hi,

Thanks for the submission. For better readability, display the Status text instead of the key

Read only

0 Kudos
6,561

Here's the revised version.

this_yash_0-1725390598984.png

 

Read only

soni_opal
Explorer
7,525

Task 3

full preview:

soni_opal_0-1724871678121.png

Search by Description:

soni_opal_1-1724871762416.png

filter by status:

soni_opal_2-1724871879477.png

 

 

 

 

 

Read only

Neethu_Lohi
Explorer
Read only

0 Kudos
7,199

Hi,

Thanks for the submission. For better readability you can display Status Text instead of the key.

Read only

localConstantin
Explorer
Read only

vazhz
Explorer
Read only

Nkrish
Contributor
7,223

Hi,

display all the fields in the Fiori app by default.

Nkrish_0-1724973493949.png

 

 

 

 

 

 

 search field and enable search by ‘Description’ in the filter bar.

Nkrish_1-1724973907431.png

value help filter on the ‘Status text’ field based on Overall Status text.

Nkrish_2-1724973999651.png

Nkrish_3-1724974014173.png

provide a filter for the Travel ID field.

Nkrish_4-1724974152923.png

Read only

Ziynatullo
Explorer
7,160

Week 3. Let's go!

Read only

Santhosh_Rajan
Explorer
7,160

Hi,

Preview App with the required filters:

Santhosh_Rajan_0-1725002747039.png

With the filters:

Santhosh_Rajan_1-1725003280374.png

Regards,

Santhosh Rajan

 

Read only

Harsh_Hunjan
Product and Topic Expert
Product and Topic Expert
Read only

mtunc
Explorer
7,121

Hi, here is my validation for task 3 

1.

30.08.2024.png

2.

30.08.2024 v2.png

Read only

Bharath369
Explorer
0 Kudos
7,025

Hi @sheenamk 

My filters are not working and below is my metadata extension. Please let me know if I am missing nything.

Bharath369_1-1725230034416.pngBharath369_2-1725230112748.png

Thanks,

Bharath

Read only

DineshkumarR1
Explorer
6,744

Hi @sheenamk 
Here by i have attaching my results for TASK 3, if i missed anything, kindly let me know.

  1. Preview the App showing all the columns, search and filter options in the CDS view entity.
    DineshkumarR1_0-1725262494819.png

     

  2. Search records based on a specific value from 'Description' field and select an available value from the 'Status' field.
    DineshkumarR1_1-1725262625242.png

     



 

Read only

SachinSinghg
Explorer
6,728

Hello, I am little late in submitting solution...🐌. I was in emergency ...🗿. I am fine now 🤗. I have completed Task 3 😃

Week 3 - 1 Fiori App.jpgWeek 3 - 2 Fiori App.jpg

Read only

0 Kudos
6,665

Hi Sachin,

Thanks for taking part in the challenge. Hope you are better now. Kindly add Search field and search without *

Read only

Rajini88
Discoverer
Read only

0 Kudos
6,667

Hi,

Thanks for the submission. Kindly add a search field and search without *

Read only

6,625

Hi,

Please find attached screen shot.

RahulChowdaryMaganti_0-1725356443634.png

Thanks & Regards,
Rahul.

Read only

0 Kudos
6,490

Hi,

Thanks for the submission. For better readability, always display the text instead of the value.

Read only

SingireddySunil
Explorer
Read only

0 Kudos
6,490

Hi,

Thanks for the submission. For better readability, always display the text instead of the value.

Read only

RichHeilman
Developer Advocate
Developer Advocate
Read only

gaurav33
Discoverer
6,523

Sorry for the delay this time, I am completing week 3 and 4 together.
Here is my screenshot for week 3
Before

gaurav33_1-1725422587749.png

After

gaurav33_2-1725422629745.png

Regards,
Gaurav

 

 

Read only

TOQUANGTINH
Participant
0 Kudos
6,457

Task 3 completed!

1. Preview the App showing all the columns, search and filter options in the CDS view entity.TINH_TOQUANG_0-1725471711787.png

2. Search records based on a specific value from 'Description' field and select an available value from the 'Status' field.
TINH_TOQUANG_1-1725471762803.png

 

Tinh
Read only

CameronWilson
Explorer
0 Kudos
6,440

Here is my Week 3 Sub!

  1. Preview the App showing all the columns, search and filter options in the CDS view entity.
    CameronWilson_3-1725495941372.png

     

  2. Search records based on a specific value from 'Description' field and select an available value from the 'Status' field.
    CameronWilson_2-1725495876478.png

     

Read only

fahadburney
Explorer
0 Kudos
6,401

Hi , Task 3 Finished  .

fahadburney_0-1725553152249.png

 

Read only

Laco
Explorer
Read only

manishagb
Explorer
Read only

3veni
Explorer
0 Kudos
5,920

Hi

App preview

3veni_0-1726464462148.png

Search Records

3veni_1-1726464563230.png

Thanks

Thiriveni