ERPClimb logoERPClimb
Fiori Elements
RAP / CDS / ODataintermediate 8 min read

Fiori Elements Part 3: Designing Apps with UI Annotations

Preview · a free account unlocks the full lesson

Key takeaway

Learn how to configure List Report and Object Page floorplans in detail using @UI annotations, headers, facets, tables, and actions wired to RAP behavior, including runtime binding to OData V4.

In this lessonShow sections

Visual overview

Fiori Elements Part 3: Designing Apps with UI Annotations — learning sheetIn one line: Learn how to configure List Report and Object Page floorplans in detail using @UI annotations, headers, facets, tables, and actions wired to RAP behavior, including runtime binding to OData V4.ERPClimb.com / RAP / LESSON 3/5 / LEARNING SHEETFiori Elements Part 3: Designing Apps with UI Annotations1 · IN ONE LINELearn how to configure List Report and Object Page floorplans in detail using @UIannotations, headers, facets, tables, and actions wired to RAP behavior, including runtimebinding to OData V4.2 · KEY IDEAS EXPLAINEDDesign Before AnnotatingSketch with the business: filters, table columns,object page header, sections, actions.Map each element to an annotation before writingany.List Report Annotations@UI.selectionField: [{ position: 10 }] — filterbar fields.@UI.lineItem: [{ position: 10, importance: #HIGH}] — table columns; importance drives responsivehiding.Object Page Header@UI.headerInfo: typeName, typeNamePlural, title,description.@UI.dataPoint with criticality for status/KPI inthe header.Object Page Sections@UI.facet: sections of type#IDENTIFICATION_REFERENCE, #FIELDGROUP_REFERENCE,#LINEITEM_REFERENCE (child table via…@UI.fieldGroup: [{ qualifier: 'Dates', position:10 }] groups fields inside a section.3 · DO · AVOIDBest practice!Common mistakeKeep the filter bar lean - only includeselectionFields that map to real, indexed…Derive criticality and status-driven UIbehavior from calculated CDS elements or RAP…Use @UI.lineItem importance intentionally forresponsive design, and control column order…✕Overloading the List Report filter bar withtoo many @UI.selectionField entries, degrading…✕Forgetting that @UI.lineItem importance levelsonly affect responsive behavior, not column…✕Hardcoding criticality values instead ofderiving them from a calculated/transient…4 · IN A REAL PROJECTA procurement team's Manage Purchase Requisitions app needs a status column colored red/yellow/green, a filterbar limited to plant, requisition type, and date range, and an Object Page showing header data plus anembedded editable table of requisition line items. All of this is delivered purely through @UI.lineItem…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Part 2 generated an app from a RAP service. This lesson designs what that app actually shows, using the @UI annotation vocabulary.

Design should always come before annotating: sketching with the business what the filters, table columns, object page header, sections and actions should look like, and mapping each element to an annotation before writing any code. All @UI annotations belong in the metadata extension of the projection, in layer #CORE.

List Report annotations cover the filter bar and the table. @UI.selectionField: [{ position: 10 }] places fields on the filter bar. @UI.lineItem: [{ position: 10, importance: #HIGH }] controls table columns, with importance driving which columns get hidden responsively on smaller screens. @UI.lineItem combined with type: #FOR_ACTION and dataAction: 'acceptTravel' adds an action button to the table toolbar. @UI.presentationVariant sets the default sort order and grouping.

Free account

Create a free account to keep reading

You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.

  • Full explanation
  • Code example
  • Real project scenario
  • Common mistakes
  • Best practices
  • Interview angle

One tap with Google works too. Every topic keeps its first lesson open to everyone.

Keep exploring

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.