Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Getting spool number after SUBMIT report statement

Hello Everyone,

Suppose there is a scenario, when 3 users are sharing same session and executing a program simultaneously.

In the program, the users are submitting a program to sap spool such that a spool no is generated.

and based on that spool no, the users read its log...

How will we identify that which spool no belongs to which particular session so that the the user will read its own loag and not the other person/'s log...

Former Member
Former Member replied

Hi Suruchi,

if you're submitting the reports within a Z program, you can try to get the spool number right after submitting:

  SUBMIT (report)
    TO SAP-SPOOL ... "and so on.

  DATA: l_spool_c LIKE tsp01_sp0r-rqid_char.
  " now l_spool_c contains the spool number

I hope it helps.

Kind regards,


2 View this answer in context
Not what you were looking for? View more on this topic or Ask a question