Preface – This post is part of the SAP ABAP RAP series.
Table of Contents
Introduction
To enable the CRUD operations in SAP ABAP RAP managed scenario, you need to enable the transactional behavior in Behavior Definition. There is no need to explicitly implement the CRUD operation in behavior implementation class, the RAP framework itself handles this.
Steps for enabling CRUD in RAP Managed scenario
- Create CDS views
- Create Behavior Definition
- Enable transactional behavior of Business Object and activate.
- Test using EML (Entity Manipulation Language)
Create CDS views
Procedure
- Right-click on package
- Go to New >> Other Repository Objects >> Core Data Services >> Data Definition
- Provide the details (Name, Description).
- Select Next and provide the Transport Request number.
- Select Finish.
Create Behavior Definition
Procedure
- Right-click on root CDS view
- Select New Behavior Definition
- Provide the details (Name, Description).
- Select Next and provide the Transport Request number.
- Select Finish.
Enable transactional behaviour and activate
Test using EML
In Report, implement EML statements to test the CRUD operations
0 Comments