Symptom
Output item in preliminary billing document for channel EMAIL cannot be sent due to the error “No data supplied to render email template "&1".
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Open the Display Preliminary Billing Documents app.
- Enter the preliminary billing document number.
- Choose Continue
- Choose Goto => Header => Output
- Select the output item with channel EMAIL and status Error
- Choose Show Message Log
- Error message "No data supplied to render email template "&1" is displayed.
Cause
The standard CDS View I_BILLINGDOCUMENT is the data source for the billing document default email template. This CDS view is limited to retrieving billing documents from the database that are assigned to SDDOCUMENTCATEGORY = 'M', 'N', 'O', 'P', 'S', 'U', '5' and '6'. Preliminary Billing Documents are assigned to the SDDOCUMENTCATEGORY = PBD. Therefore, the CDS View I_BILLINGDOCUMENT cannot be used to retrieve data for preliminary billing documents. As a result, the error “No data supplied to render email template "&1" is raised when attempting to retrieve data for the billing document default email template SD_BD_DEFAULT_EMAIL_TEMPLATE for preliminary billing documents.
Resolution
For preliminary billing documents, use the preliminary billing document default email template SD_PBD_DEFAULT_EMAIL_TEMPLATE.
See Also
SAP Fiori Apps Reference Library - Display Preliminary Billing Documents
SAP Help Portal - Display Preliminary Billing Documents
SAP Help Portal - Output Management for Sales Documents and Billing Documents
SAP Help Portal . How to Create and Use a Custom Form Template
SAP Help Portal – Working with Output Items
Keywords
Email, Output Item, Custom Form, CDS, Error, render, template, SD_BD_DEFAULT_EMAIL_TEMPLATE, SD_PBD_DEFAULT_EMAIL_TEMPLATE, VFP3 , KBA , SD-BIL-GF-OC-2CL , Output Control Billing (Public Cloud) , SD-BIL-GF-OC , Output Control Billing , Problem