Symptom
Error message "Error(s) occurred when merging the document. The return code is 101." occurs when previewing a billing document, preventing the document and attachments from being displayed in "Manage Preliminary Billing Documents" app.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Open the "Manage Preliminary Billing Documents" app.
- Open a preliminary billing document.
- Preview button.
- Observe the error: "Error(s) occurred when merging the document. The return code is 101."
Cause
Output Control uses API CL_RSPO_PDF_MERGE for PDF merge API. Return code (RC) 101 means "Invalid Document".
Resolution
- Identify the billing document attachments and check the PDF versions.
- If any attachment is PDF version 2.0, convert it to a lower PDF version (for example 1.7 or 1.5).
- Re-upload the converted PDF attachment to the billing document.
- Retry the preview of the billing document.
- If the error persists, verify that all attachments are valid, non-corrupted PDFs and repeat steps 2–4 for any remaining version 2.0 files.
See Also
Keywords
billing document preview, output control, attachments merge, pdf merge, return code 101, invalid document, CL_RSPO_PDF_MERGE, preview error, preliminary billing document, attachment error, pdf version, merge failure, BC-CCM-PRN-SPO, rc 101, output management , KBA , BC-CCM-PRN-SPO , Spool System , Problem
SAP Knowledge Base Article - Public