‎2007 Jan 02 6:39 PM
Hello friends,
I am running my programs in back ground and it creats an outbound text file and i havent used any write statements in the program. Would it create a spool or anything to say that the progam has ran succesfully and would it display the output. IF not how can i do that.
Madhu.
‎2007 Jan 02 6:41 PM
‎2007 Jan 02 6:41 PM
‎2007 Jan 02 6:46 PM
Thanks Rich.
If i have the write statement would it automitically create the spool as soon as the program runs or do i need to do something in the back ground Job setup.
Madhu.
‎2007 Jan 02 6:48 PM
Nothing more to do, simply have a WRITE statement and a spool will be created. When setting up the job, you could check the print specifications and make sure that the "Print Immeditatly" and "Delete after output" are set right. In this case, I believe that you want both checkboxes to be not-checked.
Regards,
RIch Heilman
Message was edited by:
Rich Heilman
‎2007 Jan 02 6:52 PM
Thanks.
One last question,
Do i need to check it somewhere after the job runs i mean in SP01 or somewhere?
Madhu.
‎2007 Jan 02 7:05 PM
Hello Rich , Naren.
Suppose i dont have write in my program as I said earlied and it runs in the background and have the printer setup to it. AS u said it would not create any spool. SO what will it print, The entire text file or nothing.
Madhu.
‎2007 Jan 02 7:17 PM
‎2007 Jan 02 7:17 PM
You can check for the spool by going to SP01, or you can check it in SM37, give the job name and click spool.
If there is no WRITE statement or sapscript output, there will be no spool, it will not write the text file. In order for it to do so, you would have to LOOP at the internal table containing the data and WRITE it out.
Regards,
Rich Heilman
‎2007 Jan 02 7:20 PM
Thanks Rich, I got that.
But my question is would it print something if i set it up to the printer and do not have any write statement.
Thanks,
Madhu.
‎2007 Jan 02 7:27 PM
‎2007 Jan 02 6:45 PM
Hi,
As rich mentioned if you don't have write statements or sapscript output you will not get a spool..But If the background job is finished successfully..Means the program has ended successfully..
Otherwise simply use a write statement in your program..
Thanks,
Naren
‎2007 Jan 02 7:19 PM
Hi,
Run the background job and select the job and select the spool button..
If there is no write statement..then you will get a message no spool or something similar..
It will not print anything..Unless if you have something on the spool..
If you write the entire text file in the output using write statement..Then it will have the file data in the spool.
Thanks,
Naren