02-10-2010 1:14 PM
Hi
I am sending the spool(o/p of program) through an email using function module 'RSPO_SPOOLJOB_TO_OFFICE'.
Because whatever spool is gettting generated, I am passing that spool no to this FM, but in foreground there is no spool
but a mail should be sent in foreground as well
please help.
02-10-2010 1:18 PM
Hi,
USe the FM GET_PRINT_PARAMETERS , it will creat the spool and send the spool data i.e output thrugh mail..
Reagrds,
Bharani
02-10-2010 1:47 PM
Hi,
Check below logic.
NEW-PAGE PRINT ON. "Redirects the o/p to spool
WRITE 'Test'. "Here is your o/p printing logic
NEW-PAGE PRINT OFF. "Redirects the o/p to list.
WRITE: 'Spool number', sy-spono.
After executing below sample code, system will ask for printer name as it asks when you run the report in background. Enter the name and continue.
First write statement data is transferred to the spool.
Thanks,
Vinod.