SAP Knowledge Base Article - Public

3754328 - PO PDF API for whatsApp integration using getOutputBinaryData in SAP S/4HANA Cloud Public Edition

Symptom

Requirement for an API to retrieve Purchase Order (PO) PDF output for integration with external applications such as WhatsApp

Environment

SAP S/4HANA Cloud Public Edition

Cause

The standard purchase order API does not provide a direct PDF output; it exposes a function to download the output as binary data that must be converted to PDF by the consuming application.

Resolution

  1. Use the OData V4 Purchase Order API (service CE_PURCHASEORDER_0001) function GetOutputBinaryData to retrieve the purchase order output as binary data.
  2. Convert the received binary payload to a PDF in the consuming application (for example, write the returned bytes to a .pdf file).
  3. Refer to the below official API reference and documentation for the endpoint path, parameters, and usage details.
  4. Purchase Order API (OData V4) – GetOutputBinaryData

See Also

Keywords

purchase order pdf, getoutputbinarydata, odata v4, ce_purchaseorder_0001, binary to pdf, po output, api download, whatsapp integration, s/4hana cloud public edition, procurement, po pdf api, output binary data, pdf conversion, purchase order api, v4 function import , KBA , MM-PUR-PO-2CL , Purchase Orders (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions