on 2025 Jul 14 10:45 PM
Hi,
I have an Unmanaged RAP "Behavior Definition" public on Odatav4 Service Binding:
unmanaged implementation in class <my_class> unique;
strict ( 2 );
define behavior for <my_cds>
lock master
authorization master ( instance )
{
create;
}
In Create Method:
LOOP AT entities ASSIGNING FIELD-SYMBOL(<fs>).
* my checks
ENDLOOP.
In this example My_Cds have only 2 fields: test (key), description.
POSTMAN test:
When I try to send POST method with JSON Body with single entity work good:
Request clarification before answering.
The create endpoint of an OData service is intended for posting a single entity, not an array.
If you want to post multiple records in one request, use a batch request.
An alternative is to create an action that accepts a deep parameter.
https://help.sap.com/docs/abap-cloud/abap-rap/modeling-parameters-for-non-standard-operations
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 13 | |
| 7 | |
| 6 | |
| 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.