Application Development 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: 

Task 3 - Enhancing CDS View Entities with Annotations

sheenamk
Developer Advocate
Developer Advocate
22,440

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

this_yash
Participant

0 Kudos
2,446

Hi,

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

0 Kudos
1,737

Here's the revised version.

this_yash_0-1725390598984.png

 

soni_opal
Explorer
2,701

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

 

 

 

 

 

0 Kudos
2,375

Hi,

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

localConstantin
Explorer
2,462

My (late due to illness) submission:

localConstantin_0-1724943324213.pnglocalConstantin_1-1724943369088.png

 

vazhz
Explorer

Nkrish
Contributor
2,399

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

Ziynatullo
Explorer
2,336

Week 3. Let's go!

Santhosh_Rajan
Explorer
2,336

Hi,

Preview App with the required filters:

Santhosh_Rajan_0-1725002747039.png

With the filters:

Santhosh_Rajan_1-1725003280374.png

Regards,

Santhosh Rajan

 

Harsh_Hunjan
Associate
Associate

mtunc
Explorer
2,297

Hi, here is my validation for task 3 

1.

30.08.2024.png

2.

30.08.2024 v2.png

Bharath369
Explorer
0 Kudos
2,201

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

DineshkumarR1
Explorer
1,920

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

     



 

SachinSinghg
Explorer
1,904

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

0 Kudos
1,841

Hi Sachin,

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

Rajini88
Discoverer

0 Kudos
1,843

Hi,

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

1,801

Hi,

Please find attached screen shot.

RahulChowdaryMaganti_0-1725356443634.png

Thanks & Regards,
Rahul.

0 Kudos
1,666

Hi,

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

SingireddySunil
Explorer

0 Kudos
1,666

Hi,

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

RichHeilman
Developer Advocate
Developer Advocate

gaurav33
Discoverer
1,699

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

 

 

TOQUANGTINH
Participant
0 Kudos
1,640

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

 

To Quang Tinh

CameronWilson
Explorer
0 Kudos
1,623

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

     

fahadburney
Explorer
0 Kudos
1,584

Hi , Task 3 Finished  .

fahadburney_0-1725553152249.png

 

Laco
Explorer

3veni
Explorer
0 Kudos
1,096

Hi

App preview

3veni_0-1726464462148.png

Search Records

3veni_1-1726464563230.png

Thanks

Thiriveni