Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Spool in foreground

manubhutani
Active Contributor
0 Kudos

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.

2 REPLIES 2

P561888
Active Contributor
0 Kudos

Hi,

USe the FM GET_PRINT_PARAMETERS , it will creat the spool and send the spool data i.e output thrugh mail..

Reagrds,

Bharani

vinod_vemuru2
Active Contributor
0 Kudos

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.