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 get spool Number

Former Member
0 Kudos
4,695

Hi Experts,

i printed a purchase order and this creates a spool number. How to identify spool number to related printed purchase order?

Thanks in advance!!

Thanks & Regards,

Sivaji kankanala.

6 REPLIES 6

raymond_giuseppi
Active Contributor
0 Kudos
1,289

Look at FM WFMC_PROTOCOL_LOAD, use NAST record as entry (select with keys 'EF'/purchase order number/'NEU')

Regards,

Raymond

0 Kudos
1,289

Hi Raymond,

Thanks for your replay.

But there is no export parameter. How can i get spool request ?

Thanks & Regards,

Sivaji Kankanala.

Former Member
0 Kudos
1,289

Hi,

If you are printing the order in foreground, we cant track the exact spool number for the purchase order. We can track the spool requests generated for an user from the transaction SP01 or through the table TSP01.

If we are printing the order in background (through the output types and send with own transaction), you can get the spool number through the processing log of the output type. You can also get the spool number from the table NAST and CMPF by linking the NAST-CMFPNR to CMPF-NR.

Cheers

~Niranjan

0 Kudos
1,289

Hi Niranjan,

I am printing order in foreground. Printing multiple PO's at a time, in that case how can i identified spool number to related printed purchase orders?

Thanks & Regards,

Sivaji Kankanala.

murtuza_chhatariya
Active Participant
0 Kudos
1,289

Hi,

I am not aware of the purchasing process, but if your program is background then sy-spono will contain spool number.

If it is foreground, then as mentioned by Niranjan, transaction SP01 will show spool on your id.

Thanks,

Murtuza

manukapur
Active Participant
0 Kudos
1,289

When you save the PO, the control passes to Message Control, wherein you define what to do with the Purchase order after creation or change. This can be seen using the Transaction NACE, Select 'EF' for PO.

Spool gets generated at this point and can be checked in TSP01.

Try debugging and you will hit it for sure.

Regards,

Manu