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: 

Spool print with more than one page doesn't work

Former Member
0 Kudos

Hi Experts,

I need some help.

I have following code in my report:

SORT ta_ausgabe BY vstel vkorg_auft fkdat.

  NEW-PAGE PRINT ON .

   LOOP AT ta_ausgabe INTO wa_ausgabe.

     READ TABLE ts_vstel

       INTO wa_vstel

       WITH TABLE KEY spras = sy-langu

                      vstel = wa_ausgabe-vstel.

     READ TABLE ta_vkorg

       INTO wa_vkorg

       WITH KEY vkorg = wa_ausgabe-vkorg_auft.

     WRITEwa_ausgabe-vstel.

     WRITEwa_ausgabe-vkorg_auft.

     WRITEwa_ausgabe-fkdat.

     WRITEwa_ausgabe-matnr NO-ZERO LEFT-JUSTIFIED,

       AT 30 wa_ausgabe-maktx NO-ZERO LEFT-JUSTIFIED,

       AT 70 wa_ausgabe-fkimg NO-ZERO LEFT-JUSTIFIED

       AT 79 wa_ausgabe-vrkme NO-ZERO LEFT-JUSTIFIED.

     NEW-LINE.

   ENDLOOP.

   NEW-PAGE PRINT OFF.

   COMMIT WORK.

   v_spool_attach = sy-spono.

As you see the information of the table TA_AUSGABE will be just prined into spool. When I have only information for one page everything

work fine, but as soon there more information to be printed I cannt open my pdf file with the spool info anymore.

What could be a reason?

Please urgent

BR

Denis

1 ACCEPTED SOLUTION

former_member188724
Contributor
0 Kudos

Hi Denis,

The code works for me for printing more than 1 page.

Pls try giving the spool id manually  in report RSTXPDFT4 and see whether it gets Multi pages in pdf and let me know if you have any issues.

Rgds,

K.S.

2 REPLIES 2

FredericGirod
Active Contributor
0 Kudos

Hi,

did you specify the line-size line count ?

regards

Fred

former_member188724
Contributor
0 Kudos

Hi Denis,

The code works for me for printing more than 1 page.

Pls try giving the spool id manually  in report RSTXPDFT4 and see whether it gets Multi pages in pdf and let me know if you have any issues.

Rgds,

K.S.