ERPClimb logoERPClimb
Fiori Elements Floorplans in Practice
Fiori & SAPUI5advanced 6 min read

Fiori Elements Part 4: Actions, Navigation and Messages

Preview · a free account unlocks the full lesson

Key takeaway

Add behaviour to Fiori elements apps: bound and unbound actions shown as buttons, determining actions, intent-based navigation to other apps, and how back-end messages appear to users.

Visual overview

Fiori Elements Part 4: Actions, Navigation and Messages — learning sheetFlow: Back-end action → Annotation as button → Parameter dialog → Side effects refresh → Messages to user. Key ideas: ACTIONS; PARAMETERS AND SIDE EFFECTS; NAVIGATION; MESSAGES. Watch out: Implementing business actions in front-end code bypasses back-end rules and authorizations.ERPClimb.com / FIORI / LESSON 8/14 / LEARNING SHEETFiori Elements Part 4: Actions, Navigation and Messages1 · HOW IT FLOWS1Back-endaction2Annotationas button3Parameterdialog4Sideeffectsrefresh5Messages touser2 · KEY IDEAS EXPLAINEDActionsBusiness operations like Approve, Release or Copyare defined in the back end — RAP behaviourdefinitions or CAP service actions — and exposed…Parameters And Side EffectsIf an action has parameters, Fiori elements opensa dialog to collect them. Side effects annotationstell the UI which fields or entities to refresh…NavigationFields annotated with a semantic object show aslinks that navigate to other apps via intents, forexample a supplier ID linking to the supplier fact…MessagesBack-end validations and actions return messageswith severity. Fiori elements shows them in amessage popover or dialog and highlights affected…3 · REMEMBER · WATCH OUTRememberBack-end actions (RAP actions, CAP actions) appear as buttons via@UI.lineItem or @UI.identification with type #FOR_ACTION.Action parameters generate dialogs automatically.Intent-based navigation links to other apps with semantic objectannotations.!Watch outImplementing business actions infront-end code bypasses back-endrules and authorizations.4 · IN A REAL PROJECTA team implemented an 'Approve' button in a controller extension that called the service to update a statusfield directly. Approval rules and authorization checks in the back end were bypassed. They replaced it with aRAP action with checks, exposed as a button through annotations, and the extension was removed.Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Parts 1 through 3 built the screens; Part 4 adds what users can actually do: actions, navigation and messages.

Business operations like Approve, Release or Copy are defined in the back end — RAP behavior definitions or CAP service actions — and exposed through the OData service. In annotations, a data field for action places a button on the list report toolbar or the object page header. Bound actions work on selected instances, while unbound actions work at the entity set level.

If an action has parameters, Fiori elements opens a dialog automatically to collect them. Side effects annotations tell the UI which fields or entities to refresh after an action runs or a field changes, which avoids showing stale data after something changes on the back end.

Fields annotated with a semantic object show up as links that navigate to other apps via intents — for example, a supplier ID linking through to the supplier fact sheet. Navigation parameters are passed automatically from the field and its context, but the target app still needs to be included in the user's roles for the navigation to actually work.

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
  • 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.