ERPClimb logoERPClimb
Fiori Elements
RAP / CDS / ODataadvanced 9 min read

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.

Key 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 this lessonShow sections

Visual overview

Fiori Elements Part 5: Enterprise Scale — Performance, Draft and Clean Core — learning sheetIn one line: 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.ERPClimb.com / RAP / LESSON 5/5 / LEARNING SHEETFiori Elements Part 5: Enterprise Scale — Performance,Draft and Clean Core1 · IN ONE LINEDesign decisions for large, multi-entity Fiori Elements applications covering deepnavigation performance, complex draft hierarchies, custom extension governance, andclean-core-compliant lifecycle management across landscapes.2 · KEY IDEAS EXPLAINEDBackend PerformanceThe list reads only what the columns and filtersneed — Fiori Elements requests $select based onthe annotations.Avoid to-many $expand in lists; show counts andtotals via to-one aggregate associations.Frontend PerformanceLimit visible columns with importance; use growinglists instead of huge page sizes.Keep custom extensions light (no extra roundtripsper row).Draft For Long Editswith draft in the BDEF: work is saved server-side,Edit/Save/Discard come automatically.Total ETag protects the active data while draftsexist.Side Effectsside effects in the BDEF tell Fiori whichfields/entities to reload after a change.Example: field BookingFee affects fieldTotalPrice; child changes affect the parententity.3 · DO · AVOIDBest practice!Common mistakeScope draft enablement to the entities thatgenuinely require independent save, not the…Use lazy-loading facets and late-loading tablesections to reduce initial OData request…Maintain a formal extension registrydocumenting every custom action…✕Enabling draft at every composition level'just in case' instead of scoping it to where…✕Designing object pages with manyeagerly-loaded facets, causing high initial…✕Allowing multiple teams to add controllerextensions and custom actions without a shared…4 · IN A REAL PROJECTA logistics company's Fiori Elements object page for shipment orders grew over 18 months to include 14 facetsand 3 draft-enabled composition levels; page load times climbed to 8+ seconds and support could not tellwhether slowness came from a recent CDS annotation change, a custom determination, or an unrelated key-user…Original ERPClimb learning sheet • Verify against your SAP release and edition

Expert visual walkthrough

RAP · CDS · ODATA ACADEMY · Architecture hierarchyERPClimb.com

Enterprise Scale — Performance, Draft and Clean Core

Fiori Elements · Chapter-specific technical teaching map

Architecture hierarchy

1Top level

Stable CDS projection

2Related level

Service binding

3Related level

Fiori elements runtime

4Related level

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…

Conceptual study map, not an SAP configuration screenshot or a guaranteed runtime sequence. Consult the lesson for implementation prerequisites and exceptions.

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

ABAP Code
// ===== 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 authorization

Watch 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?

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.

Was this lesson helpful?

Keep exploring

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.