09-22-2014 10:13 AM
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
09-22-2014 10:41 AM
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.
09-22-2014 10:34 AM
09-22-2014 10:41 AM
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.