09-14-2010 4:29 PM
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 .
09-15-2010 9:46 AM
Hi,
Write a small code, for checking SY-SUBRC...
IF SY-SUBRC = 0.
continue.
ELSE.
EXIT.
ENDIF.
09-14-2010 4:35 PM
Hi..
Are you trying to write a file on your pc??
What should do the report??
Best regards
Marco
09-14-2010 4:42 PM
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
09-14-2010 4:55 PM
Debug the background job using JDBG.
you can get the steps for debugging by searching in SDN
09-14-2010 5:06 PM
It tells me "This Function is not possible" when i try to use '/JDBG' to debug job.
09-14-2010 5:07 PM
09-14-2010 5:25 PM
First of all let us know what operations are you performing in your program like,
file transfer , displaying container alv etc.
09-14-2010 5:32 PM
Hi,
is a report that sends an e-mail using FM 'SO_DOCUMENT_SEND_API1' and writes a log using write instructions.
09-14-2010 10:44 PM
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
09-15-2010 8:57 AM
09-15-2010 9:33 AM
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
09-15-2010 9:44 AM
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.
09-15-2010 10:26 AM
09-15-2010 9:46 AM
Hi,
Write a small code, for checking SY-SUBRC...
IF SY-SUBRC = 0.
continue.
ELSE.
EXIT.
ENDIF.
12-12-2019 8:03 AM
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..