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
19,077

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,237

Hi @SROUT ,

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

vgirish22
Discoverer
2,474

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
2,800

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
2,649

Hi,

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

0 Kudos
1,843

hello,  thank you for the review.

Added the search field.

Vik_0-1724957172680.png

 

trimlesmike
Discoverer

M-K
Active Participant
2,910

Here's my submission:

1. list preview:

MK_0-1724710198524.png

2. search for description with specific status:

MK_1-1724710260094.png

 

p215636
Explorer
2,908

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
2,809

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
2,795
  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
2,787

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
2,726

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

rdulek
Explorer
2,764

Task 3 done!

General Preview:

rdulek_1-1724755053856.png

Filtered Version :

rdulek_0-1724755031267.png

 

0 Kudos
2,733

Hi @rdulek ,

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

0 Kudos
2,435

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
2,748

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
2,741

Hi @halfknight 

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

2,163

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
2,725

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
2,726

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
2,715

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
2,723

Hello - here is my submission. Thank you!

JerryW_0-1724765095676.png

 

YogSSohanee
Participant

kedarT
Active Contributor
0 Kudos
2,646

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
1,952

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
2,586

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
1,961

Hi,

kindly add Search field and enable search on description 

RLi2340
Discoverer
2,563

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
1,963

Hi,

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

Value help should display the Status Text 

0 Kudos
2,505

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
1,971

Hi,

Kindly add Search field and search without *

Bhumika_K
Associate
Associate
2,468

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
2,437

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
2,401

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,295

Please find below my response for Week 3 challenge

 Screenshot 2024-08-28 at 6.45.36 PM.png

Regards,

Sushmita