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: 

how to find spool no of current program

Former Member
0 Kudos
1,214

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

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos
240

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

9 REPLIES 9

Former Member
0 Kudos
240

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

0 Kudos
240

I want to get them in same program, those generated in the same program

0 Kudos
240

You can get the Current list spool number from the system variable SPONO

SY-SPONO is the variable.

0 Kudos
240

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

Former Member
0 Kudos
240

Hi ,

Use the system variable sy-spono

Former Member
0 Kudos
240

Hi,

check this FM : RSPO_FIND_SPOOL_REQUESTS.That will find spool no of corresponding program.

Hope this help.

Regards,

T.Durai murugan.

narin_nandivada3
Active Contributor
0 Kudos
240

Hi,

Please check this thread...

Check out the function modules in this thread

Hope this would help you.

Good luck

Narin

raymond_giuseppi
Active Contributor
0 Kudos
241

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

Former Member
0 Kudos
240

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