SAP RAP / CDS / OData Interview Questions

CDS modelling, RAP business objects and OData services.

219
Questions
27
Topics
8
Experience levels

Sample Questions

Full questions with full answers — no sign-in required.

hardRAP Basics

1. Why should direct database updates be avoided for RAP business objects?

First, check that the change is being made through the RAP behavior layer rather than by updating tables directly. Direct database updates bypass the managed lifecycle, so validations, determinations, locking, authorization checks and transactional consistency are not executed. That means the data may be saved in a technically successful way but still violate business rules or leave the object in an inconsistent state. A strong candidate adds that RAP business objects should be accessed via EML or the framework behavior so the complete business logic is triggered, the update is properly controlled, and the object remains safe for concurrent use and future extensions.
mediumFiori Elements

2. A generated Fiori Elements List Report opens successfully but shows no useful columns. What would you check before writing custom UI5 code?

I would verify that the RAP OData V4 service returns data and then inspect the UI annotations, especially lineItem and selectionField metadata, plus the projection and metadata extension. If the service is healthy, missing columns are usually a metadata/presentation issue rather than a reason to build custom controllers.
easyOData V4

3. Why should you inspect OData V4 metadata before manually constructing CRUD requests?

The metadata is the public service contract. It tells the client the entity-set names, keys, property names and types, navigation properties, actions/functions and annotations. Guessing names from the CDS source can produce invalid requests because the public projection/service can expose a different contract.
hardAMDP

4. A report is slow because it aggregates millions of rows in ABAP. Would you move it directly to AMDP?

Not automatically. I would measure the bottleneck, then first test whether modern Open SQL or CDS can perform the set-based aggregation cleanly. AMDP is justified when SQLScript or HANA-specific processing provides a measurable benefit that higher-level ABAP/CDS cannot deliver cleanly. I would compare correctness and runtime with realistic data before accepting the HANA-specific coupling.
easyFiori Elements

5. Where should business validations live in a RAP-based Fiori Elements application?

Business validations belong in the RAP business object behavior layer, not duplicated in frontend JavaScript. Fiori Elements consumes the service metadata and messages and should present the result. UI-only checks can improve usability, but the authoritative business rule must remain on the backend.
mediumOData V4

6. A RAP OData V4 service works in Fiori preview, but a direct API POST fails. How would you isolate whether the problem is in OData exposure or the RAP business object?

I would start with the service metadata and reproduce the exact POST outside the UI. Then I would compare the HTTP status and RAP messages. If an equivalent EML create succeeds, the business object is likely healthy and I would focus on the OData path, payload shape, authentication, entity-set name, draft state and concurrency headers. If EML also fails, I would investigate the RAP behavior, validation, authorization or data state.

Browse by Topic

SAP RAP / CDS / OData interview questions by experience level

The same question set, grouped by the depth each interview actually goes to.

SAP RAP / CDS / OData — Fresher / 1-3 yrs

Core concepts, configuration basics and the process flow an interviewer expects you to explain end to end.

easyRAP Basics

1. What is RAP in SAP ABAP?

First, I would explain that RAP stands for ABAP RESTful Application Programming Model and is SAP’s modern framework for building transactional OData services and Fiori applications. It combines CDS views for the data model with behavior definitions, behavior implementations, service definitions and service bindings to expose business logic in a structured way. The reason it matters is that it standardises how you build, expose and maintain applications on the ABAP platform. A strong candidate adds that RAP supports clean separation between data, business rules and service exposure, making solutions easier to extend, test and align with modern SAP application development.
easyCDS Views

2. What is a CDS View in SAP ABAP?

A strong first step is to explain that a CDS View is a semantic data model defined in ABAP CDS, not just a simple SQL select. It is used to model database data with fields, joins, associations, annotations and built-in authorization support. The reason this matters is that CDS lets you describe the business meaning of the data close to the database layer, which improves reuse, consistency and performance. A strong candidate also adds that CDS views are widely used in S/4HANA for reporting, Fiori apps, OData services, analytics and RAP applications, making them a core part of modern ABAP development.
easySAPUI5 and SAP Fiori Tools

3. Explain SAPUI5 data binding: model types, binding types and binding modes.

Models: OData V4 model for backend data, JSONModel for UI state/local data, ResourceModel for i18n; named models separate concerns ({view>/busy}). Binding types: property ({Description}), element/context (bindElement) and list/aggregation (items="{/PurchaseRequest}"); relative paths resolve against contexts. Modes: one-way, two-way (V4 inputs default), one-time. Formatters and expression binding handle display logic declaratively.
mediumDebugging

4. A CDS view returns different numbers than the underlying ABAP report using SELECT SUM. Where do you start?

Confirm both are hitting the same physical tables and clients; compare the WHERE clauses generated by SQL trace (ST05). Common causes: unit-conversion in the CDS view (currency / quantity conversions add sign flips), authorization-managed CDS (DCLs filter rows the ABAP report reads directly), or NULL vs 0 semantics for outer joins. Add a WHERE that isolates one document and reconcile row-by-row.

Browse by Experience

Fresher1-3 years4-7 years8-12 years2_47_1010_plusArchitect

Why ERPClimb

Built and reviewed by a senior SAP architect with 19 years of production experience. Every answer is written against how the process actually behaves in a live system, not copied from documentation, and each question is tagged by topic, difficulty and experience level so you can practise at the depth your next interview will use.

SAP RAP / CDS / OData interview FAQ

Managed or unmanaged RAP — what is asked?

The decision criteria: greenfield objects usually go managed, while legacy logic that already owns persistence goes unmanaged.

What CDS knowledge is expected?

Associations, annotations, view entities versus classic DDIC-based views and analytical versus transactional modelling.

How is OData tested?

Through service definition and binding, V2 versus V4 differences and how metadata drives the Fiori Elements UI.

Is this area growing in interviews?

Yes. Clean core pushes new development towards RAP, so it appears in most modern ABAP interviews.

Next practice step

Related SAP interview topics

Focused SAP interview guides