SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Create an ABAP Core Data Services (CDS) View in ABAP On-Premise

Create a CDS View, display it in Fiori Elements preview, and enhance its appearance using built-in annotations

Overview

🎓 beginner 45 min. ABAP DevelopmentBeginnerSAP Netweaver

You will learn

  • โœ”How to create a read-only CDS-based travel model
  • โœ”How to display this CDS entity in a Fiori Elements preview
  • โœ”How to extract the metadata of your CDS entity
  • โœ”How to add semantic annotations
  • โœ”How to add a search function
  • โœ”How to add selection fields to the Fiori Elements preview
Unknown U Unknown April 18, 2023
Created by March 9, 2023
Contributors

Prerequisites

Prerequisites

Steps

Intro

In summary, based on existing persistent data sources, you will create and implement a query for an OData service to get a running app with useful read-only features. You can then use some of these features in productive development to make your applications more powerful and more user-friendly. By the end of this tutorial, your application should look like this.

final-app-create
final-app-create

For more information on creating a read-only app, see the SAP Help Portal: Developing Read-Only List Reporting Apps.

Throughout this tutorial, object names may include a suffix or group number, such as XXX. Always replace this with your own group number or initials.


Step 1 Create package
โ€”

  1. Create a new package for this tutorial, by choosing New > ABAP Package.

    step1a-new-package
    step1a-new-package

  2. Enter the following then follow the wizard, choosing a new transport request:

  • Name: Z_ENHANCE_CDS_XXX

  • Description Enhance CDS Tutorial 2020

    step1a-create-package
    step1a-create-package
    step1b-new-tr
    step1b-new-tr

Step 2 Create CDS View Entity
+
Step 3 Define CDS View
+
Step 4 Display in Data Preview
+
Step 5 Create a service definition
+
Step 6 Create service binding
+
Step 7 Activate service binding
+
Step 8 Display Fiori Elements Preview
+
Step 9 Add annotations for automatic display
+
Step 10 Extract UI metadata
+
Step 11 Add semantic metadata
+
Step 12 Add search field
+
Step 13 Add selection fields
+
Step 15 Test yourself
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 15
1. Create package 2. Create CDS View Entity 3. Define CDS View 4. Display in Data Preview 5. Create a service definition 6. Create service binding 7. Activate service binding 8. Display Fiori Elements Preview 9. Add annotations for automatic display 10. Extract UI metadata 11. Add semantic metadata 12. Add search field 13. Add selection fields 14. Check your code 15. Test yourself

Learn more →