2008 Aug 13 12:09 PM
hi
can anyone tell me how to get spool request(s) of currently running program?
I will get more than one spool request thru my program, is there any function module?
plz help me
2008 Aug 13 12:22 PM
Some ways to [find spool number|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=findspoolnumber&adv=false&sortby=cm_rnd_rankvalue]
- Spool header are in table [TSP01|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=tsp01&adv=false&sortby=cm_rnd_rankvalue].
- The last spool number is SYST-[SPONO|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=spono&adv=false&sortby=cm_rnd_rankvalue].
- Many function return the spool number (e.g. CLOSE_FORM)
- FM like [RSPO_FIND_SPOOL_REQUESTS|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=rspo_find_spool_requests&adv=false&sortby=cm_rnd_rankvalue]
Valid selection criteria are the criteria you fill before printing via function module like [SET_PRINT_PARAMETERS|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=set_print_parameters&cat=sdn_all] or when calling SAPscript , Smart Forms FM or so.
Regards
2008 Aug 13 12:11 PM
hi..
You can use sytem variable for spool....
or u can go to sm37 and check the job name and the click on spool.
regards
vivek
2008 Aug 13 12:12 PM
I want to get them in same program, those generated in the same program
2008 Aug 13 12:14 PM
You can get the Current list spool number from the system variable SPONO
SY-SPONO is the variable.
2008 Aug 13 12:16 PM
hi..
Your req is not clear
if you want to no spool no ..
after each write spool (or set of write stmt)...print sy-spono and print it and repeat the process after each print
regards
vivek
2008 Aug 13 12:14 PM
2008 Aug 13 12:16 PM
Hi,
check this FM : RSPO_FIND_SPOOL_REQUESTS.That will find spool no of corresponding program.
Hope this help.
Regards,
T.Durai murugan.
2008 Aug 13 12:16 PM
2008 Aug 13 12:22 PM
Some ways to [find spool number|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=findspoolnumber&adv=false&sortby=cm_rnd_rankvalue]
- Spool header are in table [TSP01|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=tsp01&adv=false&sortby=cm_rnd_rankvalue].
- The last spool number is SYST-[SPONO|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=spono&adv=false&sortby=cm_rnd_rankvalue].
- Many function return the spool number (e.g. CLOSE_FORM)
- FM like [RSPO_FIND_SPOOL_REQUESTS|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=rspo_find_spool_requests&adv=false&sortby=cm_rnd_rankvalue]
Valid selection criteria are the criteria you fill before printing via function module like [SET_PRINT_PARAMETERS|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=set_print_parameters&cat=sdn_all] or when calling SAPscript , Smart Forms FM or so.
Regards
2008 Aug 13 12:25 PM
hi open this link and see code
http://searchsap.techtarget.com/tip/1,289483,sid21_gci1121833,00.html?track=NL-42&ad=527944&FromTaxo...; rel="nofollow">http://searchsap.techtarget.com/tip/1,289483,sid21_gci1121833,00.html?track=NL-42&ad=527944&FromTaxonomy=%2Fpr%2F283958</a
this code for find spools no.
thanks