Skip to Content
Technical Articles
Author's profile photo Attila Berencsi

Find Annotation Examples in CDS Views

Purpose

Help developers to find CDS annotation examples, especially when this error message appears in ADT: Text search services are not supported, because it is not available / not configured in the backend.

I created it to help my students to find samples and for myself when dealing with the many possible annotations listed on the SAP Help Site, which explain all the properties of them. Unfortunately samples for them are split across the multiple developer guides of the corresponding frameworks. Why not to see a real use case right in the system ?!

Features

  • Search for CDS header / field / parameter annotations
  • Type ahead value help for annotations existing in the system within CDS Entities
  • Opens ADT, when running embedded, otherwise shows Data Definition in a popup

Usage

Run report ZSAPDEV_CDS_FIND_ANNO in ADT / SE38 / SA38 / SE80 and start typing to find an annotation you’re looking for.

 

Execute (F8), then select a CDS Entity and press the Show CDS button.

In case You executed it in ADT, it will open a new Tab, otherwise the Data Definition Source code will be displayed in a  popup window.

CDS%20Opened%20in%20ADT

CDS Opened in ADT

 

CDS%20Opened%20in%20GUI

CDS Opened in GUI

Installation

Install this repository using ABAPGit online / offline

https://github.com/attilaberencsi/cdsfindanno

You will find here a more interactive demo as well.

Tested on ABAP Platform 1909, and the same time good bye, such tool cannot be developed in the Trial Cloud for fun.

I wish You a joyful CDS and Fiori Development !

🙂

 

Assigned Tags

      2 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Andrei Nicolae Plaiasu
      Andrei Nicolae Plaiasu

      Nice work, thank you!

      Author's profile photo Attila Berencsi
      Attila Berencsi
      Blog Post Author

      You're welcome Andrei, enjoy ! I had definitely some pain points to render charts properly by CDS Annotations in the past. A little small help is good any time 🙂