Skip to Content
avatar image
Former Member

Create spool number at every new page of classical report


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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 14, 2015 at 07:06 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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