SUBMIT report and Send spool to e-mail
first I know there are lots of threads about this but I did not found the right explanation for it.
My problem is the following: I call cost center report RKAEP000 with SUBMIT in my z-report. Now I want that a spool gets generated and the spool should be send to destination 'MAIL' with the filled e-mail.
The z-report should not be started manually, but with a periodic batch job every month. So I tried to add the SUBMIT TO SAP-SPOOL [...] extension which leads to creating a spool. But unfortunately the parameters for the spool (e.g. not printing alv statitics) which I defined in the batch job look like they get overwritten by the default values of SUBMIT TO SAP-SPOOL extension. I tried with function GET_PRINT_PARAMETERS but not all parameters are available there (as said alv statistics).
So is it possible, and if yes how, to create a spool with SUBMIT and use the parametes of a batch job when "printing" the spool? And if no, how can I do it otherwise?