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

How to maintain an errors in Outbound Interface


I m Doing One Interface (Outbound From SAP) to Application Server?

whenever the File(TXT) in Created in Legacy Application Server with Succeesfull Record i have to Send an Email Notification to my Payroll

Adminisatrtor Of the legacy System.

Can any one Pls tell me the steps Howto DO this?

An also

If there is any error records found which tranferring Data to ths Legacy System.An Output shoul be display with error records.

How to maintain this in Interface Program.


Uday Kiran

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 11:52 AM


    You can follow the below procedure as one of the Error Notification mechanism.

    1. If you are using a Standard Selection Program, then you can find the relevant exit to populate all the Errors in an Internal Table with

    Error Field Name

    Error Segment Name

    Error Message.

    2. Then, you can append all the errors (data mismatch , inconsistency) to that Internal Table, I_ERR_TAB per say.

    3. After that, Export the same to Memory ID.

    4. In an Outbound Interface, after the Selection Program is processed, a Standard Function Module is Called, that is IDOC_CREATE_ON_DATABASE.

    5. Go to that Function Module, and Create an Enhancement Implementation (In case of ECC 6.0) where you'll IMPORT the I_ERR_TAB from Memory ID.

    6. Check if the I_ERR_TAB is initial. If it is not, then you can probably use the FM SO_OBJECT_SEND or SO_DOCUMENT_SEND_API1 or any other FM available for Sending Mails to the respective Persons / Users.

    7. Along with sending mail, you can also error out the IDoc by Calling the FM IDOC_STATUS_WRITE_TO_DATABASE where you'll update the IDOC_STATUS table with the errors that you have in your I_ERR_TAB table and set the Status as 26.

    Hope it was helpful.

    Thanks and Regards,

    Venkat Phani Prasad Konduri

    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.