Lukman Hakim

Failed to load PDF document’ error when printing in SAP Fiori

Symptom

Getting ‘Error’ popup: ‘Failed to load PDF document’ while executing Purchase orders in the ‘Change Purchase Order’ and ‘Approve Purchase Order’ tiles in Fiori.

failed_to_load_pdf.png

Environment

 SAP Netweaver

Reproducing the Issue

  1. Change existing PO in change PO tile or approve a PO in approve PO tile.
  2. Save the PO, PO should get saved.
  3. New tab opens in browser, URL called: http(s)://<host.domain>:<port>/sap/bc/bsp/sap/frontend_print/?sap-client=…….
  4. Get ‘Error’ popup: ‘Failed to load PDF document’ (as per above screenshot)
  5. For a more information error message
  6. Start transaction SICF on the respective backend system
  7. Open the corresponding tree nodes for the service you would like to test i.e webgui> default host ->sap -> bc -> gui -> sap -> its -> webgui
  8.  Select ‘Test service’ from context menu of the service nodei.e: Right ‘Click’ -> Test Service
  9. This will launch the webgui service in the browser – from here logon to system again.
  10. Call the “Change Purchase Order” app; transaction: ME22N / ME29N
  11. Follow steps above for the PO.
  12. New tab opens in browser, URL called: http(s)://<host.domain>:<port>/sap/bc/bsp/sap/frontend_print/?sap-client=…….
  13. ‘Error’ popup: ‘File does not begin with ‘%PDF-‘

file_does_not_begin.png

Cause

Printer is not correctly configured.

In order to create a PDF, a PDF device type needs to be used.

Web-based documents are printed out via PDF.

The document must be printed out on a printer with device type PDF1.

Resolution

The document must be printed out on a printer with device type PDF1.

 

source : https://launchpad.support.sap.com/#/notes/0002801733

Leave a Comment