I have a program that is creating a file and using GUI_DOWNLOAD to put the file on the user's machine. some of the processes are timing out so now I have to run the process in the background and have the process create a spool file and the user can then open the spool and save it to thier machine. I am not sure how to code to create a spool file. I found this code in another thread within this forum but I am not sure what it is doing.
<i>select single spld into usr01-spld from usr01 where bname eq sy-uname .
if sy-subrc eq 0 .
move: usr01-spld to loc_dest .</i>
I am assuming that I will have to check weather the job is running in foreground or background so that I can execute the code for GUI_DOWNLOAD or create the spool. Is the code listed above all that I have to use to create the spool file or is there something esle that I need to do.
thanks in advance for the help