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

Job cancelled after system exception ERROR_MESSAGE

Former Member
0 Likes
3,190

Hi All,

I am scheduling a background job for MIGO by submitting a posting posting program which is using BAPI_ACC_DOCUMENT_POST to post the document. sometimes when I check in SM37 gets job cancelled which says 'Job cancelled after system exception ERROR_MESSAGE' and when I re-process the job the document gets posted . Due to this I am not able to debug the program. I tried increasing the wait time for the job posting but that is also not working.

Please suggest me how can I overcome this problem.

Thanks.

Shweta

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,502

Hi ,

I hope you know about JDBG. If yes then are you not able to debug your cancelled job with this command. Is it not getting displayed in sm35.

If above is not working then, try to see in st22 if you can get some description

Also see in your program that are you writing any exit , message statements.

Regards,

Uma Dave

12 REPLIES 12
Read only

Former Member
0 Likes
2,503

Hi ,

I hope you know about JDBG. If yes then are you not able to debug your cancelled job with this command. Is it not getting displayed in sm35.

If above is not working then, try to see in st22 if you can get some description

Also see in your program that are you writing any exit , message statements.

Regards,

Uma Dave

Read only

0 Likes
2,502

Hi Uma,

I am able to use JDBG but when I debug using JDBG the program is re-run so it does't give me any error message in return[] of bapi. Due to this reason I am not able to check why job got cancelled.

Because when we reschedule the job , job gets successfully executed.

I checked in ST22 but it is not having any details.

Thanks.

Read only

0 Likes
2,502

Hi,

In the job Log, Select the Row which shows the error and click on Long Text button. Does the system shows any details?

Regards

Vinod

Read only

0 Likes
2,502

Hi Vinod,

There is no detail in the long text of this job .

Read only

0 Likes
2,502

Hi ,are u passing same inputs when u run the

Read only

0 Likes
2,502

Hi ,are u passing same inputs when u run the Job in Foreground successfully ?

Please if all the input variables that u are passing to the job are correctly populated. Might be infirst pass some memory variable is initial and after runing the program second time that variable gets initialized to some data and hence program runs successfully. Check for such data and memory related possibilities.

Otherwise there seems no reason for such abnormal behavior.

Hope this is helpful.

Regards,

Uma Dave

Read only

0 Likes
2,502

Actually the job is getting cancelled very rarely. its like if 20 jobs are run 1 shows the cancel status. but if the cancelled job is executed again in foreground/background the job get finished and the posting is done successfully.

Initailly thought there is a deadlok issue .. checked but that is not the case. then increased the wit time so that if there is delay in input parameters the program will wait for it ... also provided a check to not to create job if in case input parameter is not generated.

Not getting why this ia happening.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
2,502

In foreground ?

Read only

0 Likes
2,502

For the cancelled background job.

Read only

0 Likes
2,502

What happens if you run it in foreground ?

Read only

0 Likes
2,502

It gets executed.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
2,502

You can check whether there is any notes available for this.