ERPClimb logoERPClimb

SAP RAP / CDS / OData SAPUI5 and SAP Fiori Tools Interview Questions

SAPUI5 and SAP Fiori Tools is a standard block in SAP RAP / CDS / OData interviews. It is rarely asked as a definition; it is asked as a situation you have to talk your way through.

SAPUI5 application development with MVC, models, binding, routing, OData, SAP Fiori tools, BAS/VS Code, testing and deployment.

This page carries 14 reviewed SAP RAP / CDS / OData sapui5 and sap fiori tools interview questions, each with a complete written answer and no sign-in required. The set is weighted towards 3 foundational and 11 mid-level questions, which matches how sapui5 and sap fiori tools is normally asked at the screening and first-round stage.

Treat the answers as a starting structure, not a script. Interviewers in SAP RAP / CDS / OData rounds follow up on whatever you sound least certain about, so the value is in being able to keep going after the first answer.

14 SAPUI5 and SAP Fiori Tools questions with answers

easySAPUI5 and SAP Fiori Tools

1. Describe how you set up and generate a SAPUI5 app with SAP Fiori tools.

Use BAS or VS Code with SAP Fiori tools extensions and a supported Node version. First test the OData service ($metadata, auth, data). Run the Application Generator: choose freestyle (basic) or Fiori Elements template, connect to the system/destination and service, set stable namespace/module names. The project contains webapp (Component, manifest, views, i18n), ui5.yaml with backend proxy, ui5-mock.yaml and npm scripts. Run with npm start (real backend) or start-mock (mock data), then add deploy config later.
easySAPUI5 and SAP Fiori Tools

2. 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.
easySAPUI5 and SAP Fiori Tools

3. Explain MVC in SAPUI5 and the role of Component.js and manifest.json.

Model holds data (OData V4, JSON, resource models), View describes the UI declaratively (XML views), Controller handles events and orchestration — kept thin. Component.js is the app entry point (extends UIComponent, loads the manifest, initializes the router). manifest.json is the app descriptor: ID, data sources, models, routing, dependencies, i18n, launchpad inbounds. This makes the app reusable in the launchpad and configurable without code.
mediumSAPUI5 and SAP Fiori Tools

4. A generated app works on one developer's machine but not on another's: 401/404 on OData calls. What do you check?

Check ui5.yaml proxy configuration (backend URL, client, path), system/destination credentials, VPN/Cloud Connector access, service URL/version in manifest, and whether the service is published in that system. In BAS check destinations. Compare Node and tooling versions. Test the service URL directly in a browser/REST client with the same user. Commit shared config (ui5.yaml) and keep credentials out of the repository.
mediumSAPUI5 and SAP Fiori Tools

5. Users say "my change is not saved" in a freestyle V4 app, but no error is shown. What do you check?

Check the update group: with a deferred group, changes stay pending until submitBatch is called — maybe Save does not call it or uses another group. Check the Network tab for a $batch on Save and its responses; failed requests may return messages that nobody displays — bind a MessagePopover to the message model. Check that the created()/submit promises are handled and that input binding is two-way.
mediumSAPUI5 and SAP Fiori Tools

6. How do routing and navigation work in SAPUI5, and where do you bind the detail view?

Routes (name, URL pattern such as requests/{requestId}) and targets (view, control aggregation) are configured in manifest.json; the router is initialized in Component.init. Navigate with router.navTo("detail", { requestId }) — keys only, encoded. In the detail controller attach to the route's patternMatched event and bind the view there (bindElement), because onInit runs only once. Configure a notFound target; hashes enable bookmarks and back navigation.
mediumSAPUI5 and SAP Fiori Tools

7. How do you deploy a Fiori app to production, and what must be in place for users to see it?

Build with ui5 build; add deploy config with Fiori tools. ABAP: ui5-deploy.yaml (system, BSP name, package, transport) and npm run deploy to DEV, then transport to QAS/PRD. BTP: MTA with HTML5 app repository and approuter, mbt build and cf deploy. Users need the launchpad inbound (semantic object/action), tile and target mapping in a catalog, a role/space, and authorization for the OData service. Version the app and refresh caches/app index.
mediumSAPUI5 and SAP Fiori Tools

8. How do you debug and test SAPUI5 applications?

Find the layer: console errors, Network ($batch payloads and error bodies), bindings (UI5 Inspector), backend (ADT). Tools: sap-ui-debug=true, Diagnostics (Ctrl+Alt+Shift+S), Support Assistant (Ctrl+Alt+Shift+P). Tests: QUnit for formatters and helpers, OPA5 for user journeys with a mock server, run in CI. Performance: async loading, component preload, autoExpandSelect, growing tables, no to-many $expand in lists.
mediumSAPUI5 and SAP Fiori Tools

9. How do you create, update and save data with the OData V4 model in a freestyle app?

Configure the V4 model in manifest (autoExpandSelect, operationMode Server, an update group). Read with list/element bindings. Create with oListBinding.create({…}) and wait for created(). Updates happen via two-way binding on contexts. With a deferred group, send changes with submitBatch(group) and revert with resetChanges(group). Actions via bindContext("<namespace>.action(...)", ctx).execute(). Backend messages appear in the message model; show them via MessagePopover.
mediumSAPUI5 and SAP Fiori Tools

10. After refreshing the browser on a detail page, the page is empty. What is the cause and fix?

The detail view relied on data passed in memory (global variable, model set by the list) or was bound in onInit only. On refresh, that state is gone. Fix: put the key in the route pattern, read it in the patternMatched handler and bind the view to the entity path from the backend; handle not-found keys with a notFound target or message.
mediumSAPUI5 and SAP Fiori Tools

11. A purchase request list takes eight seconds to load. How do you analyze and fix it?

Open the Network tab and inspect the $batch: look for missing $select, $expand of to-many navigation (e.g. items for an item count column), large $top, and slow backend responses. Fix in the UI (autoExpandSelect, growing table, remove to-many expand) and in the backend (aggregated fields in CDS, efficient views). Check synchronous loading and preload bundles. Measure before and after; add the scenario to performance checks.
mediumSAPUI5 and SAP Fiori Tools

12. A freestyle app has 2,000-line controllers mixing UI, data and business logic. How do you restructure it?

Move model and routing config into manifest.json; move formatting into formatter modules; move reusable UI into fragments; use declarative binding instead of manual setText/getValue; move backend logic into the RAP BO (validations, determinations, actions) rather than the UI; keep controllers for event handling and navigation; add QUnit tests for formatters/helpers and OPA5 for journeys. Evaluate whether Fiori Elements could replace parts.
mediumSAPUI5 and SAP Fiori Tools

13. QAS and PRD run different versions of the same Fiori app. How did this happen and how do you prevent it?

Likely direct deployments from developer machines into QAS/PRD bypassing transports, or missing transports of related content. Prevent: deploy only to DEV with a transport request (or through a BTP CI/CD pipeline), move app, OData service, roles and launchpad content in the same route, increase applicationVersion per release, keep deploy config in the repository and check versions after import.
mediumSAPUI5 and SAP Fiori Tools

14. A table shows the same status text for every row although data differs. What is likely wrong?

The status is probably bound with an absolute path ({/Status} or a view model path) instead of a relative path on the row context ({Status}), or the formatter reads a fixed model value instead of its parameter. Check the binding in UI5 Inspector: the row's binding context and the property path. Fix to a relative path and pass the value to the formatter.

Related lesson

SAPUI5 and Fiori Tools Part 3: Data Binding — JSON Model, OData Model, Modes

Related topics

Next practice step

Go deeper on this topic