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.
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.