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
23,340

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

0 Kudos
2,928

Hi @SROUT ,

Thanks for the submission. For better readability you can give the Text values in the value help. Use @UI.textArrangement

vgirish22
Discoverer
3,165

Hi,

1. Preview of the App with all the columns, search and filter options.

vgirish22_0-1724689747710.png

2. Search records based on Description field and Status field.

vgirish22_1-1724689993155.png

Vik
Discoverer
0 Kudos
3,491

Hello  - Results as follows :

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

       

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

       

    2. Vik_4-1724700343645.png

       

    3. Vik_5-1724700362468.png

       

Shilpa_Shankar
Developer Advocate
Developer Advocate
0 Kudos
3,340

Hi,

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

0 Kudos
2,534

hello,  thank you for the review.

Added the search field.

Vik_0-1724957172680.png

 

trimlesmike
Discoverer

M-K
Active Participant
3,601

Here's my submission:

1. list preview:

MK_0-1724710198524.png

2. search for description with specific status:

MK_1-1724710260094.png

 

p215636
Explorer
3,599

Please see Task 3 screen grabs

Initial Search

p215636_0-1724714436936.png

Descriptive Search

p215636_1-1724714505386.png

Entries Filtered by Overall Status

p215636_2-1724714628956.png

Entries filtered byTravel ID, but without dialogue screen

p215636_3-1724714788978.png

Entries filtered by Travel ID with dialogue screen

p215636_4-1724714846931.png

Result set of dialogue interaction

p215636_5-1724714885223.png

Thank you for your time.

Ihor_Haranichev
Participant
3,500

Hello All!

My results are:

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

Ihor_Haranichev_0-1724734189011.png

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

Ihor_Haranichev_1-1724734252237.png

 

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

diveshkalra
Explorer
3,478

PFB Task 3 submission:

Thankyou @Shilpa_Shankar  for your time and valuable inputs.

  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.

diveshkalra_0-1724747000642.pngdiveshkalra_1-1724747047755.png

diveshkalra_2-1724747087887.png

 

0 Kudos
3,417

nice to see your enthusiasm and didn't give up.

rdulek
Explorer
3,455

Task 3 done!

General Preview:

rdulek_1-1724755053856.png

Filtered Version :

rdulek_0-1724755031267.png

 

0 Kudos
3,424

Hi @rdulek ,

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

0 Kudos
3,126

Hi @Shilpa_Shankar ,

I made the correction, can you check it?

rdulek_0-1724828774671.png

Value Help: 

rdulek_0-1724852321796.png

 

 

spassaro
Participant

halfknight
Explorer
0 Kudos
3,439

Hello, this is my solution.

Preview the App showing all the columns, search and filter options in the CDS view entity.

halfknight_0-1724758045044.png

Search records based on a specific value from 'Description' field and select an available value from the 'Status' field.

halfknight_1-1724758082670.png

 

0 Kudos
3,432

Hi @halfknight 

Thanks for the submission. Kindly search without * and for better readability filter on status text should be displayed.

2,854

Hello @Shilpa_Shankar 

I've changed my programming, so that the UI now looks like the following:

halfknight_0-1724860528919.png

1. Searching without wildcard character

2. Display the status text in the selection dropdown

Jay_Dalsaniya
Participant
3,416

Task 3

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

Sarath_Kumar
Explorer
3,417

Hi @sheenamk ,

Task 3 Completed...

Screenshots:

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

Sarath_Kumar_1-1724762092963.png

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

Sarath_Kumar_2-1724762252099.png

 

 

vslakshmi
Explorer
3,406

Task 3

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

vslakshmi_0-1724763860371.png

Search records based on a specific value from 'Description' field and select an available value from the 'Status' field.

vslakshmi_1-1724763985680.png

Regards,

Lakshmi

JerryW
Explorer
3,414

Hello - here is my submission. Thank you!

JerryW_0-1724765095676.png

 

YogSSohanee
Participant

kedarT
Active Contributor
0 Kudos
3,337

1. Data Preview:

kedarT_0-1724770688839.png

2. Filter by description:

kedarT_1-1724770737572.png

3. Filter by status text

kedarT_2-1724770803550.png

 

 

0 Kudos
2,643

Hi,

Kindly add Search field and search on a specific value from Description without giving *.

Value help should display the Status Text

Rambabu_Botsa
Explorer
0 Kudos
3,277

Thank you for task!!.. 😀👍

Task 3 is completed.

1. Data Preview in Fiori App showing with all the columns, search and filter options

rambabu_botsa_0-1724782774101.png

2. Search records based on a specific value from 'Description' field, and apply a filter on 'Status'

rambabu_botsa_1-1724782884075.png

 

 

 

 

0 Kudos
2,652

Hi,

kindly add Search field and enable search on description 

RLi2340
Discoverer
3,254

Hi,

Screenshots for Task 3

All fields with search and filters 

RLi2340_2-1724787156436.png

Search with Description

RLi2340_1-1724787082518.png

Filter on Status

RLi2340_0-1724787009713.png

Thanks

0 Kudos
2,654

Hi,

Kindly add Search field and search on a specific value from Description without giving *.

Value help should display the Status Text 

0 Kudos
3,196

Good day!

Here are the Task-3 validations.

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

Naveen_srinivasan_0-1724823560346.png

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

Naveen_srinivasan_1-1724823560358.png

Naveen_srinivasan_2-1724823560369.png

 

BR,

Naveen 

 



 

0 Kudos
2,662

Hi,

Kindly add Search field and search without *

Bhumika_K
Associate
Associate
3,159

Please find my submission for Task-3 below

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

TASK-3.2.png

 

darseidel
Discoverer
3,128

Here is my submission:

All columns, search and filter options:

darseidel_0-1724834928708.png

Search filtered by description and travel status:

darseidel_1-1724834960466.png

Kaleshavalli
Discoverer
3,092

Hi,

Greetings !

My Solution and below are the screen shots for Task 3.

Thank you.

Kaleshavalli_0-1724842079034.pngKaleshavalli_1-1724842089517.png

Thanks & Regards,

Kalesha.

tobiasz_h
Active Participant

SushmitaG
Product and Topic Expert
Product and Topic Expert
2,988

Please find below my response for Week 3 challenge

 Screenshot 2024-08-28 at 6.45.36 PM.png

Regards,

Sushmita