SAP Knowledge Base Article - Public

3413265 - Work with $format XML in OData V4 APIs

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

  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

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

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 ; SAP S/4HANA Cloud all versions