Symptom
You have an integration scenario to open a PDF document in the Document Flow facet of a sales order or sales quote in Cloud for Customer (C4C), however, you get an error and/or the PDF icon is not available.
Environment
SAP Hybris Cloud for Customer
SAP ERP
Reproducing the Issue
-
Go to the Sales work center.
- Go to the Sales Quotes or Sales Orders view.
- Open a sales document.
- Navigate to the Document Flow.
- Open the print preview by clicking on the PDF icon.
Result: you get an error or the PDF icon is not available.
Cause
Case 1:
PDF icon is not available and/or 'No PDF found' error appears.
Case 2:
You get one of the below errors:
'Output type ZF12 does not contain any PDF form types' or
'Output type COD1 does not contain a SAPScript form'
Case 3:
You get one of the below errors:
'No PDF found' or
'Dynamic call of the method IF_O2C_PRINT_PREVIEW~GET_PRINT_PREVIEW of the class CL_O2C_PRINT_PREVIEW_BIL failed: The formal parameter ET_ADD_MSG does not exist'
Case 4:
You get error:
'Function is not active (Business Function SD_01)'
Resolution
Case 1:
Follow the steps in KBA 2487041 - PDF Icon to Preview Document is Not Available in Document Flow
Case 2:
Follow the steps in blog post: General PDF errors with C4C integration
Case 3:
You need to implement SAP Note 2429878 - Exception in Print Preview
Case 4:
You need to make sure that the necessary business functions are activated in your ERP system. Our integration guide contains all the necessary information for this. You can see the screenshot from the integration guide on the prerequisites for print preview:
Keywords
No PDF found, output type, SAPScript, business function, SD_01, ET_ADD_MSG , KBA , LOD-CRM-INT-ERP , Integration of C4C with ERP , How To