‎2011 Mar 08 6:37 AM
Hi All,
i am writing a file to application server using background processing.
1) After execution i get a status message : background job was schedule for program ZXXX
2) When I check the JOB its states JOB finish
3) But no file is created at the gieven path in application Server.
I tried to search the forum too but still I am not able to resolve the Issue.
Kindly help me on the same.
many thanks!!
‎2011 Mar 08 6:58 AM
hi,
SM37 - select job - here you can monitor the job.
check for Job is released
or
Go to SM36
Select the Job Wizard - Continue
Step 1 : Give Job Name
Target Server
Step 2 : Select ABAP Pgm Step
Step 3 : Give ABAP Pgm Name
Select the Variant for the Pgm
Step 4 : Select the time .
Step 5 : Complete - It shows the msg as " Job Saved - Status Released "
Regards.
Shiva
‎2011 Mar 08 6:44 AM
What is file type.
First check in foreground for writing the file if it works then schedule in background.
Thanks.
‎2011 Mar 08 6:50 AM
You can debug the background program, to know where exactly the error is.
Put the breakpoint in your ZXXX program, and select the background job in sm37 and type JDBG without any /n or /o in the tcode address bar and press ENTER + F8.
You can parallely check the records in AL11, for the contents in the appliaction server file path.
‎2011 Mar 08 6:53 AM
Thanks Balu and Satish for your fast response.
I have check the execution in the foreground its working fine.
I have even debug the program but no success.
Kindly suggest some more option
many thanks!
‎2011 Mar 08 6:57 AM
check whether ur user id has permission to write in application server .
try to execute a simple one in foreground mode and if it is perfect then schedule the original one in bg.
‎2011 Mar 08 7:21 AM
Looks like you were able to write a file to the application server in Foreground mode. Hence no issues with the authorization or file path. Check whether you were using the DELETE DATASET stmt at the end, in your background program. This deletes the file created in the application server. Try to debug again between the open dataset and close dataset, and let us know exactly what you could find from it.
‎2011 Mar 08 7:57 AM
Thanks Satish,
I am able to debug the issue now but not completely.
I am able to write the file now in the Server but (as i have corrected the mention path) but still i am geting the same status message in RED.
Kindly help me to resolve this.
many thanks,
‎2011 Mar 08 9:26 AM
You were able to write the file to the application server. So the purpose is served. Status message RED indicates the bgd job has failed. Check any system dump was generated or any log generated. May be the RED is due to reusing the already completed bgd job. Output cannot be written on the completed bgd job. Please schedule a new bgd job, and check it's working as per your requirements or not.
‎2011 Mar 08 6:58 AM
hi,
SM37 - select job - here you can monitor the job.
check for Job is released
or
Go to SM36
Select the Job Wizard - Continue
Step 1 : Give Job Name
Target Server
Step 2 : Select ABAP Pgm Step
Step 3 : Give ABAP Pgm Name
Select the Variant for the Pgm
Step 4 : Select the time .
Step 5 : Complete - It shows the msg as " Job Saved - Status Released "
Regards.
Shiva