Application Development and Automation 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: 
Read only

Generate multiple Spool requests for Mass printing

Former Member
0 Likes
3,421

Hello SAP Experts,

We are doing mass printing for invoice documents for which only one spool request is created. One PDF is having account of all the invoices generated.

We are with a requirement to segregate these documents as single spool when mass printing is done.

Tcode that we use for printing is FOYB, FOYC and FINT. Is there a printer setting which can solve the purpose? 

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,319

Hi Faiz,

I think REQNEW = space will do it. pass It in SFPOUTPUTPARAMS structure before calling FM  FP_JOB_OPEN. Else,Get the SPOOLID from the frist PDF and use it to the others.

Regards,

Supratik

Hi Faiz,

I think REQNEW = space will do it. pass It in SFPOUTPUTPARAMS structure before calling FM  FP_JOB_OPEN. Else,Get the SPOOLID from the frist PDF and use it to the others.

Regards,

Supratik

6 REPLIES 6
Read only

Former Member
0 Likes
2,320

Hi Faiz,

I think REQNEW = space will do it. pass It in SFPOUTPUTPARAMS structure before calling FM  FP_JOB_OPEN. Else,Get the SPOOLID from the frist PDF and use it to the others.

Regards,

Supratik

Read only

0 Likes
2,319

Thanks Supratik.

But we are printing from standard TCodes - FOYB, FOYC, FINT( RE{real estate} module TCodes). The method you suggested can be done for Z program.

Can this requirement can be achived through printer setting?

Read only

0 Likes
2,319

I think in that case you can use an enhancement or it will be better if you select the checkbox "Close spool request" in the printing option. The use for this checkbox is mentioned as below in F1 help:

"

Spool request completed

If this field is empty, the spool system automatically adds further spool requests with the same attributes (output device, client in which the request was generated, number of copies and priority).

If, for example, a user repeatedly uses a transaction that generates a spool request, the spool system groups these requests together in a single spool request. This request can then be processed as one job when printing and for spool administration.

Procedure

Select this field to close a spool request before it is released for printing. For later requests which would otherwise be added, a separate spool request is generated.

"

Regards,

Supratik

Read only

0 Likes
2,319

Hi,

you can't do this without modifying the program. Because you could have an invoice with several pages. In this case it's not a good choice to separate the pages into several spool.

For me the first question is why did you need to create several spools ?  for performance issue ? to make some load balancing between several printers ? 

Maybe that will be more simple to create a Z transaction that call the standard transaction with a set of data. (print by 100 documents for example)

best regards

Fred

Read only

0 Likes
2,319

Helo Frederic,

For each invoice we print, we capture document number and pdf from the spool request generated and store it in Z table. This we used to dofor single document and thus we were able to capture entries. Now when mass printing is done, pdf of all invoices are collected in a single spool request. due to this our program is not able to capture individual invoice document and its pdf to store in Z table . It only stores the last invoice number and pdf of all invoices,sent for printing, in Z table.

In order to store individual PDFs of mutiple invoice, we need multiple spool requests.

Thanks

Read only

0 Likes
2,319

Thanks all. solved by myself. Solution is check box "new spool request" when marked generates multiple spool requests for mass printing.

Thanks and regards,

Faiz