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

Failed/Pending Spool.

Former Member
0 Likes
601

What is the table or function module storing the data of spool no., user, spool status (transaction SP01)? I need to get the data of failed/pending spool.

Thanks,

Ajay Deshmukh.

What is the table or function module storing the data of spool no., user, spool status (transaction SP01)? I need to get the data of failed/pending spool.

Thanks,

Ajay Deshmukh.

3 REPLIES 3
Read only

Former Member
0 Likes
564

Hi!

Table of the spool requests is TSP01.

You might check out the other TSP* tables also.

Regards

Tamá

Read only

Former Member
0 Likes
564

STRUCTURE tbtcp

Read only

Former Member
0 Likes
564

ELECT * FROM tbtcp

INTO TABLE it_tbtcp

WHERE jobname = gd_jobname

AND jobcount = gd_jobcount

AND stepcount = gd_stepcount

AND listident <> '0000000000'

ORDER BY jobname

jobcount

stepcount.

READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.

IF sy-subrc = 0.

message s004(zdd) with gd_spool_nr.

gd_spool_nr = wa_tbtcp-listident.

MESSAGE s004(zdd) WITH gd_spool_nr.

ELSE.

MESSAGE s005(zdd).

ENDIF.