Fiori Elements Part 1: List Report and Object Page on RAP
Free sample lesson · open to everyone
Understand the business and technical purpose of Fiori Elements, how it differs from freestyle SAPUI5 development, and how CDS annotations drive UI rendering at runtime.
In this lessonShow sectionsHide sections
Visual overview
Expert visual walkthrough
List Report and Object Page on RAP
Fiori Elements · Chapter-specific technical teaching map
Architecture hierarchy
App view
Controller / model
OData binding
Backend service
Tutor's chapter takeaway
Understand the business and technical purpose of Fiori Elements, how it differs from freestyle SAPUI5 development, and how CDS annotations drive UI rendering at runtime.
In a real project
A travel management team needs a Manage Travel Requests app for internal staff. Instead of commissioning a freestyle SAPUI5 app (estimated 6-8 weeks), the ABAP Cloud team models the business object as a RAP managed business…
Watch out for
• Assuming Fiori Elements is 'less powerful' and defaulting to freestyle UI5 even when a standard floorplan fully covers the requirement, leading to unnecessary maintenance cost. • Placing UI annotations directly on the base…
The situation: a real project scenario
A travel management team needs a Manage Travel Requests app for internal staff. Instead of commissioning a freestyle SAPUI5 app (estimated 6-8 weeks), the ABAP Cloud team models the business object as a RAP managed business object, exposes a projection view with @UI annotations, and has a working List Report Object Page app running in the Fiori Launchpad within 2-3 days, including standard behaviors like sorting, filtering, export to Excel, and variant management - all inherited for free from the Fiori Elements runtime.
Explanation
This series covers Fiori Elements across five parts: this lesson covers List Report and Object Page on RAP as the big picture; Part 2 covers generating a List Report and Object Page from a RAP service; Part 3 covers designing apps with UI annotations; Part 4 covers extending apps with the flexible programming model; and Part 5 covers enterprise scale — performance, draft and clean core.
Fiori Elements is a set of SAP floorplans — List Report, Object Page, Worklist, Overview Page, Analytical List Page — rendered directly from OData metadata and annotations. The List Report Object Page, or LROP, is the default floorplan for RAP transactional apps, and no UI5 view or controller code needs to be written at all for standard behavior.
The chain from RAP to a working app runs through several layers: the RAP BO itself, made up of interface views, a BDEF, and a behavior pool; a projection view plus a metadata extension carrying @UI annotations; a service definition, bound through an OData V4 – UI binding, and published; and finally, a preview in ADT, followed by a deployable app generated with SAP Fiori tools, as covered in Part 2.
The backend drives nearly everything the user sees. Columns, filters, the header and the sections all come from @UI annotations. Create, Edit and Delete buttons come from the operations declared in the projection BDEF. Whether buttons and fields are enabled or disabled comes from feature control — declared with features : instance — and from authorization. Messages shown on fields come from validations, reported with %element. And draft handling — Edit, Save, Discard — comes directly from with draft in the BDEF.
The List Report and the Object Page split responsibilities cleanly: the List Report provides the filter bar, via @UI.selectionField, and the results table, via @UI.lineItem; the Object Page provides the header, via @UI.headerInfo and dataPoints, and the sections, via @UI.facet together with fieldGroups, identification, and child tables.
Fiori Elements isn't always the right tool — highly custom interactions, such as drag-and-drop planning boards or graphics-heavy screens, are better served by a freestyle UI5 app, still built on the same RAP service, and for cases in between, the flexible programming model extensions covered in Part 4 are the right middle ground.
In practice: confirm the RAP BO works via EML or the ADT preview, add @Metadata.allowExtensions: true to the projection view, create a metadata extension with headerInfo, lineItem and selectionField, and publish the OData V4 – UI binding to open the preview. With that, the preview shows a filter bar, a table, and an object page — all without a single line of UI5 code.
Code example
// Basic CDS projection view exposed as OData V4 for Fiori Elements consumption@EndUserText.label: 'Travel Projection View'@AccessControl.authorizationCheck: #CHECK@Metadata.allowExtensions: true // lets a metadata extension (below) add UI annotations separatelydefine root view entity ZC_Travel_FE as projection on ZR_Travel{ key TravelUUID as TravelUuid, TravelID as TravelId, AgencyID as AgencyId, CustomerID as CustomerId, BeginDate, EndDate, @Semantics.amount.currencyCode: 'CurrencyCode' TotalPrice, CurrencyCode, OverallStatus, /* redirect so a $expand on this projection returns the matching CHILD projection, not the base business-object entity */ _Booking : redirected to composition child ZC_Booking_FE} // Metadata extension carrying UI annotations separately (recommended for clean separation)// -> keeps the data model (above) free of layout decisions; swap this file for a different UI without touching the model@Metadata.layer: #COREannotate view ZC_Travel_FE with{ @UI.facet: [ { id: 'GeneralInfo', purpose: #STANDARD, type: #IDENTIFICATION_REFERENCE, label: 'General Information', position: 10 } ] // facet = a section on the Object Page; lineItem = a column on the List Report table; // selectionField = a filter field; identification = shown in the Object Page header area @UI.lineItem: [ { position: 10, importance: #HIGH } ] @UI.selectionField: [ { position: 10 } ] @UI.identification: [ { position: 10 } ] TravelId; @UI.lineItem: [ { position: 20 } ] @UI.identification: [ { position: 20 } ] OverallStatus;} Watch out
Common mistakes
- Assuming Fiori Elements is 'less powerful' and defaulting to freestyle UI5 even when a standard floorplan fully covers the requirement, leading to unnecessary maintenance cost.
- Placing UI annotations directly on the base CDS interface/business object view instead of the consumption projection view, which violates layering and breaks reusability across multiple UIs.
- Forgetting @Metadata.allowExtensions: true on the projection view, which prevents metadata extensions or key user adaptation from working.
- Confusing the CDS-level @UI annotations with OData V2 SAP annotations (com.sap.vocabularies.UI.v1) - they are conceptually equivalent but not always syntactically identical, causing confusion when reading generated $metadata XML.
- Not realizing that in ABAP Cloud, only released, public CDS/OData artifacts may be exposed this way - referencing non-released objects will fail extensibility and upgrade checks.
Do this
Best practices
- Always model UI annotations via metadata extensions on the projection view layer, not on interface or base views, to preserve reuse and layering.
- Enable @Metadata.allowExtensions on any view intended for UI consumption or customer/partner extension.
- Reserve freestyle SAPUI5 for genuinely custom interaction patterns; default to Fiori Elements floorplans for standard CRUD/transactional/list-detail scenarios.
- Keep annotation ownership aligned with software component layering (core vs. partner vs. customer) using @Metadata.layer.
- Validate generated $metadata via the service binding's preview tool before assuming an annotation was applied correctly.
In the interview
Interview angle
Interviewers commonly ask candidates to explain the difference between freestyle SAPUI5 and Fiori Elements, and why SAP pushes annotation-driven UI as part of Clean Core. A strong answer distinguishes business logic (RAP behavior), data shape (CDS projection), and UI semantics (annotations/metadata extensions), and explains that Fiori Elements apps upgrade safely because the rendering engine, not custom code, interprets metadata - reducing regression risk during S/4HANA release upgrades.
Practice this lesson
Quick check
0 of 3 questions attempted
Question 1 of 3
How does a Fiori Elements list report know which columns to display?
Question 2 of 3
What is the primary role of the @UI.headerInfo annotation on a root CDS entity used in a Fiori Elements Object Page?
Question 3 of 3
Which artifact is commonly used to keep Fiori Elements UI annotations separate from a reusable CDS interface model?
Practise this in an interview
Answer in your own words and get instant feedback, the way an interviewer would judge it.
1What are the most important best practices for Fiori Elements apps on RAP?
2What is SAP Fiori Elements, and how does it build UIs from a RAP service?
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
Interview questions on this topic
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.