ERPClimb logoERPClimb
Fiori on RAP and CAP Services
Fiori & SAPUI5advanced 6 min read

Fiori on RAP Part 2: OData V2 or V4 — Choosing and Migrating

Preview · a free account unlocks the full lesson

Key takeaway

Decide between OData V2 and V4 for Fiori apps: feature differences, what Fiori elements V2 versus V4 offer, when existing V2 apps should stay, and how to plan a migration of custom apps to V4.

Visual overview

Fiori on RAP Part 2: OData V2 or V4 — Choosing and Migrating — learning sheetFlow: Inventory of apps and protocols → New development on V4 → Keep stable V2 apps → Migrate on clear value → Documented policy. Key ideas: THE LANDSCAPE; DIFFERENCES THAT MATTER; WHEN TO USE WHICH; MIGRATION APPROACH. Watch out: Migrating stable V2 apps without business value consumes effort with little benefit.ERPClimb.com / FIORI / LESSON 12/16 / LEARNING SHEETFiori on RAP Part 2: OData V2 or V4 — Choosing andMigrating1 · HOW IT FLOWS1Inventoryof apps andprotocols2Newdevelopmenton V43Keep stableV2 apps4Migrate onclear value5Documentedpolicy2 · KEY IDEAS EXPLAINEDThe LandscapeS/4HANA contains many OData V2 services andV2-based Fiori apps, built with SEGW or CDS with@OData.publish. RAP and CAP support V4, and new…Differences That MatterV4 has a cleaner model with features like betterbatch handling, deep operations and actions withricher semantics, and the UI5 V4 model is…When To Use WhichUse V4 for new apps on RAP or CAP. Keep existingV2 apps that work, unless you need V4 features orthe service is being rebuilt anyway. Mixing is…Migration ApproachMigration is usually a rebuild: create a V4service (RAP binding V4), regenerate the Fiorielements app or adapt a freestyle app to the V4…3 · REMEMBER · WATCH OUTRememberOData V4 is the strategic protocol for new RAP and CAP services andFiori elements V4 apps.Many existing standard and custom apps run on V2 and remain supported.Fiori elements V4 offers the flexible programming model and buildingblocks.!Watch outMigrating stable V2 apps withoutbusiness value consumes effort withlittle benefit.4 · IN A REAL PROJECTA team planned to migrate all 40 custom V2 apps to V4 in one year. Analysis showed only eight needed changesor V4 features. They migrated those, kept the rest on V2, and saved most of the planned effort without anyloss for users.Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Part 1 built a new app on RAP; Part 2 deals with deciding between OData V2 and V4, and handling existing apps.

Most S/4HANA systems contain many OData V2 services and V2-based Fiori apps, built with SEGW or with CDS using @OData.publish. RAP and CAP support V4, and new Fiori elements features target V4 specifically, so both protocols coexist in most systems rather than one fully replacing the other.

The differences that actually matter: V4 has a cleaner model with features like better batch handling, deep operations and actions with richer semantics, and the UI5 V4 model is binding-driven rather than offering a generic read() call. Fiori elements V4 adds the flexible programming model and reusable building blocks on top of that. Some V2-specific patterns, such as smart controls, simply don't exist in V4 apps.

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.