Symptom
When displaying a PDF for an output item in status "Completed", the following error occurs:
- 'Display Document' is not possible, as the saved doc. is not a PDF file
Environment
SAP S/4HANA Cloud
Reproducing the Issue
- Open the output reuse screen from application document like SD billing document or MM purchase order.
- Select one output item in status 'Completed'.
- Select the PDF icon to display the document.
- The following error message is displayed:
'Display Document' is not possible, as the saved doc. is not a PDF file
Cause
As of recent release, output control framework has been enhanced to support printing of rendered PDF documents on "PCL" printers. When output is being issued, output control framework captures a) the type of output device used to issue the output in the output request and b) saves the rendered document sent to the printer in the KPRO archive. When displaying the rendered document for an output in the status "completed", output control framework retrieves the rendered document from the KPRO archive. Next the type of output device used to issue output is retrieved from the output request and validated. If it is not a "PDF" printer, the renderer document cannot be displayed. Instead, the following error message is displayed:
'Display Document' is not possible, as the saved doc. is not a PDF file
When you display the rendered PDF document of an output type in status "In Preparation", output control framework temporarily renders the output as a PDF document. This is done because the output has not yet been issued and so the output device is not required when rendering PDF document for the purpose of displaying it. This is why it is possible to manually add a new output type (in status "In Preparation") to an existing document and be able to display the rendered document whereas this is not possible for an output which has been issued (in status "Completed").
Resolution
For any of your existing documents where output has been successfully issued (in status "completed") using channel "PRINT" with an output device which was not a "PDF" printer at the time of issuing the output, you will not be able to display the rendered document. This is a limitation of S/4HANA Output Control framework. The only workaround available to you as you have already found is to use the option "Add Output (CTRL+F8)" to temporarily create a new output type for the document matching the issued output and click the "Display Document (F5)" to render the document and display it. Going forward, if the business requirement is to display the rendered document for issued output (in status "completed") you will need to use an output device for issuing your output using channel PRINT which is a "PDF" printer. For more details actions, please refer to SAP online help documentation.
See Also
-
3135861 - Message "The saved document is not a PDF file. Display is not possible" is raised when displaying PDF from output items
Keywords
APOC_OR_MESSAGES 390, OPD, S4HANA output management, output control, BRFplus, BRF+, BRFplus workbench , KBA , CA-GTF-OC , SAP S/4HANA output management , Product Enhancement