SAP ABAP FOR RAP BOS



Get Example source ABAP code based on a different SAP table
  


VERSION 5 IN

ABAP for RAP Business Objects
This section describes the ABAP language elements for providing and consuming RAP business objects (RAP BOs). A RAP BO is mainly defined by a RAP behavior definition (BDEF). The Behavior Definition defines:
The RAP BO operations, which can consist of CRUD operations and other actions.
The provisioning type of the RAP BO that can be managed or unmanaged.
The data content of a RAP BO is stored in a transactional buffer. The RAP BO operations work with the transactional buffer and must follow the REST paradigm.
For managed RAP BOs, the transactional buffer is provided and handled as a managed transactional buffer by the RAP BO provider. In non-standard operations of a managed RAP BO, the managed transactional buffer can be accessed by EML statements.
For unmanaged RAP BOs, the transactional buffer as well as the operations of a RAP BO must be provided by ABAP behavior implementations as an unmanaged transactional buffer . There are no syntactical constraints on how an unmanaged transactional buffer is provided or handled, but it should fulfill the expectations of the RAP BO consumers.
RAP BO consumers trigger the RAP BO operations. A RAP BO consumer is either the RAP runtime framework that handles requests from outside the AS ABAP or an ABAP program using ABAP EML.
ABAP language contains elements for providing RAP BOs and for consuming RAP BOs:
The language elements for providing RAP BOs are necessary for ABAP behavior implementations:
ABAP Behavior Pools (ABP) are special class pools for implementing the non-standard RAP BO operations. Classes of an ABP access the transactional buffer of the RAP BO, which is either managed or unmanaged.
In case of a managed transactional buffer, ABAP EML must be used in the behavior implementation for accessing it. There are special EML variants that can be used in behavior implementations only.
The language elements for accessing RAP BOs from any ABAP program are provided by the ABAP Entity Manipulation Language (EML). ABAP EML statements call the operations of a RAP BO that work with the transactional buffer. The operations can be implemented by the managed RAP BO provider or in ABAP behavior implementations (unmanaged).
The following topics document the ABAP language elements for consuming and providing RAP BOs:
SUBNODES