Skip to Content
0
Former Member
Sep 22, 2014 at 09:13 AM

Spool print with more than one page doesn't work

22 Views

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.

WRITE: wa_ausgabe-vstel.

WRITE: wa_ausgabe-vkorg_auft.

WRITE: wa_ausgabe-fkdat.

WRITE: wa_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