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

background issue

Former Member
0 Likes
560

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.

5 REPLIES 5
Read only

dani_mn
Active Contributor
0 Likes
521

HI,

Through a Error message.

message e000(su) with 'file not found'.

Regards,

Read only

Former Member
0 Likes
521

Hi HRA,

THis will not help. IT still shows me 'finsished' in SM37 when running in background. I need to see 'Cancelled' not finished

Read only

Former Member
0 Likes
521

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.

Read only

Former Member
0 Likes
521

You can stop the processing by showing a error message type...

IF sy-subrc <> 0.

MESSAGE 'File Not Found' TYPE 'E'.

ENDIF.

Thanks,

Priti

Read only

Former Member
0 Likes
521

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