Component: BC-ESI-RAP
Component Name: RESTful ABAP Programming Model
Description: Locking mechanism that is based on the SAP lock concept. It uses lock function modules for pessimistic concurrency control.
Term: RAP locking
Component: BC-ESI-RAP RESTful ABAP Programming Model
Definition: RAP locking refers to the mechanism within the RESTful ABAP Programming Model (RAP) that manages concurrent access and updates to business objects to ensure data consistency and prevent conflicts. It controls how multiple users or processes can lock, edit, and save changes to the same data entities in a controlled manner.
How It’s Used: In SAP RAP-based applications, when a user edits a business object (such as a sales order or a purchase requisition), RAP locking ensures that no other user can simultaneously make conflicting changes to the same object. This locking mechanism is typically invoked during the edit phase of a transaction to prevent data inconsistencies and lost updates. For example, if two users try to update the same sales order at the same time, RAP locking will allow only one user to save changes while the other must wait or receive a notification about the lock.
Important Configuration:
lock and unlock actions.