Skip to Content
0
Former Member
May 29, 2008 at 10:16 AM

Background job scheduling

14 Views

Hi experts,

i have a requirement where in i have to put in a condition that should through an error message whenever a report is executed in the background.

I put an error message inside the if condition.

IF SY-BATCH = 'X'.

MESSAGE E801. "message shud not be run in background.

endif.

Now whenever i try to execute the report in background, the job is getting cancelled, but i am not able to display the error message on the selection screen of the report.

Please advise how to proceed

Points will be rewarded.