Skip to Content
author's profile photo Former Member
Former Member

Background job scheduling

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on May 29, 2008 at 10:18 AM

    where are you putting this check? In start of selection? Try at selection screen.

    This won't work if someone tries to schedule the job in Sm36.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 29, 2008 at 10:18 AM

    Hi,

    How would you expect error messge in back ground. That error message will dispaly in the status bar right. SO instead error message, using write statement, you can write a meaningful message in the output.

    Rgds,

    Bujji

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.