SAP Knowledge Base Article - Public

3650365 - Unable to retrieve purchase order binary data using the V2 API after the CE2508 upgrade

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

  1. Execute the following API GET Operation
    */sap/opu/odata/sap/API_PURCHASEORDER_PROCESS_SRV/GetOutputBinaryData?PurchaseOrder='4500000000'
  2. 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

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

Product

SAP S/4HANA Cloud Public Edition all versions