What is a business object in RAP? How is it more than a database table or a CDS view?
Say your answer out loud first.
Practise another way
A RAP business object is a real-world thing, say a travel or a sales order, modelled as one unit. It is a tree of CDS entities with a root on top, plus its behavior.
The behavior definition says what may be done with it (create, update, actions, validations), and the behavior pool implements that. The table only stores rows and the CDS view only reads them. The BO adds the transactional rules: locking, checks, draft and one consistent save.
Definition. SAP's cheat sheet describes a RAP BO as a real-world business entity with its data, characteristics and functionality. Concretely it has four parts.
1. A data model as a tree
- One root entity (
define root view entity) and optional child entities linked by compositions. A child cannot exist without its parent: delete the travel and its bookings go too. - Persistence is a database table or, from ABAP Platform 2025, a CDS table entity.
- Plain associations (customer, agency) point to other data that lives independently.
2. Behavior, declared The behavior definition (BDEF) lists what consumers may do and the rules that hold:
managed implementation in class zbp_r_travel unique;
strict ( 2 );
define behavior for ZR_Travel alias Travel
persistent table ztravel
lock master
authorization master ( instance )
etag master LocalLastChanged
{
create; update; delete;
association _Booking { create; }
field ( readonly ) TravelID;
validation checkDates on save { create; field BeginDate, EndDate; }
action accept result [1] $self;
}
3. Behavior, implemented
The behavior pool (ZBP_...) holds handler methods for validations, determinations, actions, authorization and feature control, written in its local types include.
4. A runtime that guarantees consistency
- Changes go into a transactional buffer, not straight to the table.
- Locks, ETags and authorization are anchored at the root.
- The save sequence writes everything in one database LUW or nothing.
So what does it add over a table or a view?
| Table | CDS view | RAP BO | |
|---|---|---|---|
| Stores data | yes | no | via its table |
| Reads with semantics | no | yes | yes |
| Create/update with checks | no | no | yes |
| Locks, draft, ETag | no | no | yes |
How consumers reach it. A Fiori app or a Web API reaches it through a projection, a service definition and a service binding.
ABAP code reaches it through EML (READ ENTITIES, MODIFY ENTITIES, COMMIT ENTITIES). Every path runs the same behavior, which is the real value: the rules live in one place.
Fresher tip: name the root, a child, one validation and one action from an object you know. That shows you understand a BO as data plus behavior, not as a table.
Describes a BO as a root-and-child tree of CDS entities plus declared and implemented behavior, and names what the runtime adds: buffer, locks, ETags, one save.
Says a business object is 'the main table' or 'a CDS view with annotations' and cannot say where validations or locking live.
Describing the BO as a single table or view. Interviewers want the tree of entities plus behavior and the transactional guarantees, not a data dictionary answer.
- What is the difference between a composition and an association in a RAP BO?
- Which consumers can use a RAP BO, and do they all run the same validations?
- Where do you write the code for a validation you declared in the BDEF?
2 official pages and 5 prep guides. Confidence: high. Checked 2 Dec 2026.
- Prep guide Gives the question.
- Prep guide Gives the question.
- Prep guide Describes the round.
- Prep guide Gives the question.
- Prep guide Gives the question.
- Official page Backs the answer.
- Official page Backs the answer.