How to get the spool request number at the run time

Question:
In my report program I am using the function module "GET_PRINT_PARAMETERS" to print the output without going to the print screen. I need to find out the spool request number which got generated after this function module.
So can any body suggest me the solution. Thanks in advance
Clark
Answer:
After you execute the print statement using get_print_parameters
you can find the detail of output stored in the Table TSP01.
based on the user name and the job name you can get the last created Spool Number
sriram

More Articles:

A Simple Question On The Material Master Update?
Txn. STAT?
Urgent Help on internal table required?
How to find and open file SAPACTAB.H?
VOFM for Sales Orders/Billing?
Change FAX number(in NAST) during ME28 or ME9F transaction.!?