Skip to Content
1
Sep 29, 2021 at 07:26 AM

Send Spool of background job via email - How to avoid sending email when there is no spool

2225 Views Last edit Sep 29, 2021 at 07:27 AM 2 rev

I use the "Spool list recipient" functionnality in SM36 to send the result of a standard report by email. This report is executed via a background job running at a given frequency.

As explained here : https://wiki.scn.sap.com/wiki/display/TechTSG/Send+Spool+list+of+background+job+to+SAP+inbox

The issue is that quite often, the result of the report is empty. So no spool is generated. But the email is still sent.

Therefore the users receive most of the time emails without attachment. And sometimes there is an attachment. It's bothering them and they don't look at the emails anymore.

=> How can I avoid that emails are sent if no spool is generated?

Thanks in advance