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

Batch Job

Pls. let mek know that How to handle the error messages in batch jobs?

thanq

Message was edited by:

Srinivas

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 14, 2007 at 02:39 PM

    Hi Srikhar,

    Changing Information message will solve your problem. But just check with functional guy if they are ok with Information message as after this the processing will not stop so just confirm if it is ok fnctionally.

    Regards,

    Atish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 14, 2007 at 02:34 PM

    Hi,

    You could change to an info message, or even have two messages based on system field SY-BATCH. If SY-BATCH is 'X' issue and info message, otherwise an error.

    Regards,

    Nick

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 14, 2007 at 02:33 PM

    In your *_DOCMENT_PREPARE, do like this to avoid the error messages in the batch job.

    if sy-batch is initial.
    * give message error.
    else.
    * give  message status
    endif.

    Regards,

    Naimesh Patel

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      thanq,

      i discuseed with functional guy, his requirement is like,

      1 - ONLINE, shuld b ERROR type, so that, NOT allowing to SAVE delivery

      2- BATCH JOB - the error message shuld go into ERROR LOG and the the batch job shuld continue......

      so, my coleague, told me the following idea,

      CALL FM 'FORMAT_ERROR'

      so, does it works?

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.