10-17-2008 3:23 PM
Hi,
My requirement is I need to run the program in the background where I have kept the changing of my header page is like PAGE X of XXXX.
This program is working fine when I keep the program in foreground mode.But when I ran the program in background only the last page is coming perfect. Means PAGE 12 of 12 but all other are came as PAGE 1 OF XXXX.
As the request is already kept in the spool so not able to edit at the end of the program.Below is my code part.
REPORT ZTEST_PSK no standard page heading line-count 30 LINE-SIZE 90
.
DATA L_PAGE_COUNT(5) TYPE C.
START-OF-SELECTION.
Real list output takes place here
DO 300 TIMES.
WRITE: / 'Line #', SY-LINNO.
ENDDO.
end-of-selection.
Page count will be printed on each page here
WRITE SY-PAGNO TO L_PAGE_COUNT LEFT-JUSTIFIED.
DO SY-PAGNO TIMES.
READ LINE 1 OF PAGE SY-INDEX.
REPLACE 'XXXX' WITH L_PAGE_COUNT INTO SY-LISEL.
MODIFY CURRENT LINE.
ENDDO.
TOP-OF-PAGE.
WRITE: /(70) 'Heading' CENTERED, 70 SY-PAGNO,'of ', 'XXXX'.
ULINE.
Please help me in getting to edit all the page in the background run.
Thanks in advance.
Regards,
PSK
10-17-2008 3:29 PM
Hello,
Does the batch job definition use the same printer that you are using when you run the program in the foreground?
Regards,
Steve.
10-17-2008 3:46 PM
Steve,
In forground means when I ran it normally with execute button . a List out put display No printer is used.
Thanks,
Partha
10-17-2008 3:57 PM
Hello,
Does the batch job definition have a printer assigned?
Regards,
Steve.