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

Link between spool request & abap program

adel_adel
Participant
0 Likes
2,493

Hi all,

I m looking for the link table between a spool request and the corresponding job and abap program.

I want to select all spool requests generated via een job via een abap program.

Some suggestions?

Thanks in advance,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,808

Hi Adel,

You will find answer in my reply to same question.

Regards,

Mohaiyuddin

8 REPLIES 8
Read only

Former Member
0 Likes
1,808

Hi,

Spool request is a document for which a print function has been selected. However, it has not yet been output to a printer or another device. The output data for the print document is stored partly formatted in a data store until an output request is created, that is, until it is sent to a particular output device.

The spool system uses a spool request to store the print data temporarily and to access it. The data is stored in a temporary format. You can also display the print document. The system automatically assigns a 10-digit ID number to a spool request.

Spool requests can be viewed via tcode SP01, the number will be there, programatiically it is sometimes populated in the system field SY-SPONO.

It will take input parameters through the selection screen variants and process the code normally as foreground when we are writing the output to list it will generate the spool.

Reward Points if found helpfull..

Cheers,

Chandra Sekhar.

Read only

0 Likes
1,808

Hi Chandra,

Thanks for the info.

But i m looking foe the link (table name) between a spool request and the job or the corresponding abap program.

If i have a spool request number (transaction sp01) how i can i found the abap program name ? Via wich table ?

I have to build a program that the spool request of a certain abap program process.

Thanks.

Read only

0 Likes
1,808

Hi,

You can view your spools using transaction SP01.

TSP01 is the table to get spool request number

and the spool request number will be TSP01-RQIDENT

Refer

https://forums.sdn.sap.com/click.jspa?searchID=10899248&messageID=4234127

https://forums.sdn.sap.com/click.jspa?searchID=10899248&messageID=4549731

Regards

Kiran Sure

Read only

0 Likes
1,808

Hi all,

Spool requests are stored on table tsp01.

The question is : how i can find the corresponding program name of a spool request ? with abap .

This is why i m looking for the technical table name of the link table between request number and abap program.

I hope that my question is clear enough

Thanks.

Read only

0 Likes
1,808

Hi,

Ur looking the program which will convert spool to pdf?Then see the Program RSTXPDFT4.

Regards

Kiran Sure

Read only

Former Member
0 Likes
1,808

Check the tables

TBTCP

TBTCO

Read only

Former Member
0 Likes
1,809

Hi Adel,

You will find answer in my reply to same question.

Regards,

Mohaiyuddin

Read only

0 Likes
1,808

In addition to my answer in above given forum, you will find program name in TBTCP-PROGNAME.

Hence flow will be as follow.

Get spool number from TSP01.

use TBTCP-TBTCP-LISTIDENT will contain spool number (only if spool is created by job). Corresponding program name will be indicate by TBTCP-PROGNAME.

Regards,

Mohaiyuddin