Symptom
The XML format is intended to be used in V4 APIs; however, the error "406 Not Acceptable" occurs when attempting to do so.
Environment
SAP S/4HANA Cloud Public Edition
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
This represents standard behavior.
Resolution
This service uses OData version 4, designed to enhance performance by reducing processing time and resource usage for both clients and servers. One key improvement is the adoption of a lightweight JSON format that minimizes response sizes, contributing to faster data transfer and lower resource consumption compared to previous versions.
See Also
Keywords
API V4, XML, format ,Purchase Order , KBA , MM-PUR-PO , Purchase Orders , Known Error
SAP Knowledge Base Article - Public