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

Changing the Error message in the background

Hi Experts,

Is there any way to catch the Error message in the background apart from changing the message type.

Because the error message is coming from a standard function and I want my program should handle the error message. Whether this can be possible if possible can anyone please let me know the process.

Thanks in advance.

Regards,

Srinivas

Edited by: Srinivas Hari on Jun 23, 2009 10:08 AM

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 Jul 31, 2009 at 01:27 PM

    Hi Srini,

    The question is not very clear still I am trying to answer this.

    If my understanding is correct you are trying to run a standard function module in background task in your custom program and that FM is giving some error messages but not raising any exceptions and you are trying to catch those exceptions in your program. If that is be the case then yes you can definitely catch that error messages.

    Step 1 : Call function 'XXXX' IN BACKGROUND TASK

    Step 2: Call function 'ID_OF_BACKGROUNDTASK'

    Step 3: COMMIT WORK and WAIT.

    Step 4: Call function 'STATUS_OF_BACKGROUNDTASK' ---> passing the id number which you will receive in Stpe 2.

    Basically the step 4 would return you the error messages which would be visible in Transaction SM58.

    Regs,

    Somnath

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2009 at 01:37 PM

    Hi Srinivas,

    You can capture all the error messages in ur program and either download it as a file or capture them on the screen using WRITE statements.

    This screen you can see in the SPOOL after the background jiob is executed.SPOOL transaction: SP01.

    Regards,

    Vimal.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2011 at 11:35 AM

    Thanks for the answers.

    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.