ERPClimb logoERPClimb
RAP Basics
Architect / Cross-trackintermediate 8 min read

RAP Build-Along Part 8: Managed vs Unmanaged — Choosing the Transaction Model for Your Travel App

Preview · a free account unlocks the full lesson

Key takeaway

Choose the right RAP implementation type for your Travel app and future projects: managed, managed with additional or unmanaged save, or unmanaged — with a decision checklist and the BDEF headers for each.

In this lessonShow sections

Visual overview

RAP Build-Along Part 8: Managed vs Unmanaged — Choosing the Transaction Model for Your Travel App — learning sheetFlow: For the Travel app: own tables ZRAP_ATRAV/ZRAP_ABOOK → managed (as built) → Imagine bookings must also be posted to a legacy system table via an FM → managed with unmanaged save for bookings → Write down your decision and reason in the BO documentation. Key ideas: THE FOUR OPTIONS; DECISION CHECKLIST; WHAT STAYS THE SAME; WHAT CHANGES FOR YOU. Watch out: Managed on tables owned by legacy programs bypasses their rules — don't.ERPClimb.com / ARCH / LESSON 8/9 / LEARNING SHEETRAP Build-Along Part 8: Managed vs Unmanaged — Choosingthe Transaction Model for Your Travel App1 · HOW IT FLOWS1For the Travel appown tables ZRAP_ATRAV/ZRAP_ABOOK →managed (as built)2Imagine bookings mustalso be posted to alegacy system table via…3Write down your decisionand reason in the BOdocumentation2 · KEY IDEAS EXPLAINEDThe Four OptionsManaged — RAP handles buffer, locks (with lockmaster), ETags, numbering (managed UUIDs) andpersistence for create/update/delete. You write…Managed with additional save — RAP persists yourtables; you add extra writes in save_modified(e.g. a change log or an event).Decision Checklist1. New data model in own tables? → managed.What Stays The SameProjections, service definitions and bindings,Fiori annotations, EML consumers, authorizationand feature control work identically. Switching…What Changes For YouManaged: no CRUD code; saver only if you neednumbering/extra saves.Unmanaged save: implement save_modified mappingcreate/update/delete to legacy APIs (in updatetask, no COMMIT).3 · REMEMBER · WATCH OUTRememberThe real question: who writes the data to the database — the RAPframework or your code?New custom tables → managed. Existing legacy posting logic → managedwith unmanaged save or unmanaged.Business logic (validations, determinations, actions) and serviceslook the same in all types.!Watch outManaged on tables owned by legacyprograms bypasses their rules —don't.4 · IN A REAL PROJECTA team was asked to build a Fiori app on top of an existing travel request table maintained for years by aclassic transaction, which triggered approvals and wrote change documents. The first prototype used managedRAP writing directly to the table — and approvals and change documents were silently skipped. They switched to…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Parts 1 through 7 built a managed Travel app, but real projects also have to deal with existing data and legacy code, which is where choosing the right implementation type matters. The real question to ask is: who actually writes the data to the database — the RAP framework, or your own code?

Business logic such as validations, determinations, and actions, along with the services built on top, look essentially the same across all implementation types; what differs is persistence. New custom tables generally point you toward managed; existing legacy posting logic points you toward managed with unmanaged save, or toward fully unmanaged.

The detailed series on Managed RAP, Unmanaged RAP, and RAP Business Objects Part 2 cover each in depth.

There are four options in practice. Managed is where RAP handles the buffer, locks (with a lock master), ETags, numbering (managed UUIDs), and persistence for create, update, and delete — you write only the business logic, as in the Travel app built earlier.

Managed with additional save still has RAP persisting your tables, but you add extra writes in save_modified, such as a change log or an event. Managed with unmanaged save keeps RAP in charge of the buffer, draft, locks, and ETags, but your save_modified calls legacy posting code instead of letting RAP write the tables directly.

Unmanaged means you implement the buffer, CRUD, read, lock, and save entirely yourself, usually by wrapping existing APIs.

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.