Symptom
You want to use XML format in V4 APIs, but faces the error "406 Not Acceptable"
Environment
SAP S/4HANA Cloud
Reproducing the Issue
- Execute GET method via API /sap/opu/odata4/sap/api_purchaseorder_2/srvd_a2x/sap/purchaseorder/0001/?$format=xml
- Error "406 Not Acceptable"
Cause
Standard behavior.
Resolution
This is an OData version 4 service. This version aims to improve processing time and resource consumption of clients and servers. This includes a lightweight JSON format that reduces the size of every response.
See Also
Keywords
API V4, XML, format ,Purchase Order , KBA , MM-PUR-PO , Purchase Orders , Known Error
Product
SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions