10-19-2005 2:06 AM
hi guys,
i want to download the data from spool for a perticular program.
how can i do it?
what is relationship between spool-id and program name?
TSP01-RQIDENT & TSP01-RQ2NAME will not work. RQ2NAME is not always a program name.
Please provide me the solution.
its urgentttttttttt
thanx in advance
best regards
ankit
10-19-2005 3:25 AM
Can you give us some more details? What do you mean by download? Do you want to download it to a file, or do you want to be able to read it and do something with it?
Any program that writes output, will output it to either screen or printer or spool. One of your options while outputting is to store it permanently. You do that by creating a new spool request which will be identified with a spool id.
Srinivas
10-19-2005 4:45 AM
hi srini,
i want to download the data to a file.
In the selection screen, i will mention the program name & user name and i want the data to be downloaded to the file from the spool.
regards
ankit
10-19-2005 3:49 AM
10-19-2005 4:53 AM
hi surpreet,
i think you r talking about TSP01.
yes...i am using TSP01
but i want the relationship between spool-id (tsp01-rqident) & program name. Its not rq2name.
regards
ankit
10-19-2005 4:59 AM
10-19-2005 5:01 AM
yes i found the report,
you have to use FM COMMON_LOG_READ_T100
regards
do where-used
after that CALL FUNCTION 'RSPO_DOWNLOAD_SPOOLJOB'
EXPORTING
ID = ISPOOL-SPOOLID
FNAME = FNAME.
Message was edited by: Surpreet Singh Bal
10-19-2005 5:15 PM
10-19-2005 5:28 PM
Try RSPO_FIND_SPOOL_REQUESTS. I am not sure if there is a direct link between a spool id and the program. If the program ran in a backgroun job, then you can link them through the job, but if the program ran online and then you created a spool, I will have to check how it stores the information.
Srinivas