on 2024 Dec 04 3:17 PM
In a Behavior Definition of a BO, I need to integrate a DELETE query :
DELETE FROM ztable WHERE id = @existing_row_in_ztable-id
Unfortunately, this doesn't work. At Runtime execution of this snippet, it gives the following error
ABAP Runtime error 'BEHAVIOR_ILLEGAL_STATEMENT'
Now you way rightfully ask: "Are you really trying to delete a row directly from the table ?"
And to That I would respond: "I wanted to delete the row from the Consumption view but Eclipse wouldn't let me."
When trying to delete the row from the Consumption view, it gives the following error:
Change operations on entities are not yet supported.
So I'm asking for your guidance: How am I supposed to delete a Row from the Table ?
Request clarification before answering.
The operations like create, update, delete are normally not support inside a RAP action ( determination, ... ).
You can try it by using the EML Statement for Delete ( if your other table is part of the BO or a different BO ).
Or you implement the additional_save in your BO on the root entity, see here: https://help.sap.com/docs/abap-cloud/abap-rap/implementing-additional-save
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
51 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
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.