Hello SAP Experts,
I am currently working on my first SAP RAP application in SAP S/4HANA Cloud Public Edition, and I need guidance from experienced RAP developers.
Create an Excel uploader to update Bank Details for Vendor/Customer master data.
I followed the standard RAP development steps:
Created Custom Persistent Tables and Draft Tables
Created Interface CDS View
Created Consumption CDS View
Added Metadata Extensions for UI
Defined Behavior Definitions for Interface and Consumption Views
Implemented Behavior Handler Classes
Created Service Definition
Created Service Binding
I am successfully reading Excel data and storing it into an internal table in the behavior implementation class.
However, when I try to insert this data into my custom item table, no data is getting persisted in the database.
There are no syntax errors, but the records are not saved.
Since this is my first RAP project, I am not sure:
Whether I am inserting data in the correct RAP lifecycle method
If I should use MODIFY ENTITIES instead of direct INSERT
If the issue is related to managed behavior, draft handling, or association (_item) handling
Or if my behavior definition and class implementation are not aligned
I would really appreciate if someone could:
Review my approach
Point out what I might be doing wrong
Explain the correct way to persist item data in a RAP-managed scenario
Share best practices for Excel upload + RAP persistence
I will paste all relevant code (CDS, Behavior Definition, and Class Implementation) below for reference.
Thank you very much in advance for your support.
Please paste your Code recommendation if possible.
Environment:
SAP S/4HANA Cloud Public Edition Extensibility
RAP (Managed with Draft)
Request clarification before answering.
Hello,
The comment provided may contain the information you're looking for:
Have you checked this? Upload Excel using SAP RAP Only
Kind regards,
Henrike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.