SAP Knowledge Base Article - Public

3413265 - Work with $format XML in OData V4 APIs

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

  1. Execute GET method via API /sap/opu/odata4/sap/api_purchaseorder_2/srvd_a2x/sap/purchaseorder/0001/?$format=xml
  2. 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

Purchase Order (ODATA V4)

Keywords

API V4, XML, format ,Purchase Order , KBA , MM-PUR-PO , Purchase Orders , Known Error

Product

SAP S/4HANA Cloud Public Edition all versions