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 .
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 !
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
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'.
message e000 with 'No data found'.