Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Creating Spool File for development plans

Former Member
0 Likes
456

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

2 REPLIES 2
Read only

Former Member
0 Likes
433

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

Read only

0 Likes
433

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.