Suppose we need to generate Excel-file in the background mode.
We slightly modify the form developed in the previous example to send resultant Excel-file via SAP-mail (in this case - to us) :