Application Development 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: 

HELP

Former Member
0 Kudos

Hai to all,

Any body help me. Is there any FM to get SPOOL REQUSTS by giving Parameter as PROGRAM NAME...

Thanks,

Naga.

4 REPLIES 4

Former Member
0 Kudos

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,

0 Kudos

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.

former_member404244
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi ,

If you want to capture the spool number created in your terminla session , use system field : sy-spono .

Thanks .