2024 May 24 8:12 PM - edited 2024 May 26 1:23 PM
Hi,
We've exposed a RAP service as an OData V4 Web API. It works as expected. Just that the default response of the POST call contains all the fields of the entity and the child entity when the request is successful. Is there a way to control/modify the response body(delete certain fields/send a generic response) before sending it to the consumer? Note that is a managed RAP BO with unmanaged save. The consumer triggers a create request, data is persisted in a custom DB table in the unmanaged save sequence and the control returns to the RAP framework for response generation.
Current default sample response:
Expected Response:
{ "Success" } or no response at all with HTTP status 200 would also work.
Any suggestions?
Request clarification before answering.
Hi Vitali,
Thank you for your response. I think that would work for us.
Regards,
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This did not work for us as well using RAP Web API. Not sure if this works in public cloud systems or BTP ABAP env. On on-premise/private cloud it does not.
.../sap/opu/odata4/sap/zfi_api_invoiceapi_o4/srvd_a2x/sap/zfi_api_invoiceapi_o4/0001/InvoiceAPI?sap-client=200&$select=InvUUID
User | Count |
---|---|
61 | |
7 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.