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

get spool request number

Former Member
0 Likes
3,183

Hello,

I have an alv, and when user prints it, I need to get the spool request number in order to save it in a log table.

How to obtain this spool number when the alv is printed?

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,077

Hi,

you can find the spool request number from SP01 Transaction. Table TSP01

Reward if it helps,

Satish

Message was edited by:

Satish Panakala

5 REPLIES 5
Read only

Former Member
0 Likes
1,078

Hi,

you can find the spool request number from SP01 Transaction. Table TSP01

Reward if it helps,

Satish

Message was edited by:

Satish Panakala

Read only

0 Likes
1,077

But I need to obtain it via ABAP in the program that builds the alv.

Read only

0 Likes
1,077

Hi,

Go through this link

Regards,

Satish

Read only

0 Likes
1,077

Have you checked variable SY-SPONO?

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
1,077

Hi

First check if SY-SPONO is useful in ur case .

Otherwise check table TSP01..spool no are stored in this table in field

RQIDENT and RQOWNER contains User ID . RQCRETIME is created time .

U can select these fields using SELECT and read the latest record with RQCRETIME . You can get the latest SPOOL .

Hope this Helps .

Thanks. Praveen