Executing a program in background is not creating spool
I am facing a small problem with one of the program. Below are the details.
Its a simple program of uploading file from local machine and displaying the output. when I am running in foreground, the contents of file are copied into internal table and getting displayed in List.
Where as when I run background, No spool is getting created. Also I found that, the internal table is getting cleared. I have put an IF NOT INITIAL check and found that, Internal table is getting cleared and error message is written in the spool .
There is no problem with file upload in background or foreground.
Naimesh Patel replied
If you are uploading your file from your LOCAL PC than the Background job will not work. Because background job is being executed on Server. So, it doesn't have the connection to your local PC.
You can put your file on Application server and use the OPEN DATASET .. TRANSFER to read the file in the Background processing.