‎2007 May 18 1:03 PM
My requirement is Mass printing of Development Plans,
I have to select all development plans and crete a spool file
which would then print to the printer based on the development plan that is being entered in selection screen.
now my doubt is how to create a spool file?
can any body please give some sample code.
Regards,
Kalam A
‎2007 May 18 1:07 PM
You can use the following Fms to do that:
1.JOB_OPEN
2.JOB_SUBMIT
3.JOB_CLOSE
<b>get the spool number</b>
* Declaration of local variables.
DATA:
LV_RQ2NAME LIKE TSP01-RQ2NAME.
CONCATENATE SY-REPID+0(8)
SY-UNAME+0(3)
INTO LV_RQ2NAME SEPARATED BY '_'.
* Get the spool number.
SELECT * FROM TSP01 WHERE RQ2NAME = LV_RQ2NAME
ORDER BY RQCRETIME DESCENDING.
V_RQIDENT = TSP01-RQIDENT.
EXIT.
ENDSELECT.
IF SY-SUBRC NE 0.
CLEAR V_RQIDENT.
ENDIF
‎2007 May 25 12:29 PM
Hi Abhishek...
Thank you very much for ur reply..
but my case is i need to select all the smartforms depending upon the selection screen data.& i need to pass all the smartforms to newly created spool file..so
can u or any body explain me in detail..
what is the use of spool file ..???
how to create spool file in this case..???
Regards,
Kalam A.