2013 Mar 13 10:31 AM
REPORT yspool_display LINE-COUNT 80.
PARAMETERS : a2 TYPE i. "dummy parameter
DATA : n TYPE i.
DATA : listid TYPE tbtcpv-listident.
START-OF-SELECTION.
DO 350 TIMES.
n = sy-index.
IF n BETWEEN 3 AND 350.
WRITE : / n.
ROLLBACK WORK.
ELSE.
WRITE : / n.
COMMIT WORK.
ENDIF.
ENDDO.
When I executed the above program in background the spool is generated.
But the spool contains only the last page i.e 5th page numbers printed from 313 till 350.
The line count in the program is 80.
0 - 80 - First page
80 -160 - Second page and so on till fifth page(numbers 313 till 350).
If these first four pages are wipped out because of the rollback statement then why 5th page is displayed and how to retrieve the first four pages.
Thanks,
Vijay
2013 Mar 13 12:17 PM