Symptom
- The response from the V2 API is empty when attempting to retrieve binary data
Environment
SAP S/4Hana Public Cloud Edition
Reproducing the Issue
- Execute the following API GET Operation
*/sap/opu/odata/sap/API_PURCHASEORDER_PROCESS_SRV/GetOutputBinaryData?PurchaseOrder='4500000000' - Observe that the response is empty, and no binary data is returned.
Cause
- Regression issue from the CE2508 upgrade.
- A correction will be provided in the upcoming release CE2602.
Resolution
In the interim period use these workarounds
V2 workaround
*/sap/opu/odata/sap/API_PURCHASEORDER_PROCESS_SRV/GetPDF?PurchaseOrder='4500000000'
V4 workaround
*/sap/opu/odata4/sap/api_purchaseorder_2/srvd_a2x/sap/purchaseorder/0001/PurchaseOrder/4500000000/SAP__self.GetOutputBinaryData()
With release CE2602 all options below can be used to retrieve binary data.
*/sap/opu/odata/sap/API_PURCHASEORDER_PROCESS_SRV/GetPDF?PurchaseOrder='4500000000'
*/sap/opu/odata/sap/API_PURCHASEORDER_PROCESS_SRV/GetOutputBinaryData?PurchaseOrder='4500000000'
*/sap/opu/odata4/sap/api_purchaseorder_2/srvd_a2x/sap/purchaseorder/0001/PurchaseOrder/4500000000/SAP__self.GetOutputBinaryData()
See Also
- Refer to: SAP Documentation: GetOutputBinaryData API.
- Refer to: SAP Knowledge Base Article 3549497.
Keywords
v2 api, binary data, purchase order, sap s/4hana cloud, api upgrade, getoutputbinarydata, getpdf, odata v4, ce2602, workaround, api issue, sap public cloud edition. , KBA , MM-PUR-PO-BAPI-2CL , BAPIs - Purchase order (Public Cloud) , MM-PUR-PO-2CL , Purchase Orders (Public Cloud) , How To
SAP Knowledge Base Article - Public