Fiori Elements Part 5: Enterprise Scale — Performance, Draft and Clean Core
Lessons are open to try during our launch period. Some advanced content may move to Pro later. AI practice limits apply separately.
Design decisions for large, multi-entity Fiori Elements applications covering deep navigation performance, complex draft hierarchies, custom extension governance, and clean-core-compliant lifecycle management across landscapes.
In this lessonShow sectionsHide sections
Visual overview
Expert visual walkthrough
Enterprise Scale — Performance, Draft and Clean Core
Fiori Elements · Chapter-specific technical teaching map
Architecture hierarchy
Stable CDS projection
Service binding
Fiori elements runtime
Performance and clean core
Tutor's chapter takeaway
Design decisions for large, multi-entity Fiori Elements applications covering deep navigation performance, complex draft hierarchies, custom extension governance, and clean-core-compliant lifecycle management across landscapes.
In a real project
A logistics company's Fiori Elements object page for shipment orders grew over 18 months to include 14 facets and 3 draft-enabled composition levels; page load times climbed to 8+ seconds and support could not tell whether…
Watch out for
• Enabling draft at every composition level 'just in case' instead of scoping it to where independent save is truly required • Designing object pages with many eagerly-loaded facets, causing high initial OData request fan-out…
The situation: a real project scenario
A logistics company's Fiori Elements object page for shipment orders grew over 18 months to include 14 facets and 3 draft-enabled composition levels; page load times climbed to 8+ seconds and support could not tell whether slowness came from a recent CDS annotation change, a custom determination, or an unrelated key-user field addition, forcing an architecture review that introduced facet lazy-loading, reduced draft scope to the root entity only, and created a formal extension registry.
Explanation
Performance starts in the backend — a lean CDS model, $select driven by annotations, and avoiding to-many expands in list views. Draft keeps long edits safe, while side effects keep derived fields current. Clean core means building on RAP, annotations and the flexible programming model, with no modifications, and any optimization should start by measuring with the browser's network tab and backend traces rather than guessing.
This final part is about making Fiori Elements apps fast, safe for long edits, and upgrade-proof in large landscapes.
On backend performance, the list only reads what the columns and filters actually need, because Fiori Elements requests $select based on the annotations you've defined. To-many $expand should be avoided in list views; counts and totals are better shown through to-one aggregate associations instead. Texts should come through text associations rather than per-row lookups, and indexes or filters should match the fields used in the default filter bar.
On frontend performance, limiting visible columns through importance and using growing lists instead of huge page sizes both help. Custom extensions should stay light, avoiding extra roundtrips per row. Before optimizing anything, measure first — the browser's network tab shows request count and payload size, and backend traces such as SAT and ST05 show where time is actually spent.
Draft is what makes long edits safe: declaring "with draft" in the BDEF means work is saved server-side, and Edit, Save and Discard all come automatically as a result. A total ETag protects the active data for as long as drafts exist, and Prepare runs validations before activation so errors surface early rather than at the last moment.
Side effects tell Fiori which fields or entities to reload after a change — for example, a field like BookingFee might affect TotalPrice, or a change to a child entity might affect the parent. Declaring these in the BDEF matters because, without them, users see stale derived values until they manually refresh.
Clean core means building on RAP, released CDS views and annotations, without modifying SAP's own apps. SAP-delivered Fiori Elements apps should be extended through key-user adaptation or the flexible programming model rather than by copying them, and any extensions should be kept in separate, transportable app variants.
In practice: measure the list request first — which fields are selected, which expands are used, and the response time; remove to-many expands and add aggregate associations where needed; enable draft with a total ETag and Prepare validations; add side effects for derived fields; and review any extensions against clean-core rules.
Done well, the list loads with one lean request, and derived fields refresh without any manual reload.
Code example
// ===== 1. Backend: lean list data =====// Projection for the list: only fields the list needs, aggregated values from CDS// _Totals.NumberOfItems as NumberOfItems (to-one aggregate, no $expand of items)// Text fields via text associations, not extra requests. // ===== 2. Draft + side effects for large object pages =====// with draft; total etag LastChangedAt;// side effects { field Quantity affects field TotalAmount; } // reload only what changed // ===== 3. manifest.json settings that matter at scale ====="sap.ui5": { "models": { "": { "dataSource": "mainService", "settings": { "operationMode": "Server", "autoExpandSelect": true } } // paging/filtering done by the backend; $expand merged into the main $select instead of extra requests }, "routing": { "targets": { "PurchaseRequestList": { "options": { "settings": { "initialLoad": "Enabled", // list fetches data immediately instead of waiting for a filter/search "controlConfiguration": { "@com.sap.vocabularies.UI.v1.LineItem": { "tableSettings": { "type": "ResponsiveTable", "growingThreshold": 20, // page size "selectAll": false // avoids accidentally selecting (and loading) every row on a huge list } } } } } } } }} // ===== 4. Checklist before go-live =====// [ ] list request: only needed $select, no to-many $expand (browser Network tab)// [ ] backend time per request measured (ST05 / Cross Trace)// [ ] search/filter fields indexed or selective in CDS// [ ] draft tables regenerated, total etag maintained// [ ] no modifications: annotations + FPM extensions only (clean core)// [ ] roles: app tile + service authorization + business authorizationWatch out
Common mistakes
- Enabling draft at every composition level 'just in case' instead of scoping it to where independent save is truly required
- Designing object pages with many eagerly-loaded facets, causing high initial OData request fan-out and slow perceived load time
- Allowing multiple teams to add controller extensions and custom actions without a shared extension registry, making root-cause analysis of production defects very slow
- Consuming unreleased/internal CDS views or annotations from a custom Fiori Elements app, causing silent breakage on the next S/4HANA upgrade
- Treating performance tuning as a frontend-only problem while ignoring underlying CDS view pushdown and association design
Do this
Best practices
- Scope draft enablement to the entities that genuinely require independent save, not the entire composition tree
- Use lazy-loading facets and late-loading table sections to reduce initial OData request fan-out on large object pages
- Maintain a formal extension registry documenting every custom action, determination, controller extension, and key-user adaptation with owner and purpose
- Consume only released public CDS views and annotations in any app intended to survive S/4HANA upgrades
- Periodically review facet-level OData request performance and CDS view execution plans as part of ongoing production support, not only at go-live
In the interview
Interview angle
Architect-level interviews focus on trade-off reasoning: when to scope draft narrowly, how to diagnose object page performance issues systematically (facet-by-facet request analysis, CDS execution plan review), and how you would design an extension governance process across multiple delivery teams. Demonstrating awareness of the released-API compatibility contract and clean core implications for upgrades is a strong signal of real production ownership rather than app-building experience alone.
Practice this lesson
Quick check
0 of 3 questions attempted
Question 1 of 3
A shipment object page became slow after dozens of item columns and expanded navigations were added. What should be checked first?
Question 2 of 3
In a RAP-based Fiori Elements application, what is the main purpose of side effects annotations?
Question 3 of 3
In a CDS view consumed by a Fiori Elements List Report application, what is the primary purpose of the @UI.lineItem annotation?
Practise this in an interview
Answer in your own words and get instant feedback, the way an interviewer would judge it.
1How do you design Fiori Elements apps for enterprise scale?
2You inherit a Fiori Elements app with performance and maintainability issues. What do you review?
See it in code
Each example starts from a requirement, shows the design, then the code step by step with a plain-language explanation of every part.
- RAP draft handling: let users save work in progress and activate it later
- RAP custom entity: serve a list from ABAP code with paging and a filter
- Clean core: read products with the released CDS views I_Product and I_ProductDescription
- AMDP and a CDS table function: aggregate orders in SQLScript on HANA
Was this lesson helpful?
Keep exploring
Interview questions on this topic
Referenced SAP objects
Reviewed reference pages for the objects this page mentions.
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.