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

Email is not getting triggered

Hi All,

I'm using the below FM to send the mail. But it's not working. Could you please help me to resolve the issue. Thanks



pastedImage_0.png (14.9 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Aug 25, 2015 at 03:47 PM

    Hi Dinesh,

    Please find below some sample coding which I recently used for sending an email. If you compare the coding, you can observe some differences. Also have a look at the table for email receivers.


    g_s_docdata TYPE sodocchgi1,

    g_s_content TYPE solisti1,

    g_t_content TYPE STANDARD TABLE OF solisti1,

    g_s_receiver TYPE somlreci1,

    g_t_receiver TYPE STANDARD TABLE OF somlreci1.

    * Send e-mail with DTP monitor log to receiver list

    *-- preparation

    LOOP AT s_email.

    IF s_email-low IS INITIAL.



    CLEAR g_s_receiver.

    g_s_receiver-receiver = s_email-low.

    g_s_receiver-rec_type = 'U'. "internet address

    g_s_receiver-com_type = 'INT'.

    APPEND g_s_receiver TO g_t_receiver.



    *-- send message



    document_data = g_s_docdata

    document_type = 'RAW'

    put_in_outbox = rs_c_true

    commit_work = rs_c_true


    object_content = g_t_content

    receivers = g_t_receiver


    too_many_receivers = 1

    document_not_sent = 2

    document_type_not_exist = 3

    operation_no_authorization = 4

    parameter_error = 5

    x_error = 6

    enqueue_error = 7

    OTHERS = 8.

    I did not have to use any COMMIT WORK or trigger program RSCONN01 (what you are doing in the last part of the coding snapshot).

    Note:that the SAPconnect configuration must be OK as a prerequisite (t/code SICF and SCOT).

    Best regards,


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 25, 2015 at 03:32 PM

    What error message are you getting (if any)?.

    also have you checked Tx SOST to see if the message is there?.

    Finally, I would use CL_BCS class instead of this FM (check Package SBCOMS for examples).


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 25, 2015 at 03:48 PM

    please repost at ABAP forum or take abap expert help.

    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.