SAP RAP / CDS / OData Behavior Definitions Interview Questions
Interviewers use behavior definitions to test depth rather than coverage: the follow-up question is almost always "why does the system behave that way?", and that is where prepared answers usually run out.
Master RAP behavior definitions as the contract for CRUD, field control, actions, determinations, validations, locks, authorization, ETags and feature control. Learn how to make the BO behavior explicit before writing implementation logic.
This page carries 10 reviewed SAP RAP / CDS / OData behavior definitions interview questions, each with a complete written answer and no sign-in required. The set breaks down into 2 foundational, 5 mid-level and 3 advanced questions, so you can start at the top for a first interview or skip ahead to the scenario-based items for a senior round.
If you can handle every question here without hesitating, behavior definitions is unlikely to be what costs you an SAP RAP / CDS / OData interview — and the same reasoning pattern transfers to the neighbouring topics linked at the bottom of this page.
10 Behavior Definitions questions with answers
2. Why do child entities in a RAP BDEF usually have no create operation of their own, and what must the child declare?
3. You join a project with an unfamiliar RAP BO. How do you understand what it allows in five minutes, just by reading its BDEF?
4. Explain field characteristics in a BDEF: readonly, readonly : update, mandatory, mandatory : create and features : instance. When would you use each?
5. Which kinds of actions and functions can you declare in a BDEF? Give a use case for each.
6. Users see outdated totals in a Fiori app after changing item quantities, and someone proposes a 'Recalculate' button. What would you do instead?
7. After enabling draft, adding an item in the Fiori app fails. The header has 'with draft' and draft tables exist. What do you check?
8. What do 'precheck', 'internal' and 'authorization : none' mean on BDEF operations, and what risks come with them?
9. What is the difference between a projection BDEF and an interface BDEF, and when do you need each?
10. A consumed RAP API must change: an optional field becomes mandatory and an action parameter changes. How do you handle it?
Related lesson
Behavior Definitions Part 1: Reading a BDEF as the BO ContractRelated topics
Next practice step
Go deeper on this topic
- Behavior Definitions — lessons, mock tests and code lab
- CDS Views
- CDS Associations
- CDS Annotations
- RAP Business Objects
- Behavior Implementations
- EML
- SAP RAP / CDS / OData Behavior Implementations interview questions
- SAP RAP / CDS / OData CDS Annotations interview questions
- SAP RAP / CDS / OData CDS Associations interview questions
- SAP RAP / CDS / OData CDS Table Functions interview questions
- SAP RAP / CDS / OData Draft Handling interview questions
- SAP RAP / CDS / OData EML interview questions