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