on 2024 Jun 18 12:46 PM
ABAP RAP Community,
I m a newbie to Abap rap development. Have a some queries on managed / unmanaged scenerios .
1 in managed scenerio, only create, update , delete , numbering & Save is taken care by RAP framework. For determination/ validations, do we need to write a code on our own ??? Pls clear it . Also , for numbering , Do we need to write code too at time? And in what scenario??
2 in managed scenerios , for additional save & unmanaged save , do we need to code in their respective implementation classes ?
pls reply with easy explanation
THANKS ,
Anil
Request clarification before answering.
Hello Anil,
In a managed scenario, the RAP (Restful ABAP Programming) framework handles most of the tasks for you. This includes CRUD (Create, Read, Update, Delete) operations, numbering, and saving.
CRUD Operations: In managed RAP BOs, developers do not need to implement CRUD operations. For example, in an update operation, the RAP BO instance data to be updated is automatically read into the transactional buffer, updated there, and then saved to the database without any custom development needed.
Numbering: In a managed RAP BO, the key is automatically created by the framework, which only works if the key is of a certain type (16-character byte-like UUID).
However, there are some exceptions where you would need to write your own code:
You can refer to this cheat sheet: ABAP for RAP: Entity Manipulation Language (ABAP EML)
Best regards,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great simple answers, I just like to add.
1. Managed should only be used where the create/update tables are custom tables only.
2. Unmanaged options are when we have either BAPI or BDC to do the CRUD( create/update ) operation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.