Skip to Content
avatar image
Former Member

How to get errors from a function called IN BACKGROUND TASK AS SEPARATE UNIT ?

Hi gurus,

We have placed a call to a function IN BACKGROUND TASK AS SEPARATE UNIT in a user exit (SD Invoices). This function updates another document (SD Shipment).

The thing is that, sometimes, this update can not be done due to some reasons (Document is blocked for another user, authorizations...) and we would like to know how to get the error messages in this cases. The update is done via BAPI and we have the RETURN tab, but as it runs in background task, how to know that the BAPI returned error messages?

Is there a log (System log, RFC log...) where the errors are posted by the system?

Thanks in advance!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Nov 16, 2017 at 08:22 AM

    Nothing found for this. So I've added a bit of code to get the error messages returned from the BAPI called in Background and save them into a new custom table for later check.

    Add comment
    10|10000 characters needed characters exceeded