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: 

Find the transaction code from where a spool request is originated

Mohamed_Yousuf
Participant
0 Kudos

Hi experts,

I want to trace the transaction code from where a spool request is originated from. Is there any place where I can find it? For example, if a spool request is created from SE16 (by printing the contents of a database table), can I be able to get the transaction code (SE16) somewhere in the spool request’s attributes (or) in a trace?

Thanks,

Mohamed Yosufdeen JMH

5 REPLIES 5

kumar_rituraj
Active Participant

Hi,

Can you be little clear in your intent behind this question?

As far as I know, spool is used to print documents, i.e. if you want to print something from your program, you can do it through spool. It is only applicable for background jobs. If you want to see from where spool got created you have to go through that background job program.

Please let me know if I can help further.

Regards

Rituraj

0 Kudos

NO a spool can be created from anywhere, it's not specific to background jobs, but that's a good starting point.

0 Kudos

Hi Rituraj,

I want to log some information (in my custom table) when a user prints from SAP.

The area of interest is front-end printing and not background.

One of the information I require to capture is the application (Tcode) from which the user has done the printing.

I am able to capture the spool request number, the user who has generated the spool request and other information.

But I could not find the transaction code / program name from where the user has printed.

Does SAP store the transaction code somewhere along with the spool request?

Thanks,

Mohamed Yosufdeen JMH

0 Kudos

No, SAP doesn't store the name of the program which generates a spool. By default, you only have the first characters of the program name in one of the spool name fields.

Sandra_Rossi
Active Contributor
0 Kudos

please delete your duplicate answer.