Application Development 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: 

Job cancelled after system exception ERROR_MESSAGE - Why ?

Former Member
0 Kudos

Hi to all,

Anyone knows why, when I execute a program in foreground, everything is ok . When I try to execute it in background (schedulated in a job ) I obtain "Job cancelled after system exception ERROR_MESSAGE

Message no. 00564"

I have a check in 'at selection-screen event' to control "no data output" with an custom error message.

I really don't understand why job is cancelled !

Any ideas ?

Thanks in advance .

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Write a small code, for checking SY-SUBRC...

IF SY-SUBRC = 0.

continue.

ELSE.

EXIT.

ENDIF.

14 REPLIES 14

former_member196079
Active Contributor
0 Kudos

Hi..

Are you trying to write a file on your pc??

What should do the report??

Best regards

Marco

0 Kudos

No but...maybe i've found a solutin by myself.

Mybe it's due to custom error message "no data" in at selection-screen event.

I call message number '000' with text but I don't think it's correct. Now I've created a properly custom message called in the program and I hope that it's ok in productivity environment.

I'll let you know if it'll work. Stay tuned !

Thank you

Andrew

kesavadas_thekkillath
Active Contributor
0 Kudos

Debug the background job using JDBG.

you can get the steps for debugging by searching in SDN

0 Kudos

It tells me "This Function is not possible" when i try to use '/JDBG' to debug job.

0 Kudos

Ok ... without '/' ...

0 Kudos

First of all let us know what operations are you performing in your program like,

file transfer , displaying container alv etc.

0 Kudos

Hi,

is a report that sends an e-mail using FM 'SO_DOCUMENT_SEND_API1' and writes a log using write instructions.

Former Member
0 Kudos

Hi Andrew,

Out of interest, there's not a short dump generated in ST22, by the error? If so, there may be a clue in the dump...

Regards, Andy

0 Kudos

No short dump is generated in ST22 !

0 Kudos

I've put an error message in start-of-selection event in case of no data selection. Maybe this could cancelled the job when the program is executed in background ?

I've tried to put the control in 'AT selection-screen event' but the message is triggered also when the user select the variant .

Any ideas ?

thanks in advance

0 Kudos

Hi,

Write your message after start-of-selection.

Instead of putting an error message you can write the message while executing the program in background.

after select .......

if sy-subrc <> 0.

if sy-batch = 'X'.

write 😕 'No data found'.

else.

message e000 with 'No data found'.

endif.

endif.

Regards,

Srini.

0 Kudos

Ok ... thanks . It should be ok now !

Former Member
0 Kudos

Hi,

Write a small code, for checking SY-SUBRC...

IF SY-SUBRC = 0.

continue.

ELSE.

EXIT.

ENDIF.

maslanbay
Discoverer
0 Kudos

Hi,

It means that in program, a MESSAGE statement executed .

Type : E , X ,A or WARNING (Type W ) causes this problem.

If you have a message statement with types : E-A-X-W then change messages to type S the problem will solve. otherwise job will be cancelled with an ERROR_MESSAGE.

regards..