‎2006 Aug 30 8:16 AM
Hi ,
I have written a report which takes a file from application server. if it doesnot find then it gives a write message 'not found'.
My issue is that if i do background processing then in SM37 i still see it as finished and only if i go to job log i see that write message.
I would like to know how do i make that finished into cancelled as actually the file was not found so it should be cancelled.
‎2006 Aug 30 8:18 AM
HI,
Through a Error message.
message e000(su) with 'file not found'.
Regards,
‎2006 Aug 30 8:28 AM
Hi HRA,
THis will not help. IT still shows me 'finsished' in SM37 when running in background. I need to see 'Cancelled' not finished
‎2006 Aug 30 9:33 AM
Hi pritam,
1. It will show CANCELLED (in red color)
only,
if we give any ERROR Message (Type E)
in our program.
2. I just tried and it works fantastic.
3. just copy paste in new program,
and run in background.
4.
report abc.
message 'error' type 'E'.
5. In sm37, it will show CANCELLED.
regards,
amit m.
‎2006 Aug 30 8:27 AM
You can stop the processing by showing a error message type...
IF sy-subrc <> 0.
MESSAGE 'File Not Found' TYPE 'E'.
ENDIF.
Thanks,
Priti
‎2006 Aug 30 10:01 AM
Hi,
in your case the message is an information Message. So it is not showing the cancelled status.
if you fire any error message then it will show the status as Cancelled.
Regards
vijay