Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error in background processing

Former Member
0 Likes
2,982

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!!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,216

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

8 REPLIES 8
Read only

Former Member
0 Likes
2,216

What is file type.

First check in foreground for writing the file if it works then schedule in background.

Thanks.

Read only

Former Member
0 Likes
2,216

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.

Read only

0 Likes
2,216

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!

Read only

0 Likes
2,216

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.

Read only

0 Likes
2,216

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.

Read only

0 Likes
2,216

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,

Read only

0 Likes
2,216

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.

Read only

Former Member
0 Likes
2,217

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