03-13-2007 6:26 AM
Hai to all,
Any body help me. Is there any FM to get SPOOL REQUSTS by giving Parameter as PROGRAM NAME...
Thanks,
Naga.
03-13-2007 6:45 AM
hi naga raju,
u can use RSPO_FIND_SPOOL_REQUESTS function module.
but you need to pass the SY-UNAME. then it will give spool list in an internal table.
Regards,
03-13-2007 7:03 AM
Hi Kranthi,
Thanks For ur replay,
But i want to know What are the spool requests for perticular program.
As u said, its giving all spool requests for perticular user . Is there any way...
Thanks,
Naga.
03-13-2007 6:48 AM
hi,
U can get the spool number with the below logic..
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.
regards,
nagaraj
03-13-2007 7:06 AM
Hi ,
If you want to capture the spool number created in your terminla session , use system field : sy-spono .
Thanks .