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

Error when sending a Mail (SUBSTITUTE_NOT_DEFINED in SO_OBJECT_SEND)

Hello,

we want to send an e-mail from ABAP during the inbound processing of IDocs. We use the function module SO_OBJECT_SEND. During the perform CHECK_USER_ROLE the exception SUBSTITUTE_NOT_DEFINED is raised. Because of this error the mail is not sent. What does this mean? What do we have to do to finally send the mail?

Best regards,

David

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 14, 2009 at 01:58 PM

    Did you have a closer look at the Dump analysis (transaction ST22)? Could be a customizing error.

    Is the dump in FM SO_OBJECT_SEND, or before that during the IDoc processing? Try to find out via dump analysis.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Micky Oestreich

      Hello,

      I solved the problem. In the program the sender user name is not the active user. The active user has to be configured as a substitute of the sender. I changed the program. Now the sender is always the active user and the check of the substitute is not necessary anymore.

      Best regards,

      David

  • Posted on Jan 14, 2009 at 02:20 PM

    hi,

    Check this blog: /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface

    Sachin

    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.