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

🟑 Devtoberfest 2025 - Coder's Challenge - CAP Documentation (Capire!)

You don't have to code all day. Let's have some fun with a little CAP challenge.

πŸŽ“beginner ⏱15 min Cloud Beginner 0/10

Overview

🎓 beginner 15 min. CloudBeginner

You will learn

  • βœ”CAP documentation, known as “Capire” (Italian for “understand”)
  • βœ”CAP and CDS
DJ Adams D DJ Adams September 10, 2025
Created by September 8, 2025
Contributors

Prerequisites

Prerequisites

  • None

Steps

Intro

This challenge tests your basic knowledge and understanding of the SAP Cloud Application Programming Model, and hopefully will help you become more comfortable with its documentation, known as Capire.

The answers to each of these questions can be found in Capire, specifically in the topic page linked in the question. They will each be one word or phrase (optionally with instructions on how that phrase should be constructed) and must be precise and case-sensitive.

Good luck!


This challenge tutorial is part of our yearly and wonderful Devtoberfest, a month-long event filled with learning, fun, challenges, and prizes – for developers by developers.

Devtoberfest
Devtoberfest

For more info on Devtoberfest, see our Devtoberfest group page.

Step 1 Question 1 (managed associations)
β€”

Topic page: Definition Language (CDL).

Managed associations help us keep the details of relation and constraint mechanics out of our CDS models. With to-one managed associations, required foreign key elements can be automatically added. The name of such elements is constructed from the name of the source entity’s element, with the name of the target entity’s element, joined with an underscore, in a sort of source_target form.

Consider the following CDS model:

CDS
using {cuid} from '@sap/cds/common';

service Bookshop {
  entity Books : cuid {
    title  : String;
    author : Association to Authors;
  }

  entity Authors {
    key nr   : Integer;
        name : String;
  }
}

What would be the name of the foreign key element generated for the managed to-one association here?

Step 2 Question 2 (extending entities)
+
Step 3 Question 3 (reuse types)
+
Step 4 Question 4 (authorization annotations)
+
Step 5 Question 5 (providing data via CSV)
+
Step 6 Question 6 (CQL features)
+
Step 7 Question 7 (entity and type definitions)
+
Step 8 Question 8 (common annotations)
+
Step 9 Question 9 (the command line interface)
+
Step 10 Question 10 (the cds REPL)
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 10
1. Question 1 (managed associations) 2. Question 2 (extending entities) 3. Question 3 (reuse types) 4. Question 4 (authorization annotations) 5. Question 5 (providing data via CSV) 6. Question 6 (CQL features) 7. Question 7 (entity and type definitions) 8. Question 8 (common annotations) 9. Question 9 (the command line interface) 10. Question 10 (the cds REPL)

Learn more →