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: 

Create spool number at every new page of classical report

0 Kudos


Hi all,

I have developed a classical report which display Customers FI ledger. I have made the display such that each customers data gets printed on a new page. Now i wont a spool number to be created for each page so that , it can be converted to pdf and sent as a attachment in a mail to the respective customer.

Can you please help me in creating the spool number for each page. ?

Thanks

Neha

3 REPLIES 3

former_member201285
Active Participant
0 Kudos

This is not possible. A new spool number means a new spool.

Split the spool into several ones.

See the following code snippet::

       NEW-PAGE PRINT ON NO DIALOG NO-HEADING NO-TITLE

                DESTINATION lv_printer

                LINE-SIZE 80

                LINE-COUNT 65

                IMMEDIATELY space

                KEEP IN SPOOL 'X'.


Regards,

Ulrich

0 Kudos

Hi,

Thanks for your response.

But may i know how to split the spool number ?


0 Kudos

The following example creates 2 spools:

       NEW-PAGE PRINT ON NO DIALOG NO-HEADING NO-TITLE

                DESTINATION lv_printer

                LINE-SIZE 80

                LINE-COUNT 65

                IMMEDIATELY space

                KEEP IN SPOOL 'X'.


     write: 'This is the content of page 1'.

     NEW-PAGE PRINT OFF.

*   read spool number from SY-SPONO

       NEW-PAGE PRINT ON NO DIALOG NO-HEADING NO-TITLE

                DESTINATION lv_printer

                LINE-SIZE 80

                LINE-COUNT 65

                IMMEDIATELY space

                KEEP IN SPOOL 'X'.


     write: 'This is the content of page 2'.


     NEW-PAGE PRINT OFF.


*   read spool number from SY-SPONO