Getting spool number after SUBMIT report statement
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...
Alvaro Vidal-Abarca replied
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. GET PARAMETER ID 'SPI' FIELD l_spool_c. " now l_spool_c contains the spool number
I hope it helps.