Why does RAP have a projection layer, and what is a business object interface?
Say your answer out loud first.
Practise another way
A projection layer lets one base business object serve different consumers without copying it. A CDS projection view picks and renames fields for one service, and a projection behavior definition, using use create and similar, exposes only the operations that consumer needs.
A business object interface is a stable, released projection of a BO, so other developments and apps use it through EML without depending on the internal model.
The projection layer
- The base BO (the
R-layer in the RAP generator naming) holds data model and behavior for the whole business process. - Each consumer gets its own projection: a UI app, a Web API, an app for another team. A projection is a thin layer, not a copy.
- CDS projection view (
define root view entity ... as projection on): selects the fields, renames them, adds service-specific annotations (labels, UI facets via metadata extensions) and redirects associations. - Projection BDEF (
projection;): reuses the base behavior withusestatements. You can only restrict, you cannot add logic.
projection;
strict ( 2 );
define behavior for ZC_Travel alias Travel
{
use create;
use update;
use action cancelTravel;
use association _Booking { create; }
}
Why bother
- Separation of concerns. UI annotations and consumer-specific fields do not pollute the base view.
- Multiple services from one BO: an app that edits, a read-only analytical API, an external API with a smaller field set.
- The service definition exposes the projection, never the base entity.
- Changes to the UI do not touch the core object.
Business object interface (BO interface)
- A special projection for stable consumption across components. It consists of a CDS projection view with provider contract
transactional_interface, and a behavior definition with the keywordinterfacein its header, a BDEF type without behavior pool. - It has no logic of its own. Requests are delegated to the base BO. You may only add or redefine static feature control (say, readonly), never new behavior. One base BO can have several interfaces, for example one with draft and one without.
- It is released, with release contract C1 (system-internal use) and the visibility Use in Cloud Development. Beneath a released interface, the base BO cannot be consumed directly.
- Consumers use it through EML or build their own projection and service on it, while the base BO stays free to change.
- SAP ships BO interfaces as the clean-core successors of many BAPIs, for instance
I_ProductTP_2, which SAP's article names as the successor ofBAPI_MATERIAL_SAVEDATA.
Interview answer in one line: projection is for shaping, interface is for stability.
Separates shaping (projection) from stability (BO interface) and gives the contract details.
Says projections are 'copies of the view for the UI' and has not heard of BO interfaces.
Exposing the base entity in the service definition. That ties the service to the internal model, and a later field change breaks consumers.
- Can a projection BDEF add a validation?
- Where do UI annotations go and why?
- What release contract does a BO interface need?
- How do you consume a BO interface from ABAP Cloud code?
4 official pages and 2 technical references. Confidence: high. Checked 21 Nov 2026.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Technical reference Backs the answer.
- Official page Backs the answer.
- Technical reference Backs the answer.