Skip to Content
0
Oct 12, 2022 at 06:27 AM

OData v4 APIs for SAP S/4Hana Cloud which supports sap_message property

456 Views

Hello All,

Sap_message property in oData v4 APIs for SAP S/4Hana Cloud exposed on API HUB

Query: there are some OData v4 APIs for SAP S/4Hana Cloud which supports this sap_message property. I would like to understand how to use it. I am using postman to test this.

Based on the information provided by SAP, the sap_message header contains sap server messages.

You can check more at this place: https://sapui5.hana.ondemand.com/sdk/#/topic/fbe1cb5613cf4a40a841750bf813238e

When I execute the Get operation on the Bank API, I get empty sap_messages.

image.png

For some reason, the sap has included this property for creating operation payload format and updating operation format as well

image.png

API Link: API Reference | Bank | SAP API Business Hub

image.png

image.png

API Link: API Reference | Bank | SAP API Business Hub

Does this mean this property is updatable and creatable?

I tried updating it but received the below error

image.png

Based on my analysis, the sap_message is supposed to come in case of a successful response only.

So basically, the question here is, in case of creating or updating an operation, can this property be part of the request body?

Attachments

image.png (71.7 kB)
image.png (70.8 kB)
image.png (54.0 kB)
image.png (82.8 kB)
image.png (85.8 kB)