1. SAP Glossary
  2. RESTful ABAP Programming Model
  3. RAP LUW


What is 'RAP LUW' in SAP BC-ESI-RAP - RESTful ABAP Programming Model?


RAP LUW - Overview

  • Component: BC-ESI-RAP

  • Component Name: RESTful ABAP Programming Model

  • Description: The LUW in RAP is the sum of all operations and workflows that are used to transfer data from one consistent state to another. A RAP LUW begins with creating new data on the RAP transactional buffer or by retrieving data from the database to the transactional buffer. It is terminated with COMMIT ENTITIES or ROLLBACK ENTITIES.


RAP LUW - Details

  • Term: RAP LUW

    Component: BC-ESI-RAP RESTful ABAP Programming Model

    Definition: RAP LUW (Restful ABAP Programming Model Logical Unit of Work) is a transactional boundary concept within the SAP RAP framework. It defines a set of operations on business objects that are executed as a single, atomic unit—meaning all changes succeed or fail together to ensure data consistency.

    How It’s Used: In RAP-based applications, when a user performs create, update, or delete operations on business objects, these changes are grouped into a RAP LUW. For example, when editing a sales order with multiple line items, all modifications to the header and items are processed within one RAP LUW. This ensures that either all changes are committed to the database or none are, preventing partial updates and maintaining data integrity.

    Important Configuration:

    • RAP LUW boundaries are implicitly managed by the RAP runtime; developers typically do not configure them explicitly.
    • However, understanding the transactional behavior is important when implementing behavior definitions and service implementations in ABAP.
    • Use the RAP behavior definition language (behavior DSL) to define validations, determinations, and actions that execute within the LUW.
    • T-code /IWFND/MAINT_SERVICE can be used to register and maintain OData services generated from RAP projects, which operate within RAP LUWs.

    Already have an account? Login here!





RAP LUW - Related SAP Terms

Rating
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author