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

RAP Basics Part 4: Implementation Types — Managed, Unmanaged, Additional Save and Unmanaged Save

Preview · a free account unlocks the full lesson

Key takeaway

Choose the transactional model of a RAP BO: managed (framework does CRUD and save), unmanaged (you implement everything, typically wrapping legacy BAPIs), and the two hybrids — managed with additional save and managed with unmanaged save — with decision criteria for greenfield and brownfield projects.

In this lessonShow sections

Visual overview

RAP Basics Part 4: Implementation Types — Managed, Unmanaged, Additional Save and Unmanaged Save — learning sheetFlow: List the BO's tables and who owns their update logic today → Pick the implementation type from the matrix → Set the BDEF header and the save option → Generate the behavior pool and implement only what the type requires. Key ideas: MANAGED; UNMANAGED; MANAGED WITH ADDITIONAL SAVE; MANAGED WITH UNMANAGED SAVE. Watch out: Choosing unmanaged for a new BO with its own tables multiplies code and bugs for no benefit.ERPClimb.com / ARCH / LESSON 4/11 / LEARNING SHEETRAP Basics Part 4: Implementation Types — Managed,Unmanaged, Additional Save and Unmanaged Save1 · HOW IT FLOWS1List the BO'stables and whoowns their…2Pick theimplementationtype from the…3Set the BDEFheader and thesave option4Generate thebehavior pooland implement…2 · KEY IDEAS EXPLAINEDManagedHeader: managed implementation in classzbp_i_travel unique;persistent table ztravel_a — the framework reads,buffers and writes.UnmanagedHeader: unmanaged implementation in classzbp_i_salesorder unique;You implement create/update/delete/read/lock inhandler classes andfinalize/check_before_save/save/cleanup in a saver…Managed With Additional Savewith additional save in the BDEF entity.Framework saves normally; your saver methodsave_modified runs in the same LUW for extrawrites.Managed With Unmanaged Savewith unmanaged save — no persistent table; youwrite in save_modified.Keeps managed buffer, draft and numbering benefitswhile the data lands via legacy update logic.3 · REMEMBER · WATCH OUTRememberManaged: the framework provides the transactional buffer, CRUD and thesave to your own tables — you add only business logic.Unmanaged: you implement create/update/delete, read, lock and saveyourself — used to wrap existing application logic (BAPIs, function…Managed with additional save: framework saves, you add extra saving(change documents, application log, outbound calls) in save_modified.!Watch outChoosing unmanaged for a new BO withits own tables multiplies code andbugs for no benefit.4 · IN A REAL PROJECTA client moving from ECC to S/4HANA wanted a Fiori app to create customer returns. The first design was fullyunmanaged, re-implementing buffer, locks and save around BAPI_CUSTOMERRETURN_CREATE — about 2,000 lines ofhandler code. The architect first checked the API Business Hub and found the released RAP BO for customer…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Parts 2 and 3 built the data model and projection; now comes the key architectural decision of who actually does the transactional work.

In a managed implementation, the framework provides the transactional buffer, CRUD, and the save against your own tables, and you add only the business logic — the BDEF header reads managed implementation in class zbp_i_travel unique; persistent table ztravel_a, and the framework reads, buffers, and writes the data itself, with numbering, locking, ETags, and draft all supported out of the box.

This is the best fit for a greenfield business object built on its own Z tables.

In an unmanaged implementation, declared as unmanaged implementation in class zbp_i_salesorder unique;, you implement create, update, delete, and read yourself in handler classes, along with lock handling, and finalize, check_before_save, save, and cleanup in a saver class, maintaining your own buffer, typically as a static attribute in a buffer class. This is the typical approach for wrapping something like BAPI_SALESORDER_CREATEFROMDAT2 to expose standard sales orders.

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

Referenced SAP objects

Reviewed reference pages for the objects this page mentions.

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.